GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Load the publish, shadow and protobuf plugins in the root build script · jonoffcpu/jonoffcpu@48430cb

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • AGENTS.md
  • build.gradle.kts
  • jonoffcpu-agent
    • build.gradle.kts
  • jonoffcpu-correlator
    • build.gradle.kts
  • jonoffcpu-jfr-converter
    • build.gradle.kts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎AGENTS.md‎

Copy file name to clipboardExpand all lines: AGENTS.md
+4Lines changed: 4 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ and exact-cookie matches rather than only checking process exit status.
159159
correlator's names are the `OutputFiles` constants, and the agent derives
160160
its manifest and default JFR from the stem of `correlationOutput` via
161161
`ManifestStore.sibling`. Never spell an output name inline.
162+
- Declare every plugin version once, in the root build script, with
163+
`apply false` for the ones the subprojects apply. Gradle gives a subproject
164+
whose plugin set differs from its siblings' its own class loader, and the
165+
publish plugin's shared build service then cannot cross that boundary.
162166
- Keep public configuration, manifest, capture stream, report, and CLI changes backward
163167
compatible unless a format/version migration is designed and documented.
164168
- Use supported public JDK JFR APIs in the correlator. Do not depend on
Collapse file

‎build.gradle.kts‎

Copy file name to clipboardExpand all lines: build.gradle.kts
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
import com.diffplug.gradle.spotless.SpotlessExtension
22

3+
// Plugin versions live here, and the publish, shadow and protobuf plugins are loaded in the root
4+
// scope with `apply false` so that every subproject shares one instance of each. Declaring them in
5+
// the subprojects instead gives a module whose plugin set differs from its siblings' a class loader
6+
// of its own, and the publish plugin's shared build service then fails to cross that boundary.
37
plugins {
48
id("com.diffplug.spotless") version "8.10.2"
9+
id("com.vanniktech.maven.publish.base") version "0.37.0" apply false
10+
id("com.gradleup.shadow") version "9.6.1" apply false
11+
id("com.google.protobuf") version "0.10.0" apply false
512
}
613

714
repositories {
Collapse file

‎jonoffcpu-agent/build.gradle.kts‎

Copy file name to clipboardExpand all lines: jonoffcpu-agent/build.gradle.kts
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import org.gradle.jvm.toolchain.JvmVendorSpec
1212
plugins {
1313
`java-library`
1414
// The base plugin: the full plugin would publish components["java"], but only the shaded JAR is published.
15-
id("com.vanniktech.maven.publish.base") version "0.37.0"
16-
id("com.gradleup.shadow") version "9.6.1"
17-
id("com.google.protobuf") version "0.10.0"
15+
id("com.vanniktech.maven.publish.base")
16+
id("com.gradleup.shadow")
17+
id("com.google.protobuf")
1818
}
1919

2020
group = "io.github.lhotari"
Collapse file

‎jonoffcpu-correlator/build.gradle.kts‎

Copy file name to clipboardExpand all lines: jonoffcpu-correlator/build.gradle.kts
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import org.gradle.jvm.toolchain.JvmVendorSpec
1212
plugins {
1313
`java-library`
1414
// The base plugin: the full plugin would publish components["java"], but only the shaded JAR is published.
15-
id("com.vanniktech.maven.publish.base") version "0.37.0"
16-
id("com.gradleup.shadow") version "9.6.1"
17-
id("com.google.protobuf") version "0.10.0"
15+
id("com.vanniktech.maven.publish.base")
16+
id("com.gradleup.shadow")
17+
id("com.google.protobuf")
1818
}
1919

2020
group = "io.github.lhotari"
Collapse file

‎jonoffcpu-jfr-converter/build.gradle.kts‎

Copy file name to clipboardExpand all lines: jonoffcpu-jfr-converter/build.gradle.kts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import org.gradle.jvm.toolchain.JvmVendorSpec
1111
plugins {
1212
`java-library`
1313
// The base plugin: the build script registers the publication itself, as in the other modules.
14-
id("com.vanniktech.maven.publish.base") version "0.37.0"
14+
id("com.vanniktech.maven.publish.base")
1515
}
1616

1717
group = "io.github.lhotari"

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.