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
56 changes: 28 additions & 28 deletions dependencies.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


# Dependencies of `io.spine.tools:classic-codegen:2.0.0-SNAPSHOT.375`
# Dependencies of `io.spine.tools:classic-codegen:2.0.0-SNAPSHOT.376`

## Runtime
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
Expand Down Expand Up @@ -839,14 +839,14 @@

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

This report was generated on **Mon Mar 23 19:47:37 WET 2026** using
This report was generated on **Thu Apr 02 20:24:24 WEST 2026** 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:gradle-plugin-api:2.0.0-SNAPSHOT.375`
# Dependencies of `io.spine.tools:gradle-plugin-api:2.0.0-SNAPSHOT.376`

## Runtime
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0.
Expand Down Expand Up @@ -1752,14 +1752,14 @@ This report was generated on **Mon Mar 23 19:47:37 WET 2026** using

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

This report was generated on **Mon Mar 23 19:47:36 WET 2026** using
This report was generated on **Thu Apr 02 20:24:25 WEST 2026** 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:gradle-plugin-api-test-fixtures:2.0.0-SNAPSHOT.375`
# Dependencies of `io.spine.tools:gradle-plugin-api-test-fixtures:2.0.0-SNAPSHOT.376`

## Runtime
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0.
Expand Down Expand Up @@ -2230,14 +2230,14 @@ This report was generated on **Mon Mar 23 19:47:36 WET 2026** using

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

This report was generated on **Mon Mar 23 19:47:36 WET 2026** using
This report was generated on **Thu Apr 02 20:24:24 WEST 2026** 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:gradle-root-plugin:2.0.0-SNAPSHOT.375`
# Dependencies of `io.spine.tools:gradle-root-plugin:2.0.0-SNAPSHOT.376`

## Runtime
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
Expand Down Expand Up @@ -3095,14 +3095,14 @@ This report was generated on **Mon Mar 23 19:47:36 WET 2026** using

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

This report was generated on **Mon Mar 23 19:47:36 WET 2026** using
This report was generated on **Thu Apr 02 20:24:25 WEST 2026** 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:intellij-platform:2.0.0-SNAPSHOT.375`
# Dependencies of `io.spine.tools:intellij-platform:2.0.0-SNAPSHOT.376`

## Runtime
1. **Group** : be.cyberelf.nanoxml. **Name** : nanoxml. **Version** : 2.2.3.
Expand Down Expand Up @@ -4183,14 +4183,14 @@ This report was generated on **Mon Mar 23 19:47:36 WET 2026** using

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

This report was generated on **Mon Mar 23 19:47:37 WET 2026** using
This report was generated on **Thu Apr 02 20:24:25 WEST 2026** 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:intellij-platform-java:2.0.0-SNAPSHOT.375`
# Dependencies of `io.spine.tools:intellij-platform-java:2.0.0-SNAPSHOT.376`

## Runtime
1. **Group** : be.cyberelf.nanoxml. **Name** : nanoxml. **Version** : 2.2.3.
Expand Down Expand Up @@ -5969,14 +5969,14 @@ This report was generated on **Mon Mar 23 19:47:37 WET 2026** using

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

This report was generated on **Mon Mar 23 19:47:37 WET 2026** using
This report was generated on **Thu Apr 02 20:24:25 WEST 2026** 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:jvm-tool-plugins:2.0.0-SNAPSHOT.375`
# Dependencies of `io.spine.tools:jvm-tool-plugins:2.0.0-SNAPSHOT.376`

## Runtime
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
Expand Down Expand Up @@ -6826,14 +6826,14 @@ This report was generated on **Mon Mar 23 19:47:37 WET 2026** using

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

