Skip to content

Trigger publishing - #947

Merged
alexander-yevsyukov merged 3 commits into
masterfrom
trigger-publishing
Jun 16, 2026
Merged

Trigger publishing#947
alexander-yevsyukov merged 3 commits into
masterfrom
trigger-publishing

Conversation

@alexander-yevsyukov

@alexander-yevsyukov alexander-yevsyukov commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

This PR bumps the version to trigger publishing which (mysteriously) did not happen for the previous PR.

Latest config was also applied.

@alexander-yevsyukov alexander-yevsyukov self-assigned this Jun 16, 2026
@alexander-yevsyukov
alexander-yevsyukov marked this pull request as ready for review June 16, 2026 16:14
@alexander-yevsyukov alexander-yevsyukov moved this to 🏗 In progress in v2.0 Jun 16, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR increments the published snapshot version and updates build tooling/report generation to correctly write and deduplicate dependencies (including semantic version comparison and proper Maven scopes), plus regenerates dependency documentation and adjusts CI to run Dokka.

Changes:

  • Bump snapshot version from 2.0.0-SNAPSHOT.412 to 2.0.0-SNAPSHOT.413 across Gradle and docs.
  • Improve dependency pom.xml generation: omit null versions, deduplicate by semantic version ordering, and prefer the widest/highest-ranking Maven scope for the retained version.
  • Add buildSrc tests for version comparison and dependency writing; update CI to run dokkaGenerate on pushes.

Reviewed changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
version.gradle.kts Bumps versionToPublish to trigger publishing.
docs/dependencies/pom.xml Regenerates dependency POM output (no <version>null</version>, scope/version ordering changes).
docs/dependencies/dependencies.md Regenerates dependency/license report for the new snapshot.
config Updates submodule pointer.
buildSrc/src/main/kotlin/io/spine/gradle/report/pom/VersionComparator.kt Adds semantic-ish version comparator used for dependency selection.
buildSrc/src/main/kotlin/io/spine/gradle/report/pom/DependencyWriter.kt Updates XML writing to omit null versions; updates deduplication logic to use semantic version + scope priority.
buildSrc/src/main/kotlin/io/spine/gradle/report/pom/ScopedDependency.kt Updates scope ordering/priority (incl. provided, system, undefined) and docs.
buildSrc/src/test/kotlin/io/spine/gradle/report/pom/VersionComparatorSpec.kt Adds tests for version comparison semantics.
buildSrc/src/test/kotlin/io/spine/gradle/report/pom/DependencyWriterSpec.kt Adds tests for deduplication, scope merging, ordering, and null-version omission.
buildSrc/src/main/kotlin/io/spine/gradle/publish/GitHubPackages.kt Clarifies token KDoc wording.
buildSrc/src/main/kotlin/io/spine/dependency/local/ProtoTap.kt Bumps ProtoTap version.
buildSrc/src/main/kotlin/io/spine/dependency/local/ProtoData.kt Removes ProtoData dependency helper object.
buildSrc/src/main/kotlin/io/spine/dependency/local/McJava.kt Removes McJava dependency helper object.
buildSrc/src/main/kotlin/BuildExtensions.kt Removes mcJava shortcut and updates related KDoc.
.github/workflows/build-on-ubuntu.yml Runs dokkaGenerate alongside build to surface Dokka warnings pre-merge.

Comment thread version.gradle.kts
*/

val versionToPublish: String by extra("2.0.0-SNAPSHOT.412")
val versionToPublish: String by extra("2.0.0-SNAPSHOT.413")
Comment on lines +195 to +203
val groups = dependencies.groupBy { it.run { "$group:$name" } }

logDuplicates(groups)
logDuplicates(groups.mapValues { (_, deps) -> deps.distinctBy { it.gav } })

val filtered = groups.map { group ->
group.value.maxByOrNull { dep -> dep.version ?: "" }
}.filterNotNull()
val filtered = groups.values.map { sameArtifact ->
val newest = sameArtifact.maxWith(compareBy(VersionComparator) { it.version ?: "" })
sameArtifact.filter { it.version == newest.version }
.minBy { it.scoped.dependencyPriority() }
}
@alexander-yevsyukov
alexander-yevsyukov merged commit 88613b1 into master Jun 16, 2026
8 checks passed
@codecov

codecov Bot commented Jun 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.04%. Comparing base (91b9283) to head (a8e0a45).
⚠️ Report is 5 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #947   +/-   ##
=======================================
  Coverage   94.04%   94.04%           
=======================================
  Files         192      192           
  Lines        4149     4149           
  Branches      339      339           
=======================================
  Hits         3902     3902           
  Misses        147      147           
  Partials      100      100           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@alexander-yevsyukov
alexander-yevsyukov deleted the trigger-publishing branch June 16, 2026 16:22
@github-project-automation github-project-automation Bot moved this from 🏗 In progress to ✅ Done in v2.0 Jun 16, 2026
Copilot stopped reviewing on behalf of alexander-yevsyukov due to an error June 16, 2026 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants