Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FORMAL_GIT_HUB_PAGES_AUTHOR: [email protected]
# https://docs.github.com/en/actions/reference/environment-variables
REPO_SLUG: ${{ github.repository }} # e.g. SpineEventEngine/core-java
REPO_SLUG: ${{ github.repository }} # e.g. SpineEventEngine/core-jvm
GOOGLE_APPLICATION_CREDENTIALS: ./maven-publisher.json
NPM_TOKEN: ${{ secrets.NPM_SECRET }}
2 changes: 2 additions & 0 deletions buildSrc/src/main/kotlin/BuildExtensions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ fun Project.configureTaskDependencies() {
"compileTestFixturesKotlin".dependOn("kspTestFixturesKotlin")
"javadocJar".dependOn(dokkaGeneratePublicationJavadoc)
"htmlDocsJar".dependOn(dokkaGenerate)

"kspTestKotlin".dependOn("launchTestSpineCompiler")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ package io.spine.dependency.local
*/
@Suppress("ConstPropertyName")
object BaseTypes {
const val version = "2.0.0-SNAPSHOT.222"
const val version = "2.0.0-SNAPSHOT.223"
const val group = Spine.group
const val artifact = "spine-base-types"
const val lib = "$group:$artifact:$version"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ package io.spine.dependency.local
*/
@Suppress("ConstPropertyName")
object Change {
const val version = "2.0.0-SNAPSHOT.205"
const val version = "2.0.0-SNAPSHOT.206"
const val group = Spine.group
const val artifact = "spine-change"
const val lib = "$group:$artifact:$version"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ object Compiler : Dependency() {
* The version of the Compiler dependencies.
*/
override val version: String
private const val fallbackVersion = "2.0.0-SNAPSHOT.036"
private const val fallbackVersion = "2.0.0-SNAPSHOT.037"

/**
* The distinct version of the Compiler used by other build tools.
Expand All @@ -81,7 +81,7 @@ object Compiler : Dependency() {
* transitive dependencies, this is the version used to build the project itself.
*/
val dogfoodingVersion: String
private const val fallbackDfVersion = "2.0.0-SNAPSHOT.036"
private const val fallbackDfVersion = "2.0.0-SNAPSHOT.037"

/**
* The artifact for the Compiler Gradle plugin.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ typealias CoreJava = CoreJvm
@Suppress("ConstPropertyName", "unused")
object CoreJvm {
const val group = Spine.group
const val version = "2.0.0-SNAPSHOT.370"
const val version = "2.0.0-SNAPSHOT.371"

const val coreArtifact = "spine-core"
const val clientArtifact = "spine-client"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ object CoreJvmCompiler {
/**
* The version used to in the build classpath.
*/
const val dogfoodingVersion = "2.0.0-SNAPSHOT.042"
const val dogfoodingVersion = "2.0.0-SNAPSHOT.050"

/**
* The version to be used for integration tests.
*/
const val version = "2.0.0-SNAPSHOT.042"
const val version = "2.0.0-SNAPSHOT.050"

/**
* The ID of the Gradle plugin.
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/io/spine/dependency/local/Time.kt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ package io.spine.dependency.local
*/
@Suppress("ConstPropertyName")
object Time {
const val version = "2.0.0-SNAPSHOT.230"
const val version = "2.0.0-SNAPSHOT.231"
const val group = Spine.group
const val artifact = "spine-time"
const val lib = "$group:$artifact:$version"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ object Validation {
/**
* The version of the Validation library artifacts.
*/
const val version = "2.0.0-SNAPSHOT.383"
const val version = "2.0.0-SNAPSHOT.391"

/**
* The last version of Validation compatible with ProtoData.
Expand All @@ -53,6 +53,9 @@ object Validation {
fun runtime(version: String) = "$runtimeModule:$version"
val runtime = runtime(version)

@Deprecated("Use `runtime` instead.", ReplaceWith("runtime"))
const val oldRuntime = "io.spine.validation:spine-validation-java-runtime:2.0.0-SNAPSHOT.354"

const val javaModule = "$group:$prefix-java"
const val java = "$javaModule:$version"
const val javaBundleModule = "$group:$prefix-java-bundle"
Expand Down
44 changes: 22 additions & 22 deletions dependencies.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


# Dependencies of `io.spine.tools:compiler-api:2.0.0-SNAPSHOT.037`
# Dependencies of `io.spine.tools:compiler-api:2.0.0-SNAPSHOT.038`

## Runtime
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0.
Expand Down Expand Up @@ -1131,14 +1131,14 @@

The dependencies distributed under several licenses, are used according their commercial-use-friendly license.

This report was generated on **Tue Dec 23 18:46:21 WET 2025** using
This report was generated on **Fri Dec 26 19:14:08 WET 2025** using
[Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under
[Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).




# Dependencies of `io.spine.tools:compiler-api-tests:2.0.0-SNAPSHOT.037`
# Dependencies of `io.spine.tools:compiler-api-tests:2.0.0-SNAPSHOT.038`

## Runtime
## Compile, tests, and tooling
Expand Down Expand Up @@ -1504,14 +1504,14 @@ This report was generated on **Tue Dec 23 18:46:21 WET 2025** using

The dependencies distributed under several licenses, are used according their commercial-use-friendly license.

This report was generated on **Tue Dec 23 18:46:20 WET 2025** using
This report was generated on **Fri Dec 26 19:14:08 WET 2025** using
[Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under
[Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).




# Dependencies of `io.spine.tools:compiler-backend:2.0.0-SNAPSHOT.037`
# Dependencies of `io.spine.tools:compiler-backend:2.0.0-SNAPSHOT.038`

## Runtime
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0.
Expand Down Expand Up @@ -2646,14 +2646,14 @@ This report was generated on **Tue Dec 23 18:46:20 WET 2025** using

The dependencies distributed under several licenses, are used according their commercial-use-friendly license.

This report was generated on **Tue Dec 23 18:46:21 WET 2025** using
This report was generated on **Fri Dec 26 19:14:08 WET 2025** using
[Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under
[Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).




# Dependencies of `io.spine.tools:compiler-cli:2.0.0-SNAPSHOT.037`
# Dependencies of `io.spine.tools:compiler-cli:2.0.0-SNAPSHOT.038`

## Runtime
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0.
Expand Down Expand Up @@ -3837,14 +3837,14 @@ This report was generated on **Tue Dec 23 18:46:21 WET 2025** using

The dependencies distributed under several licenses, are used according their commercial-use-friendly license.

This report was generated on **Tue Dec 23 18:46:21 WET 2025** using
This report was generated on **Fri Dec 26 19:14:08 WET 2025** using
[Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under
[Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).




# Dependencies of `io.spine.tools:compiler-gradle-api:2.0.0-SNAPSHOT.037`
# Dependencies of `io.spine.tools:compiler-gradle-api:2.0.0-SNAPSHOT.038`

## Runtime
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0.
Expand Down Expand Up @@ -4909,14 +4909,14 @@ This report was generated on **Tue Dec 23 18:46:21 WET 2025** using

The dependencies distributed under several licenses, are used according their commercial-use-friendly license.

This report was generated on **Tue Dec 23 18:46:21 WET 2025** using
This report was generated on **Fri Dec 26 19:14:08 WET 2025** using
[Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under
[Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).




# Dependencies of `io.spine.tools:compiler-gradle-plugin:2.0.0-SNAPSHOT.037`
# Dependencies of `io.spine.tools:compiler-gradle-plugin:2.0.0-SNAPSHOT.038`

## Runtime
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0.
Expand Down Expand Up @@ -6029,14 +6029,14 @@ This report was generated on **Tue Dec 23 18:46:21 WET 2025** using

The dependencies distributed under several licenses, are used according their commercial-use-friendly license.

This report was generated on **Tue Dec 23 18:46:21 WET 2025** using
This report was generated on **Fri Dec 26 19:14:08 WET 2025** using
[Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under
[Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).




# Dependencies of `io.spine.tools:compiler-jvm:2.0.0-SNAPSHOT.037`
# Dependencies of `io.spine.tools:compiler-jvm:2.0.0-SNAPSHOT.038`

## Runtime
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0.
Expand Down Expand Up @@ -7188,14 +7188,14 @@ This report was generated on **Tue Dec 23 18:46:21 WET 2025** using

The dependencies distributed under several licenses, are used according their commercial-use-friendly license.

This report was generated on **Tue Dec 23 18:46:21 WET 2025** using
This report was generated on **Fri Dec 26 19:14:08 WET 2025** using
[Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under
[Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).




# Dependencies of `io.spine.tools:compiler-params:2.0.0-SNAPSHOT.037`
# Dependencies of `io.spine.tools:compiler-params:2.0.0-SNAPSHOT.038`

## Runtime
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0.
Expand Down Expand Up @@ -8318,14 +8318,14 @@ This report was generated on **Tue Dec 23 18:46:21 WET 2025** using

The dependencies distributed under several licenses, are used according their commercial-use-friendly license.

This report was generated on **Tue Dec 23 18:46:21 WET 2025** using
This report was generated on **Fri Dec 26 19:14:08 WET 2025** using
[Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under
[Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).




# Dependencies of `io.spine.tools:compiler-protoc-plugin:2.0.0-SNAPSHOT.037`
# Dependencies of `io.spine.tools:compiler-protoc-plugin:2.0.0-SNAPSHOT.038`

## Runtime
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
Expand Down Expand Up @@ -9186,14 +9186,14 @@ This report was generated on **Tue Dec 23 18:46:21 WET 2025** using

The dependencies distributed under several licenses, are used according their commercial-use-friendly license.

This report was generated on **Tue Dec 23 18:46:21 WET 2025** using
This report was generated on **Fri Dec 26 19:14:08 WET 2025** using
[Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under
[Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).




# Dependencies of `io.spine.tools:compiler-test-env:2.0.0-SNAPSHOT.037`
# Dependencies of `io.spine.tools:compiler-test-env:2.0.0-SNAPSHOT.038`

## Runtime
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0.
Expand Down Expand Up @@ -10324,14 +10324,14 @@ This report was generated on **Tue Dec 23 18:46:21 WET 2025** using

The dependencies distributed under several licenses, are used according their commercial-use-friendly license.

This report was generated on **Tue Dec 23 18:46:21 WET 2025** using
This report was generated on **Fri Dec 26 19:14:08 WET 2025** using
[Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under
[Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).




# Dependencies of `io.spine.tools:compiler-testlib:2.0.0-SNAPSHOT.037`
# Dependencies of `io.spine.tools:compiler-testlib:2.0.0-SNAPSHOT.038`

## Runtime
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0.
Expand Down Expand Up @@ -11569,6 +11569,6 @@ This report was generated on **Tue Dec 23 18:46:21 WET 2025** using

The dependencies distributed under several licenses, are used according their commercial-use-friendly license.

This report was generated on **Tue Dec 23 18:46:21 WET 2025** using
This report was generated on **Fri Dec 26 19:14:08 WET 2025** using
[Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under
[Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/*
* Copyright 2025, TeamDev. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Redistribution and use in source and/or binary forms, with or without
* modification, must retain the above copyright notice and the following
* disclaimer.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

package io.spine.tools.compiler.gradle.plugin

import io.spine.tools.code.SourceSetName
import io.spine.tools.gradle.task.TaskWithSourceSetName
import org.gradle.api.tasks.SourceSet

/**
* The name of the Kotlin Symbol Processing task, such as `compileKotlin` or `compileTestKotlin`.
*/
internal class KspTaskName(ssn: SourceSetName) :
TaskWithSourceSetName("compile${ssn.toInfix()}Kotlin", ssn) {

companion object {

/**
* Obtains the task name for the given source set.
*/
fun of(ss: SourceSet) = KspTaskName(SourceSetName(ss.name))
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@ private fun LaunchSpineCompiler.setDependencies(sourceSet: SourceSet) {
val launchTask = this
project.findJavaCompileFor(sourceSet)?.dependsOn(launchTask)
project.findKotlinCompileFor(sourceSet)?.dependsOn(launchTask)

val kspTask = KspTaskName.of(sourceSet)
project.tasks.findByName(kspTask.value())?.dependsOn(launchTask)
}

/**
Expand Down
Loading
Loading