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
Original file line number Diff line number Diff line change
Expand Up @@ -152,16 +152,27 @@ sealed class PublicationHandler(
*/
protected fun MavenPublication.copyProjectAttributes() {
groupId = project.group.toString()
val platformSuffix = artifactId.removePrefix(project.name)
artifactId = project.artifactId + platformSuffix
// Add the proper prefix to the `artifactId`.
// The default `artifactId` is either `project.name` or
// the `project.name` with the platform suffix of a KMM distribution.
artifactId = if (artifactId.startsWith(project.name)) {
val platformSuffix = artifactId.removePrefix(project.name)
project.artifactId + platformSuffix
} else {
// This is unlikely case of `artifactId` being set to something unrelated.
// We overwrite it with our calculated ID.
project.artifactId
Comment on lines +162 to +164
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep non-default publication artifact IDs distinct

When copyProjectAttributes() is used for custom publications (see CustomPublicationHandler.handlePublications), this new else branch collapses any publication whose artifactId does not start with project.name to the same project.artifactId. In modules that define multiple custom MavenPublications with explicit artifact IDs, that produces duplicate coordinates and publication clashes. The previous logic preserved distinct IDs (by carrying through the existing suffix), so this is a regression for custom publishing scenarios.

Useful? React with 👍 / 👎.

}
version = project.version.toString()
pom.description.set(project.description)
pom.inceptionYear.set(InceptionYear.value)
pom.licenses {
license {
name.set(LicenseSettings.name)
url.set(LicenseSettings.url)
distribution.set(LicenseSettings.url)
// It's either `"repo"` or `"manual"`.
// https://maven.apache.org/ref/3.9.15/maven-model/apidocs/org/apache/maven/model/License.html?utm_source=chatgpt.com#setDistribution(java.lang.String)
distribution.set("repo")
}
}
pom.scm {
Expand Down
64 changes: 32 additions & 32 deletions dependencies.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


# Dependencies of `io.spine:spine-logging-context-tests:2.0.0-SNAPSHOT.416`
# Dependencies of `io.spine:spine-logging-context-tests:2.0.0-SNAPSHOT.417`

## Runtime
1. **Group** : org.jetbrains. **Name** : annotations. **Version** : 26.0.2.
Expand Down Expand Up @@ -409,14 +409,14 @@

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

This report was generated on **Thu Apr 23 18:15:38 WEST 2026** using
This report was generated on **Thu Apr 23 18:49:28 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:spine-logging-fixtures:2.0.0-SNAPSHOT.416`
# Dependencies of `io.spine:spine-logging-fixtures:2.0.0-SNAPSHOT.417`

## Runtime
## Compile, tests, and tooling
Expand Down Expand Up @@ -1176,14 +1176,14 @@ This report was generated on **Thu Apr 23 18:15:38 WEST 2026** using

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

This report was generated on **Thu Apr 23 18:15:40 WEST 2026** using
This report was generated on **Thu Apr 23 18:49:31 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:spine-logging-grpc-context:2.0.0-SNAPSHOT.416`
# Dependencies of `io.spine:spine-logging-grpc-context:2.0.0-SNAPSHOT.417`

## Runtime
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
Expand Down Expand Up @@ -2022,14 +2022,14 @@ This report was generated on **Thu Apr 23 18:15:40 WEST 2026** using

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

This report was generated on **Thu Apr 23 18:15:38 WEST 2026** using
This report was generated on **Thu Apr 23 18:49:28 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:spine-logging-jul-backend:2.0.0-SNAPSHOT.416`
# Dependencies of `io.spine:spine-logging-jul-backend:2.0.0-SNAPSHOT.417`

## Runtime
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
Expand Down Expand Up @@ -2852,14 +2852,14 @@ This report was generated on **Thu Apr 23 18:15:38 WEST 2026** using

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

This report was generated on **Thu Apr 23 18:15:38 WEST 2026** using
This report was generated on **Thu Apr 23 18:49:28 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:spine-logging-jvm-default-platform:2.0.0-SNAPSHOT.416`
# Dependencies of `io.spine:spine-logging-jvm-default-platform:2.0.0-SNAPSHOT.417`

## Runtime
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
Expand Down Expand Up @@ -3702,14 +3702,14 @@ This report was generated on **Thu Apr 23 18:15:38 WEST 2026** using

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

This report was generated on **Thu Apr 23 18:15:38 WEST 2026** using
This report was generated on **Thu Apr 23 18:49:28 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:spine-logging-jvm-jul-backend-grpc-context:2.0.0-SNAPSHOT.416`
# Dependencies of `io.spine:spine-logging-jvm-jul-backend-grpc-context:2.0.0-SNAPSHOT.417`

## Runtime
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
Expand Down Expand Up @@ -4600,14 +4600,14 @@ This report was generated on **Thu Apr 23 18:15:38 WEST 2026** using

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

This report was generated on **Thu Apr 23 18:15:38 WEST 2026** using
This report was generated on **Thu Apr 23 18:49:28 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:spine-logging-jvm-jul-backend-std-context:2.0.0-SNAPSHOT.416`
# Dependencies of `io.spine:spine-logging-jvm-jul-backend-std-context:2.0.0-SNAPSHOT.417`

## Runtime
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
Expand Down Expand Up @@ -5490,14 +5490,14 @@ This report was generated on **Thu Apr 23 18:15:38 WEST 2026** using

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

This report was generated on **Thu Apr 23 18:15:38 WEST 2026** using
This report was generated on **Thu Apr 23 18:49:28 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:spine-logging-jvm-log4j2-backend-std-context:2.0.0-SNAPSHOT.416`
# Dependencies of `io.spine:spine-logging-jvm-log4j2-backend-std-context:2.0.0-SNAPSHOT.417`

## Runtime
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
Expand Down Expand Up @@ -6380,14 +6380,14 @@ This report was generated on **Thu Apr 23 18:15:38 WEST 2026** using

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

This report was generated on **Thu Apr 23 18:15:38 WEST 2026** using
This report was generated on **Thu Apr 23 18:49:28 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:spine-logging-jvm-slf4j-jdk14-backend-std-context:2.0.0-SNAPSHOT.416`
# Dependencies of `io.spine:spine-logging-jvm-slf4j-jdk14-backend-std-context:2.0.0-SNAPSHOT.417`

## Runtime
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
Expand Down Expand Up @@ -7278,14 +7278,14 @@ This report was generated on **Thu Apr 23 18:15:38 WEST 2026** using

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

This report was generated on **Thu Apr 23 18:15:38 WEST 2026** using
This report was generated on **Thu Apr 23 18:49:28 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:spine-logging-jvm-slf4j-reload4j-backend-std-context:2.0.0-SNAPSHOT.416`
# Dependencies of `io.spine:spine-logging-jvm-slf4j-reload4j-backend-std-context:2.0.0-SNAPSHOT.417`

## Runtime
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
Expand Down Expand Up @@ -8180,14 +8180,14 @@ This report was generated on **Thu Apr 23 18:15:38 WEST 2026** using

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

This report was generated on **Thu Apr 23 18:15:38 WEST 2026** using
This report was generated on **Thu Apr 23 18:49:28 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:spine-logging-log4j2-backend:2.0.0-SNAPSHOT.416`
# Dependencies of `io.spine:spine-logging-log4j2-backend:2.0.0-SNAPSHOT.417`

## Runtime
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
Expand Down Expand Up @@ -9034,14 +9034,14 @@ This report was generated on **Thu Apr 23 18:15:38 WEST 2026** using

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

This report was generated on **Thu Apr 23 18:15:38 WEST 2026** using
This report was generated on **Thu Apr 23 18:49:28 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:spine-logging:2.0.0-SNAPSHOT.416`
# Dependencies of `io.spine:spine-logging:2.0.0-SNAPSHOT.417`

## Runtime
## Compile, tests, and tooling
Expand Down Expand Up @@ -9829,14 +9829,14 @@ This report was generated on **Thu Apr 23 18:15:38 WEST 2026** using

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

This report was generated on **Thu Apr 23 18:15:40 WEST 2026** using
This report was generated on **Thu Apr 23 18:49:31 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:logging-testlib:2.0.0-SNAPSHOT.416`
# Dependencies of `io.spine.tools:logging-testlib:2.0.0-SNAPSHOT.417`

## Runtime
## Compile, tests, and tooling
Expand Down Expand Up @@ -10616,14 +10616,14 @@ This report was generated on **Thu Apr 23 18:15:40 WEST 2026** using

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

This report was generated on **Thu Apr 23 18:15:38 WEST 2026** using
This report was generated on **Thu Apr 23 18:49:28 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:spine-logging-probe-backend:2.0.0-SNAPSHOT.416`
# Dependencies of `io.spine:spine-logging-probe-backend:2.0.0-SNAPSHOT.417`

## Runtime
1. **Group** : com.google.auto.service. **Name** : auto-service-annotations. **Version** : 1.1.1.
Expand Down Expand Up @@ -11470,14 +11470,14 @@ This report was generated on **Thu Apr 23 18:15:38 WEST 2026** using

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

This report was generated on **Thu Apr 23 18:15:38 WEST 2026** using
This report was generated on **Thu Apr 23 18:49:28 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:spine-logging-smoke-test:2.0.0-SNAPSHOT.416`
# Dependencies of `io.spine:spine-logging-smoke-test:2.0.0-SNAPSHOT.417`

## Runtime
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0.
Expand Down Expand Up @@ -12368,14 +12368,14 @@ This report was generated on **Thu Apr 23 18:15:38 WEST 2026** using

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

This report was generated on **Thu Apr 23 18:15:38 WEST 2026** using
This report was generated on **Thu Apr 23 18:49:28 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:spine-logging-std-context:2.0.0-SNAPSHOT.416`
# Dependencies of `io.spine:spine-logging-std-context:2.0.0-SNAPSHOT.417`

## Runtime
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
Expand Down Expand Up @@ -13198,6 +13198,6 @@ This report was generated on **Thu Apr 23 18:15:38 WEST 2026** using

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

This report was generated on **Thu Apr 23 18:15:38 WEST 2026** using
This report was generated on **Thu Apr 23 18:49:28 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).
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</groupId>
<artifactId>spine-logging</artifactId>
<version>2.0.0-SNAPSHOT.416</version>
<version>2.0.0-SNAPSHOT.417</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.416")
val versionToPublish: String by extra("2.0.0-SNAPSHOT.417")
Loading