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
12 changes: 12 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ spinePublishing {
gitHub("compiler")
)}

artifactPrefix = "compiler-"
toolArtifactPrefix = "compiler-"
}

allprojects {
Expand Down
30 changes: 29 additions & 1 deletion buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,12 @@ val jacksonVersion = "2.18.3"
*/
val googleAuthToolVersion = "2.1.5"

val licenseReportVersion = "2.7"
/**
* Generates reports about the licenses of the dependencies for a Gradle project.
*
* https://github.com/jk1/Gradle-License-Report
*/
val licenseReportVersion = "3.1.2"

val grGitVersion = "4.1.1"

Expand Down Expand Up @@ -141,6 +146,20 @@ val koverVersion = "0.9.1"
*/
val shadowVersion = "9.2.2"

/**
* The version of JUnit used to test the build scripts.
*
* @see [io.spine.dependency.test.JUnit]
*/
val junitVersion = "6.0.3"

/**
* The version of Kotest used to test the build scripts.
*
* @see [io.spine.dependency.test.Kotest]
*/
val kotestVersion = "6.1.10"

configurations.all {
resolutionStrategy {
force(
Expand Down Expand Up @@ -192,6 +211,15 @@ dependencies {
).forEach {
implementation(it)
}

testImplementation(platform("org.junit:junit-bom:$junitVersion"))
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("io.kotest:kotest-assertions-core:$kotestVersion")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}

tasks.test {
useJUnitPlatform()
}

dependOnBuildSrcJar()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ object Dokka {
* When changing the version, also change the version used in the
* `buildSrc/build.gradle.kts`.
*/
const val version = "2.1.0"
const val version = "2.2.0"

object GradlePlugin {
const val id = "org.jetbrains.dokka"
Expand Down

This file was deleted.

4 changes: 2 additions & 2 deletions buildSrc/src/main/kotlin/io/spine/dependency/local/Base.kt
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ package io.spine.dependency.local
*/
@Suppress("ConstPropertyName", "unused")
object Base {
const val version = "2.0.0-SNAPSHOT.386"
const val versionForBuildScript = "2.0.0-SNAPSHOT.386"
const val version = "2.0.0-SNAPSHOT.387"
const val versionForBuildScript = "2.0.0-SNAPSHOT.387"
const val group = Spine.group
private const val prefix = "spine"
const val libModule = "$prefix-base"
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.040"
private const val fallbackVersion = "2.0.0-SNAPSHOT.041"

/**
* 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.039"
private const val fallbackDfVersion = "2.0.0-SNAPSHOT.041"

/**
* 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.371"
const val version = "2.0.0-SNAPSHOT.372"

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.055"
const val dogfoodingVersion = "2.0.0-SNAPSHOT.058"

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

/**
* The ID of the Gradle plugin.
Expand Down
4 changes: 2 additions & 2 deletions buildSrc/src/main/kotlin/io/spine/dependency/local/TestLib.kt
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ package io.spine.dependency.local
*/
@Suppress("ConstPropertyName")
object TestLib {
const val version = "2.0.0-SNAPSHOT.211"
const val version = "2.0.0-SNAPSHOT.212"
const val group = Spine.toolsGroup
const val artifact = "spine-testlib"
const val artifact = "base-testlib"
const val lib = "$group:$artifact:$version"
}
45 changes: 35 additions & 10 deletions buildSrc/src/main/kotlin/io/spine/dependency/local/Time.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025, TeamDev. All rights reserved.
* Copyright 2026, 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.
Expand All @@ -26,18 +26,43 @@

package io.spine.dependency.local

import io.spine.dependency.Dependency

/**
* Spine Time library.
*
* @see <a href="https://github.com/SpineEventEngine/time">spine-time</a>
*/
@Suppress("ConstPropertyName")
object Time {
const val version = "2.0.0-SNAPSHOT.232"
const val group = Spine.group
const val artifact = "spine-time"
const val lib = "$group:$artifact:$version"
const val javaExtensions = "$group:$artifact-java:$version"
const val kotlinExtensions = "$group:$artifact-kotlin:$version"
const val testLib = "${Spine.toolsGroup}:spine-time-testlib:$version"
@Suppress(
"unused" /* Some subprojects do not use all Time artifacts. */,
"ConstPropertyName" /* We use custom convention for artifact properties. */,
"MemberVisibilityCanBePrivate" /* The properties are used directly by other subprojects. */,
)
object Time : Dependency() {
override val group = Spine.group
override val version = "2.0.0-SNAPSHOT.235"
private const val infix = "spine-time"

fun lib(version: String): String = "$group:$infix:$version"
val lib get() = lib(version)
const val libArtifact: String = infix

fun javaExtensions(version: String): String = "$group:$infix-java:$version"
val javaExtensions get() = javaExtensions(version)

fun kotlinExtensions(version: String): String = "$group:$infix-kotlin:$version"
val kotlinExtensions get() = kotlinExtensions(version)

fun testLib(version: String): String = "${Spine.toolsGroup}:time-testlib:$version"
val testLib get() = testLib(version)

override val modules: List<String>
get() = listOf(
lib,
javaExtensions,
kotlinExtensions,
testLib
).map {
it.split(":").let { (g, artifact) -> "$g:$artifact" }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ package io.spine.dependency.local
@Suppress("ConstPropertyName", "unused")
object ToolBase {
const val group = Spine.toolsGroup
const val version = "2.0.0-SNAPSHOT.375"
const val dogfoodingVersion = "2.0.0-SNAPSHOT.375"
const val version = "2.0.0-SNAPSHOT.376"
const val dogfoodingVersion = "2.0.0-SNAPSHOT.376"

const val lib = "$group:tool-base:$version"
const val classicCodegen = "$group:classic-codegen:$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.406"
const val version = "2.0.0-SNAPSHOT.411"

/**
* The last version of Validation compatible with ProtoData.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ package io.spine.dependency.test
*/
@Suppress("unused", "ConstPropertyName")
object Kotest {
const val version = "6.0.4"
const val version = "6.1.11"
const val group = "io.kotest"
const val gradlePluginId = "io.kotest"
const val assertions = "$group:kotest-assertions-core:$version"
Expand Down
11 changes: 4 additions & 7 deletions buildSrc/src/main/kotlin/io/spine/gradle/ProjectExtensions.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025, TeamDev. All rights reserved.
* Copyright 2026, 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.
Expand Down Expand Up @@ -36,10 +36,6 @@ import org.gradle.api.tasks.SourceSetContainer
import org.gradle.kotlin.dsl.findByType
import org.gradle.kotlin.dsl.getByType

/**
* This file contains extension methods and properties for the Gradle `Project`.
*/

/**
* Logs the result of the function using the project logger at `INFO` level.
*/
Expand Down Expand Up @@ -86,8 +82,9 @@ fun <T : Task> Project.getTask(name: String): T {
/**
* Obtains Maven artifact ID of this [Project].
*
* The method checks if [SpinePublishing] extension is configured upon this project. If yes,
* returns [SpinePublishing.artifactId] for the project. Otherwise, a project's name is returned.
* The property getter checks if [SpinePublishing] extension is configured upon this project.
* If yes, it returns [SpinePublishing.artifactId] for the project.
* Otherwise, a project's name is returned.
*/
val Project.artifactId: String
get() {
Expand Down
Loading
Loading