File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -113,16 +113,16 @@ tasks {
113
113
}
114
114
}
115
115
116
- withType< Jar >().configureEach {
117
- inputs.property( " moduleName " , otelJava.moduleName)
118
-
119
- manifest {
120
- attributes(
121
- " Automatic-Module-Name " to otelJava.moduleName,
122
- " Built-By " to System .getProperty(" user.name " ),
123
- " Built-JDK " to System .getProperty( " java.version " ),
124
- " Implementation-Title " to project.name,
125
- " Implementation-Version " to project.version
116
+ named( " jar " , Jar :: class .java) {
117
+ bundle {
118
+ bnd(
119
+ """
120
+ Automatic-Module-Name: \ ${ ' $ ' } {otelJava.moduleName.get()} \n
121
+ Built-By: \ ${ System .getProperty( " user.name " )} \n
122
+ Built-JDK: \ ${ System .getProperty(" java.version " )} \n
123
+ Implementation-Title: \ ${project.name} \n
124
+ Implementation-Version: \ ${ project.version} \n
125
+ """
126
126
)
127
127
}
128
128
}
You can’t perform that action at this time.
0 commit comments