This report was generated on **Mon Mar 23 19:47:36 WET 2026** using
This report was generated on **Thu Apr 02 20:24:25 WEST 2026** 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:jvm-tools:2.0.0-SNAPSHOT.375`
# Dependencies of `io.spine.tools:jvm-tools:2.0.0-SNAPSHOT.376`

## Runtime
1. **Group** : org.jetbrains. **Name** : annotations. **Version** : 26.0.2.
Expand Down Expand Up @@ -7600,14 +7600,14 @@ This report was generated on **Mon Mar 23 19:47:36 WET 2026** using

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

This report was generated on **Mon Mar 23 19:47:36 WET 2026** using
This report was generated on **Thu Apr 02 20:24:24 WEST 2026** 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:plugin-base:2.0.0-SNAPSHOT.375`
# Dependencies of `io.spine.tools:plugin-base:2.0.0-SNAPSHOT.376`

## Runtime
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
Expand Down Expand Up @@ -8465,14 +8465,14 @@ This report was generated on **Mon Mar 23 19:47:36 WET 2026** using

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

This report was generated on **Mon Mar 23 19:47:36 WET 2026** using
This report was generated on **Thu Apr 02 20:24:24 WEST 2026** 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:plugin-testlib:2.0.0-SNAPSHOT.375`
# Dependencies of `io.spine.tools:plugin-testlib:2.0.0-SNAPSHOT.376`

## Runtime
1. **Group** : com.google.auto.value. **Name** : auto-value-annotations. **Version** : 1.10.2.
Expand Down Expand Up @@ -9434,14 +9434,14 @@ This report was generated on **Mon Mar 23 19:47:36 WET 2026** using

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

This report was generated on **Mon Mar 23 19:47:36 WET 2026** using
This report was generated on **Thu Apr 02 20:24:24 WEST 2026** 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:protobuf-setup-plugins:2.0.0-SNAPSHOT.375`
# Dependencies of `io.spine.tools:protobuf-setup-plugins:2.0.0-SNAPSHOT.376`

## Runtime
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
Expand Down Expand Up @@ -10311,14 +10311,14 @@ This report was generated on **Mon Mar 23 19:47:36 WET 2026** using

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

This report was generated on **Mon Mar 23 19:47:36 WET 2026** using
This report was generated on **Thu Apr 02 20:24:25 WEST 2026** 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:psi:2.0.0-SNAPSHOT.375`
# Dependencies of `io.spine.tools:psi:2.0.0-SNAPSHOT.376`

## Runtime
1. **Group** : be.cyberelf.nanoxml. **Name** : nanoxml. **Version** : 2.2.3.
Expand Down Expand Up @@ -11426,14 +11426,14 @@ This report was generated on **Mon Mar 23 19:47:36 WET 2026** using

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

This report was generated on **Mon Mar 23 19:47:37 WET 2026** using
This report was generated on **Thu Apr 02 20:24:25 WEST 2026** 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:psi-java:2.0.0-SNAPSHOT.375`
# Dependencies of `io.spine.tools:psi-java:2.0.0-SNAPSHOT.376`

## Runtime
1. **Group** : be.cyberelf.nanoxml. **Name** : nanoxml. **Version** : 2.2.3.
Expand Down Expand Up @@ -13255,14 +13255,14 @@ This report was generated on **Mon Mar 23 19:47:37 WET 2026** using

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

