Skip to content

Commit 8244042

Browse files
Gradle and Gradle plugins update (#121)
1 parent 7f78424 commit 8244042

5 files changed

Lines changed: 29 additions & 26 deletions

File tree

build.gradle

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@ buildscript {
1010
}
1111
}
1212
maven {
13-
url "${artifactory_contextUrl}/plugins-release-no-proxy"
13+
url = "${artifactory_contextUrl}/plugins-release-no-proxy"
1414
mavenContent {
1515
releasesOnly()
1616
}
1717
content {
1818
includeGroup "org.labkey.build"
19-
includeGroup "org.labkey.versioning"
2019
}
2120
}
2221
if (gradlePluginsVersion.contains("SNAPSHOT"))
@@ -29,7 +28,6 @@ buildscript {
2928
}
3029
content {
3130
includeGroup "org.labkey.build"
32-
includeGroup "org.labkey.versioning"
3331
}
3432
}
3533

@@ -51,8 +49,8 @@ String rExe = InstallRPackage.getRPath()
5149

5250
project.tasks.register("check") {
5351
Task task ->
54-
group GroupNames.VERIFICATION
55-
description "Run validation checks on the Rlabkey package"
52+
group = GroupNames.VERIFICATION
53+
description = "Run validation checks on the Rlabkey package"
5654
task.outputs.dir project.layout.buildDirectory.file("Rlabkey.Rcheck")
5755
task.outputs.dir project.file("Rlabkey/src-i386")
5856
task.outputs.dir project.file("Rlabkey/src-x64")
@@ -66,7 +64,7 @@ project.tasks.register("check") {
6664
}
6765
})
6866
if (existingFiles.length > 0) {
69-
project.ant.exec(
67+
task.ant.exec(
7068
executable: rExe,
7169
output: buildOutputFile,
7270
append: true,
@@ -84,22 +82,22 @@ project.tasks.register("check") {
8482

8583
project.tasks.register("build") {
8684
Task task ->
87-
task.group GroupNames.BUILD
88-
task.description "Build the Rlabkey package that can be installed and tested in R. Builds binary package on windows, source only on unix"
85+
task.group = GroupNames.BUILD
86+
task.description = "Build the Rlabkey package that can be installed and tested in R. Builds binary package on windows, source only on unix"
8987
task.inputs.files project.fileTree(dir: "Rlabkey", excludes: ["src-i386", "src-x64"]).files
90-
task.outputs.dir project.layout.buildDirectory
88+
task.inputs.property("directory", "${project.projectDir}/Rlabkey")
89+
task.outputs.dir BuildUtils.getBuildDir(project)
9190
task.doFirst(
9291
{
93-
BuildUtils.getBuildDir(project).mkdirs()
94-
project.ant.exec(
92+
task.ant.exec(
9593
executable: rExe,
96-
dir: BuildUtils.getBuildDir(project),
94+
dir: outputs.files.singleFile,
9795
output: buildOutputFile,
9896
append: true,
9997
logError: true
10098
)
10199
{
102-
arg(line: "CMD build ${project.projectDir}/Rlabkey")
100+
arg(line: "CMD build ${task.inputs.properties.get("directory")}")
103101
if (rLibsUserPath != null)
104102
env(key: "R_LIBS_USER", value: rLibsUserPath)
105103
}
@@ -109,8 +107,8 @@ project.tasks.register("build") {
109107

110108

111109
project.tasks.register("clean", Delete) {
112-
group GroupNames.BUILD
113-
description "Deletes all non-versioned files generated during the build process"
110+
group = GroupNames.BUILD
111+
description = "Deletes all non-versioned files generated during the build process"
114112
delete project.tasks.check
115113
delete project.tasks.build
116114
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
artifactory_contextUrl=https://labkey.jfrog.io/artifactory
2-
gradlePluginsVersion=1.43.0
2+
gradlePluginsVersion=7.2.0

gradle/wrapper/gradle-wrapper.jar

1.61 KB
Binary file not shown.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip
44
networkTimeout=10000
5+
validateDistributionUrl=true
56
zipStoreBase=GRADLE_USER_HOME
67
zipStorePath=wrapper/dists

gradlew

Lines changed: 13 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)