We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbe3e90 commit a97916bCopy full SHA for a97916b
plugins/build.gradle.kts
@@ -73,6 +73,14 @@ tasks {
73
// doLast { delete(layout.buildDirectory) }
74
}
75
76
+ // Hack to include the generated version catalog accessors to the final jar
77
+ named<Jar>("jar") {
78
+ from(sourceSets.main.get().output)
79
+ from(files(libs.javaClass.superclass.protectionDomain.codeSource.location))
80
+ // Ensure the JAR is not classified as a different artifact
81
+ archiveClassifier = ""
82
+ }
83
+
84
withType<GenerateJteTask>().configureEach { mustRunAfter("sourcesJar") }
85
86
0 commit comments