This report was generated on **Mon Mar 23 19:47:37 WET 2026** using
This report was generated on **Thu Apr 02 20:24:25 WEST 2026** 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:tool-base:2.0.0-SNAPSHOT.375`
# Dependencies of `io.spine.tools:tool-base:2.0.0-SNAPSHOT.376`

## Runtime
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
Expand Down Expand Up @@ -14149,6 +14149,6 @@ This report was generated on **Mon Mar 23 19:47:37 WET 2026** using

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

This report was generated on **Mon Mar 23 19:47:37 WET 2026** using
This report was generated on **Thu Apr 02 20:24:25 WEST 2026** 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
Expand Up @@ -139,7 +139,7 @@ import org.gradle.kotlin.dsl.register
*
* Notes:
* - Explicitly declared dependencies are merged with those discovered from configurations.
* - Duplicates are de-duplicated, and the list is sorted by the group and artifact ID.
* - Duplicates are deduplicated, and the list is sorted by the group and artifact ID.
*/
public class ArtifactMetaPlugin : Plugin<Project> {

Expand All @@ -163,7 +163,8 @@ public class ArtifactMetaPlugin : Plugin<Project> {
it.dependsOn(task)
}
afterEvaluate {
tasks.findByName(sourcesJar.value())?.dependsOn(task)
val sourcesJarTask = tasks.findByName(sourcesJar.value())
sourcesJarTask?.dependsOn(task)
}

// Add the output directory to the resources
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ import io.kotest.matchers.string.shouldNotContain
import io.kotest.matchers.string.shouldStartWith
import io.spine.tools.gradle.jvm.plugin.ArtifactMetaPlugin.Companion.WORKING_DIR
import io.spine.tools.gradle.task.BaseTaskName
import io.spine.tools.gradle.task.JavaTaskName.Companion.processResources
import io.spine.tools.gradle.task.JavaTaskName.Companion.sourcesJar
import io.spine.tools.gradle.task.TaskName
import io.spine.tools.gradle.testing.Gradle
import io.spine.tools.gradle.testing.Gradle.BUILD_SUCCESSFUL
Expand All @@ -44,7 +46,9 @@ import io.spine.tools.meta.ArtifactMeta.Companion.RESOURCE_DIRECTORY
import io.spine.tools.meta.Module
import java.io.File
import org.gradle.api.Project
import org.gradle.api.internal.project.DefaultProject
import org.gradle.api.plugins.JavaPlugin
import org.gradle.api.plugins.JavaPluginExtension
import org.gradle.testfixtures.ProjectBuilder
import org.gradle.testkit.runner.TaskOutcome
import org.junit.jupiter.api.BeforeEach
Expand Down Expand Up @@ -76,7 +80,7 @@ class ArtifactMetaPluginSpec {
}

@Test
fun `register WriteDependencies task when applied`() {
fun `register 'WriteArtifactMeta' task when applied`() {
project.pluginManager.apply(pluginClass)

val task = project.tasks.findByName(WriteArtifactMeta.TASK_NAME)
Expand All @@ -85,17 +89,31 @@ class ArtifactMetaPluginSpec {
}

@Test
fun `make 'processResources' depend on the 'writeDependencies' task`() {
fun `make 'processResources' depend on the 'ariteArtifactMeta' task`() {
project.pluginManager.apply(pluginClass)

val processResources = project.tasks.getByName("processResources")
val processResources = project.tasks.getByName(processResources.value())
val hasDependency = processResources.dependsOn.any {
dep -> dep.toString().contains(WriteArtifactMeta.TASK_NAME)
}

hasDependency shouldBe true
}

@Test
fun `make 'sourcesJar' depend on the 'ariteArtifactMeta' task`() {
project.pluginManager.apply(pluginClass)
project.extensions.findByType(JavaPluginExtension::class.java)?.withSourcesJar()
(project as DefaultProject).evaluate()

val sourcesJar = project.tasks.getByName(sourcesJar.value())
val hasDependency = sourcesJar.dependsOn.any {
dep -> dep.toString().contains(WriteArtifactMeta.TASK_NAME)
}

hasDependency shouldBe true
}

/**
* Verifies that the file with metadata is created under the `build` directory.
*/
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ all modules and does not describe the project structure per-subproject.
-->
<groupId>io.spine.tools</groupId>
<artifactId>tool-base</artifactId>
<version>2.0.0-SNAPSHOT.375</version>
<version>2.0.0-SNAPSHOT.376</version>

<inceptionYear>2015</inceptionYear>

Expand Down
2 changes: 1 addition & 1 deletion version.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

val versionToPublish: String by extra("2.0.0-SNAPSHOT.375")
val versionToPublish: String by extra("2.0.0-SNAPSHOT.376")
Loading