moved jar config in afterEvaluate

pull/11/head
Stefan Feuerhahn 6 years ago
parent 7c4961db5f
commit c7c69b6294

@ -59,11 +59,13 @@ configure(javaProjects) {
useJUnitPlatform() useJUnitPlatform()
} }
jar { afterEvaluate {
inputs.property("moduleName", moduleName) jar {
manifest { inputs.property("moduleName", moduleName)
version = project.version.replace("-", ".") manifest {
attributes('Automatic-Module-Name': moduleName) version = project.version.replace("-", ".")
attributes('Automatic-Module-Name': moduleName)
}
} }
} }

@ -76,11 +76,11 @@ dependencies {
runtimeOnly group: "ch.qos.logback", name: "logback-classic", version: "1.2.3" runtimeOnly group: "ch.qos.logback", name: "logback-classic", version: "1.2.3"
} }
ext.moduleName = 'com.beanit.openiec61850' ext.moduleName = "com.beanit.openiec61850"
jar { jar {
bnd("Bundle-Name": "OpenIEC61850", bnd("Bundle-Name": "OpenIEC61850",
"Bundle-SymbolicName": "com.beanit.openiec61850", "Bundle-SymbolicName": moduleName,
"-exportcontents": "!*.internal.*,*", "-exportcontents": "!*.internal.*,*",
"Import-Package": "com.beanit.jasn1.*,javax.net,*;resolution:=optional") "Import-Package": "com.beanit.jasn1.*,javax.net,*;resolution:=optional")
} }

Loading…
Cancel
Save