diff options
Diffstat (limited to 'buildSrc/src/main')
-rw-r--r-- | buildSrc/src/main/kotlin/refinery-eclipse.gradle.kts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/buildSrc/src/main/kotlin/refinery-eclipse.gradle.kts b/buildSrc/src/main/kotlin/refinery-eclipse.gradle.kts index ed7c5250..5b78c2d2 100644 --- a/buildSrc/src/main/kotlin/refinery-eclipse.gradle.kts +++ b/buildSrc/src/main/kotlin/refinery-eclipse.gradle.kts | |||
@@ -23,8 +23,15 @@ val eclipseResourceEncoding by tasks.registering { | |||
23 | } | 23 | } |
24 | } | 24 | } |
25 | 25 | ||
26 | tasks.named("eclipse") { | 26 | val eclipseTask = tasks.named("eclipse") { |
27 | dependsOn(eclipseResourceEncoding) | 27 | dependsOn(eclipseResourceEncoding) |
28 | } | 28 | } |
29 | 29 | ||
30 | the<EclipseModel>().synchronizationTasks(eclipseResourceEncoding) | 30 | the<EclipseModel>().synchronizationTasks(eclipseResourceEncoding) |
31 | |||
32 | tasks.register("clobberEclipse", Delete::class) { | ||
33 | mustRunAfter(eclipseTask) | ||
34 | delete(".classpath") | ||
35 | delete(".project") | ||
36 | delete(".settings") | ||
37 | } | ||