Skip to content

Commit dd225b2

Browse files
committed
Build: clean up deprecated API usage
1 parent 630251c commit dd225b2

File tree

4 files changed

+0
-29
lines changed

4 files changed

+0
-29
lines changed

client/build.gradle.kts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import com.stehno.gradle.natives.ext.Platform
2-
import dev.clojurephant.plugin.clojure.tasks.ClojureSourceSet
3-
import org.gradle.api.internal.HasConvention // clojurephant still depends on conventions
42

53
plugins {
64
application
@@ -38,10 +36,6 @@ natives {
3836
val clientMainClass = "hyperspace.client.main"
3937
version = "1.0.0-SNAPSHOT"
4038

41-
@Suppress("DEPRECATION") // clojurephant still depends on conventions
42-
val SourceSet.clojure: SourceDirectorySet
43-
get() = (this as HasConvention).convention.getPlugin<ClojureSourceSet>().clojure
44-
4539
clojure.builds.named("main") {
4640
aotAll()
4741
}

core/build.gradle.kts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import dev.clojurephant.plugin.clojure.tasks.ClojureSourceSet
2-
import org.gradle.api.internal.HasConvention // clojurephant still depends on conventions
3-
41
plugins {
52
id("dev.clojurephant.clojure")
63
}
@@ -20,11 +17,6 @@ dependencies {
2017
testRuntimeOnly("org.ajoberstar:jovial:0.3.0")
2118
}
2219

23-
// Compilation
24-
@Suppress("DEPRECATION") // clojurephant still depends on conventions
25-
val SourceSet.clojure: SourceDirectorySet
26-
get() = (this as HasConvention).convention.getPlugin<ClojureSourceSet>().clojure
27-
2820
clojure.builds.named("main") {
2921
aotAll()
3022
}

server/build.gradle.kts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import dev.clojurephant.plugin.clojure.tasks.ClojureSourceSet
2-
import org.gradle.api.internal.HasConvention // clojurephant still depends on conventions
3-
41
plugins {
52
application
63
id("dev.clojurephant.clojure")
@@ -36,10 +33,6 @@ dependencies {
3633
val serverMainClass = "hyperspace.server.main"
3734
version = "1.0.0-SNAPSHOT"
3835

39-
@Suppress("DEPRECATION") // clojurephant still depends on conventions
40-
val SourceSet.clojure: SourceDirectorySet
41-
get() = (this as HasConvention).convention.getPlugin<ClojureSourceSet>().clojure
42-
4336
clojure.builds.named("main") {
4437
aotAll()
4538
}

web/frontend/build.gradle.kts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import dev.clojurephant.plugin.clojurescript.tasks.ClojureScriptSourceSet
2-
import org.gradle.api.internal.HasConvention // clojurephant still depends on conventions
3-
41
plugins {
52
application
63
id("dev.clojurephant.clojurescript")
@@ -20,11 +17,6 @@ dependencies {
2017
implementation("org.clojure:clojurescript:1.10.773")
2118
}
2219

23-
// Compilation
24-
@Suppress("DEPRECATION") // clojurephant still depends on conventions
25-
val SourceSet.clojurescript: SourceDirectorySet
26-
get() = (this as HasConvention).convention.getPlugin<ClojureScriptSourceSet>().clojureScript
27-
2820
tasks.register<Copy>("copyHtml") {
2921
from("src/main/html")
3022
into("$buildDir/www")

0 commit comments

Comments
 (0)