forked from liferay/liferay-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LPS-77441 Allow to run "baseline" on portal artifacts via Gradle
- Loading branch information
1 parent
23879b0
commit e2c7e22
Showing
10 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import com.liferay.gradle.plugins.baseline.BaselinePlugin | ||
import com.liferay.gradle.plugins.baseline.BaselineTask | ||
|
||
buildscript { | ||
apply from: file("../modules/build-buildscript.gradle"), to: buildscript | ||
} | ||
|
||
apply plugin: BaselinePlugin | ||
|
||
Properties bndProperties = GUtil.loadProperties(file("bnd.bnd")) | ||
|
||
archivesBaseName = "com.liferay." + name.replace('-' as char, '.' as char) | ||
group = "com.liferay.portal" | ||
version = bndProperties.getProperty("Bundle-Version") | ||
|
||
jar { | ||
archiveName = "${project.name}.jar" | ||
dependsOn = [] | ||
destinationDir = projectDir | ||
enabled = false | ||
} | ||
|
||
reporting { | ||
baseDir = "../baseline-reports" | ||
} | ||
|
||
repositories { | ||
maven { | ||
url System.properties["repository.url"] ?: "https://cdn.lfrs.sl/repository.liferay.com/nexus/content/groups/public" | ||
} | ||
} | ||
|
||
sourceSets { | ||
main { | ||
java { | ||
srcDirs = ["src"] | ||
} | ||
|
||
resources { | ||
srcDirs = ["src"] | ||
} | ||
} | ||
} | ||
|
||
tasks.withType(BaselineTask) { | ||
ignoreFailures = true | ||
|
||
if (name == "baseline") { | ||
logFileName = "${project.name}.log" | ||
} | ||
else { | ||
logFileName = project.name + "-" + name.substring(8) + ".log" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
apply from: "../modules/build-portal.gradle" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
apply from: "../modules/build-portal.gradle" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
apply from: "../modules/build-portal.gradle" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
apply from: "../modules/build-portal.gradle" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
apply from: "../modules/build-portal.gradle" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
apply from: "../modules/build-portal.gradle" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
apply from: "../modules/build-portal.gradle" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
apply from: "../modules/build-portal.gradle" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
apply from: "../modules/build-portal.gradle" |