Skip to content

Commit a97916b

Browse files
committed
chore: add catalog accessors
1 parent dbe3e90 commit a97916b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

plugins/build.gradle.kts

+8
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,14 @@ tasks {
7373
// doLast { delete(layout.buildDirectory) }
7474
}
7575

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+
7684
withType<GenerateJteTask>().configureEach { mustRunAfter("sourcesJar") }
7785
}
7886

0 commit comments

Comments
 (0)