diff options
Diffstat (limited to 'buildSrc/src/main/kotlin')
-rw-r--r-- | buildSrc/src/main/kotlin/refinery-eclipse.gradle.kts | 6 | ||||
-rw-r--r-- | buildSrc/src/main/kotlin/refinery-java-conventions.gradle.kts | 2 | ||||
-rw-r--r-- | buildSrc/src/main/kotlin/refinery-jmh.gradle.kts | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/buildSrc/src/main/kotlin/refinery-eclipse.gradle.kts b/buildSrc/src/main/kotlin/refinery-eclipse.gradle.kts index 5b78c2d2..85e47370 100644 --- a/buildSrc/src/main/kotlin/refinery-eclipse.gradle.kts +++ b/buildSrc/src/main/kotlin/refinery-eclipse.gradle.kts | |||
@@ -23,14 +23,14 @@ val eclipseResourceEncoding by tasks.registering { | |||
23 | } | 23 | } |
24 | } | 24 | } |
25 | 25 | ||
26 | val eclipseTask = tasks.named("eclipse") { | 26 | val eclipse by tasks.existing { |
27 | dependsOn(eclipseResourceEncoding) | 27 | dependsOn(eclipseResourceEncoding) |
28 | } | 28 | } |
29 | 29 | ||
30 | the<EclipseModel>().synchronizationTasks(eclipseResourceEncoding) | 30 | the<EclipseModel>().synchronizationTasks(eclipseResourceEncoding) |
31 | 31 | ||
32 | tasks.register("clobberEclipse", Delete::class) { | 32 | tasks.register<Delete>("clobberEclipse") { |
33 | mustRunAfter(eclipseTask) | 33 | mustRunAfter(eclipse) |
34 | delete(".classpath") | 34 | delete(".classpath") |
35 | delete(".project") | 35 | delete(".project") |
36 | delete(".settings") | 36 | delete(".settings") |
diff --git a/buildSrc/src/main/kotlin/refinery-java-conventions.gradle.kts b/buildSrc/src/main/kotlin/refinery-java-conventions.gradle.kts index 3f9b4208..a55350df 100644 --- a/buildSrc/src/main/kotlin/refinery-java-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/refinery-java-conventions.gradle.kts | |||
@@ -63,7 +63,7 @@ jacocoTestReport.configure { | |||
63 | } | 63 | } |
64 | } | 64 | } |
65 | 65 | ||
66 | tasks.named<org.gradle.jvm.tasks.Jar>("jar") { | 66 | tasks.named<Jar>("jar") { |
67 | manifest { | 67 | manifest { |
68 | attributes( | 68 | attributes( |
69 | "Bundle-SymbolicName" to "${project.group}.${project.name}", | 69 | "Bundle-SymbolicName" to "${project.group}.${project.name}", |
diff --git a/buildSrc/src/main/kotlin/refinery-jmh.gradle.kts b/buildSrc/src/main/kotlin/refinery-jmh.gradle.kts index 11888b59..6512ef23 100644 --- a/buildSrc/src/main/kotlin/refinery-jmh.gradle.kts +++ b/buildSrc/src/main/kotlin/refinery-jmh.gradle.kts | |||
@@ -36,7 +36,7 @@ dependencies { | |||
36 | jmhAnnotationProcessor(libs.jmh.annprocess) | 36 | jmhAnnotationProcessor(libs.jmh.annprocess) |
37 | } | 37 | } |
38 | 38 | ||
39 | tasks.register("jmh", JavaExec::class) { | 39 | tasks.register<JavaExec>("jmh") { |
40 | dependsOn(tasks.named("jmhClasses")) | 40 | dependsOn(tasks.named("jmhClasses")) |
41 | mainClass.set("org.openjdk.jmh.Main") | 41 | mainClass.set("org.openjdk.jmh.Main") |
42 | classpath = jmh.runtimeClasspath | 42 | classpath = jmh.runtimeClasspath |