Publish the report HTML as a JVM-target resource JAR#59
Merged
Conversation
Place the HTML at org/gradle/internal/configuration/problems/ inside the JAR — the path where the consumer (configuration-problems-base in gradle/gradle) loads it via CommonReport::class.java.getResource. The consumer no longer needs to repack the JAR into its own resources tree; it can include the JAR's contents as-is.
mlopatkin
force-pushed
the
ml/refactor-cc-report-consumption
branch
from
June 11, 2026 10:43
df03916 to
6567d8f
Compare
Add a jvm() target to the multiplatform build and pack the assembled report HTML into its resources. The standard jvmJar replaces the hand-rolled jar task and the custom DocsType consumable variant, so the artifact is consumable as an ordinary java-runtime library via the KMP-generated jvm variant. Switch publishing to the standard KMP publications (root + jvm). The JS target is only a build input -- its webpack bundle is inlined into the HTML -- so it is not published. project.version now derives from the configuration-cache-report.version property.
mlopatkin
force-pushed
the
ml/refactor-cc-report-consumption
branch
from
June 11, 2026 10:48
6567d8f to
3b06bb9
Compare
mlopatkin
marked this pull request as ready for review
June 11, 2026 10:49
mlopatkin
requested review from
a team,
abstratt,
asodja and
eskatos
and removed request for
a team
June 11, 2026 10:49
eskatos
approved these changes
Jun 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a
jvm()target to the multiplatform build and pack the assembled report HTML into its resources.The standard
jvmJarreplaces the hand-rolled jar task and the custom DocsType consumable variant, so the artifact is consumable as an ordinary java-runtime library via the KMP-generated jvm variant.Switch publishing to the standard KMP publications (root + jvm). The JS target is only a build input -- its webpack bundle is inlined into the HTML -- so it is not published.
This is a preliminary step to eliminate multiple sources of truth for the serialized forms of the data. This proved to
be problematic for people working on the report when they make changes in one place and forget to update the other side.
To align with KMP,
project.versionnow derives from theconfiguration-cache-report.versionproperty instead of the latter being set on the publication directly.The corresponding
gradle/gradlechange is gradle/gradle#38183