Skip to content

Commit ad5b2a9

Browse files
Merge pull request #44 from SpineEventEngine/bump-core-jvm-compiler
Remove `kspKotlin` task dependencies
2 parents fe628f9 + f5d094f commit ad5b2a9

File tree

18 files changed

+392
-700
lines changed

18 files changed

+392
-700
lines changed

api/build.gradle.kts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,4 @@ forceSpineBase()
7676

7777
afterEvaluate {
7878
spineCompilerRemoteDebug(enabled = false)
79-
80-
val kspKotlin by tasks.getting
81-
val launchSpineCompiler by tasks.getting
82-
kspKotlin.dependsOn(launchSpineCompiler)
8379
}

backend/build.gradle.kts

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -65,41 +65,3 @@ apply<IncrementGuard>()
6565
tasks.withType<CheckVersionIncrement> {
6666
repository = PublishingRepos.cloudArtifactRegistry
6767
}
68-
69-
val nl: String = System.lineSeparator()
70-
71-
/**
72-
* Prints output directories produced by `launchProtoData` tasks with
73-
* corresponding number of files in those directories.
74-
75-
val launchProtoData: Task by tasks.getting {
76-
doLast {
77-
println("***** `launchProtoData.output`:")
78-
outputs.files.forEach { dir ->
79-
val fileCount = project.fileTree(dir).count()
80-
println("$dir $fileCount files.")
81-
}
82-
println("*************************")
83-
}
84-
}
85-
*/
86-
87-
/**
88-
* Prints input of `compileKotlin` tasks of this module.
89-
90-
val compileKotlin: Task by tasks.getting {
91-
doFirst {
92-
println()
93-
println(">>>> Kotlin source set dirs:")
94-
sourceSets.main { kotlin.srcDirs.forEach { dir -> println("$dir")} }
95-
println(">>>>> `compileKotlin` task inputs in `doFirst` :")
96-
println(inputs.files.joinToString(separator = nl))
97-
}
98-
}
99-
*/
100-
101-
afterEvaluate {
102-
val kspKotlin by tasks.getting
103-
val launchSpineCompiler by tasks.getting
104-
kspKotlin.dependsOn(launchSpineCompiler)
105-
}

build.gradle.kts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,3 @@ dependencies {
186186
dokka(it)
187187
}
188188
}
189-
190-
@Suppress("unused")
191-
val dokkaGeneratePublicationHtml by tasks.getting {
192-
// productionModules.forEach {
193-
// dependsOn(it.tasks.named("jar"))
194-
// }
195-
}

buildSrc/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ val grGitVersion = "4.1.1"
7575
* This version may change from the [version of Kotlin][io.spine.dependency.lib.Kotlin.version]
7676
* used by the project.
7777
*/
78-
val kotlinEmbeddedVersion = "2.2.20"
78+
val kotlinEmbeddedVersion = "2.2.21"
7979

8080
/**
8181
* The version of Guava used in `buildSrc`.

buildSrc/src/main/kotlin/BuildExtensions.kt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -197,35 +197,28 @@ fun Project.configureTaskDependencies() {
197197
}
198198

199199
afterEvaluate {
200-
val launchProtoData = "launchProtoData"
201-
val launchTestProtoData = "launchTestProtoData"
202200
val generateProto = "generateProto"
203201
val createVersionFile = "createVersionFile"
204202
val compileKotlin = "compileKotlin"
205203
compileKotlin.run {
206204
dependOn(generateProto)
207-
dependOn(launchProtoData)
208205
}
209206
val compileTestKotlin = "compileTestKotlin"
210-
compileTestKotlin.dependOn(launchTestProtoData)
211207
val sourcesJar = "sourcesJar"
212208
val kspKotlin = "kspKotlin"
213209
sourcesJar.run {
214210
dependOn(generateProto)
215-
dependOn(launchProtoData)
216211
dependOn(kspKotlin)
217212
dependOn(createVersionFile)
218213
dependOn("prepareProtocConfigVersions")
219214
}
220215
val dokkaHtml = "dokkaHtml"
221216
dokkaHtml.run {
222217
dependOn(generateProto)
223-
dependOn(launchProtoData)
224218
dependOn(kspKotlin)
225219
}
226220
val dokkaJavadoc = "dokkaJavadoc"
227221
dokkaJavadoc.run {
228-
dependOn(launchProtoData)
229222
dependOn(kspKotlin)
230223
}
231224
"publishPluginJar".dependOn(createVersionFile)

buildSrc/src/main/kotlin/io/spine/dependency/build/Ksp.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import io.spine.dependency.Dependency
3535
*/
3636
@Suppress("unused")
3737
object Ksp : Dependency() {
38-
override val version = "2.1.21-2.0.1"
38+
override val version = "2.3.0"
3939
override val group = "com.google.devtools.ksp"
4040

4141
const val id = "com.google.devtools.ksp"

buildSrc/src/main/kotlin/io/spine/dependency/lib/Kotlin.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ object Kotlin : DependencyWithBom() {
3939
* depend on Gradle and the version of embedded Kotlin.
4040
*/
4141
@Suppress("MemberVisibilityCanBePrivate") // used directly from the outside.
42-
const val runtimeVersion = "2.2.20"
42+
const val runtimeVersion = "2.2.21"
4343

4444
override val version = runtimeVersion
4545
override val group = "org.jetbrains.kotlin"
@@ -49,7 +49,7 @@ object Kotlin : DependencyWithBom() {
4949
* This is the version of
5050
* [Kotlin embedded into Gradle](https://docs.gradle.org/current/userguide/compatibility.html#kotlin).
5151
*/
52-
const val embeddedVersion = "2.2.20"
52+
const val embeddedVersion = "2.2.21"
5353

5454
/**
5555
* The version of the JetBrains annotations library, which is a transitive

buildSrc/src/main/kotlin/io/spine/dependency/local/CoreJvmCompiler.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ object CoreJvmCompiler {
4646
/**
4747
* The version used to in the build classpath.
4848
*/
49-
const val dogfoodingVersion = "2.0.0-SNAPSHOT.015"
49+
const val dogfoodingVersion = "2.0.0-SNAPSHOT.021"
5050

5151
/**
5252
* The version to be used for integration tests.
5353
*/
54-
const val version = "2.0.0-SNAPSHOT.015"
54+
const val version = "2.0.0-SNAPSHOT.021"
5555

5656
/**
5757
* The ID of the Gradle plugin.

buildSrc/src/main/kotlin/io/spine/dependency/local/ToolBase.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ package io.spine.dependency.local
3434
@Suppress("ConstPropertyName", "unused")
3535
object ToolBase {
3636
const val group = Spine.toolsGroup
37-
const val version = "2.0.0-SNAPSHOT.366"
38-
const val dogfoodingVersion = "2.0.0-SNAPSHOT.361"
37+
const val version = "2.0.0-SNAPSHOT.368"
38+
const val dogfoodingVersion = "2.0.0-SNAPSHOT.368"
3939

4040
const val lib = "$group:tool-base:$version"
4141
const val classicCodegen = "$group:classic-codegen:$version"
@@ -54,7 +54,7 @@ object ToolBase {
5454
const val gradlePluginApiTestFixtures = "$group:gradle-plugin-api-test-fixtures:$version"
5555

5656
const val jvmTools = "$group:jvm-tools:$version"
57-
const val jvmToolPluginDogfooding = "$group:jvm-tool-all-plugins:$dogfoodingVersion"
57+
const val jvmToolPluginDogfooding = "$group:jvm-tool-plugins-all:$dogfoodingVersion"
5858
const val jvmToolPlugins = "$group:jvm-tool-plugins-all:$version"
5959

6060
const val protobufSetupPlugins = "$group:protobuf-setup-plugins:$version"

cli/build.gradle.kts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,3 @@ tasks.shadowJar {
156156
// See https://github.com/johnrengelman/shadow/issues/153.
157157
tasks.shadowDistTar.get().enabled = false
158158
tasks.shadowDistZip.get().enabled = false
159-
160-
// Set explicit dependency for the `kspTestKotlin` task to avoid the Gradle warning
161-
// on missing explicit dependency.
162-
project.afterEvaluate {
163-
val kspTestKotlin by tasks.getting
164-
val launchTestSpineCompiler by tasks.getting
165-
kspTestKotlin.dependsOn(launchTestSpineCompiler)
166-
}

0 commit comments

Comments
 (0)