@@ -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
5250project. 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
8583project. 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
111109project. 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}
0 commit comments