@@ -42,7 +42,7 @@ dependencies {
4242 // corelibs "com.nimbusds:oauth2-oidc-sdk:6.5"
4343}
4444
45- defaultTasks ' clean' , ' getCoreDependencies' , ' compile' , ' generateOpenMDTUpdateSite' , ' deployDHE '
45+ defaultTasks ' clean' , ' getCoreDependencies' , ' compile' , ' generateOpenMDTUpdateSite'
4646
4747task importAnt {
4848 ClassLoader antClassLoader = org.apache.tools.ant.Project . class. classLoader
@@ -58,6 +58,7 @@ task importAnt {
5858 // build-mdt provides the generateOpenMDTUpdateSite target, which is the entry point
5959 // for the compilation and assembling of updatesites
6060 ant. importBuild(' ant_build/build-mdt.xml' )
61+ println " Imported ant code"
6162}
6263
6364def projDir = projectDir. getAbsolutePath()
@@ -177,6 +178,11 @@ task build {
177178 }
178179}
179180
181+ task gradleCompile {
182+ doLast {
183+ }
184+ }
185+
180186task gradleGenerateMDTUpdateSite {
181187 doLast {
182188 }
@@ -187,10 +193,10 @@ gradleGenerateMDTUpdateSite.dependsOn generateOpenMDTUpdateSite
187193build. dependsOn compile
188194build. dependsOn generateOpenMDTUpdateSite
189195
190- compile. dependsOn importAnt
191196compile. dependsOn downloadEclipseSDK
192197compile. dependsOn downloadEclipseTargetPlatform
193- compile. dependsOn getCoreDependencies
198+
199+ gradleCompile. dependsOn compile
194200
195201// // build version from the artifacts to avoid version mismatch
196202import static groovy.io.FileType.FILES
@@ -210,9 +216,9 @@ def getBuildLabelFromArtifact() {
210216
211217 buildLabel = (fileName =~ " ${ filePrefix} (.*).zip" )[0 ][1 ]
212218
213- if (buildLabel. isEmpty()) {
214- buildLabel = ant. properties[' buildLabel' ]
215- println " Unable to grab build label - ant buildLabel is used instead."
219+ if (buildLabel. isEmpty()) {
220+ buildLabel = ant. properties[' buildLabel' ]
221+ println " Unable to grab build label - ant buildLabel is used instead."
216222 }
217223 }
218224 return buildLabel
@@ -426,6 +432,10 @@ task cleanBuilds(type: Delete) {
426432 println ' Delete ' + artifactsDir
427433 file(artifactsDir). deleteDir()
428434
435+ def buildLabelFile = project. properties[' build.label.file' ]
436+ println ' Delete ' + buildLabelFile
437+ file(buildLabelFile). delete()
438+
429439 println ' Delete ' + toolsImageFolder
430440 file(toolsImageFolder). deleteDir()
431441 }
@@ -438,7 +448,6 @@ task cleanBuilds(type: Delete) {
438448// Delete all prereq files, downloaded artifacts and build output
439449task clean (type : Delete ) {
440450 doLast {
441-
442451 }
443452
444453 onlyIf {
0 commit comments