@@ -36,8 +36,6 @@ ext.servicesToPublish = [
3636
3737ext. zoweComponentsToPublish = ext. servicesToPublish + ext. javaLibraries
3838
39- ext. sdksToPublish = ext. enablers + ext. javaLibraries
40-
4139configure(subprojects. findAll { it. name in zoweComponentsToPublish }) {
4240 apply plugin : ' maven-publish'
4341 apply plugin : ' java'
@@ -84,7 +82,7 @@ if (enablerPropsFile.exists()) {
8482// 3. Get the version, or use the rootProject.version as a fallback
8583def sdkVersion = enablerProps. getProperty(" version" )
8684
87- configure(subprojects. findAll { it. name in sdksToPublish }) {
85+ configure(subprojects. findAll { it. name in enablers }) {
8886 apply plugin : ' maven-publish'
8987 apply plugin : ' java'
9088
@@ -116,7 +114,7 @@ configure(subprojects.findAll { it.name in sdksToPublish }) {
116114 }
117115}
118116
119- configure(subprojects. findAll { it. name in sdksToPublish }) {
117+ configure(subprojects. findAll { it. name in enablers }) {
120118 publishing {
121119 publications {
122120 mavenJava(MavenPublication ) {
@@ -150,6 +148,41 @@ configure(subprojects.findAll { it.name in sdksToPublish }) {
150148 }
151149 }
152150
151+ }
152+ configure(subprojects. findAll { it. name in javaLibraries }) {
153+ publishing {
154+ publications {
155+ mavenJava(MavenPublication ) {
156+ groupId ' org.zowe.apiml.sdk'
157+ version rootProject. version
158+ artifactId " ${ project.name} "
159+
160+ from components. java
161+
162+ pom. withXml {
163+ asNode(). dependencies. ' *' . findAll() {
164+ it. scope. text() == ' runtime' && project. configurations. implementation. allDependencies. find { dep ->
165+ dep. name == it. artifactId. text()
166+ }
167+ }. each { it. scope* . value = ' compile' }
168+ }
169+ }
170+ }
171+ }
172+
173+ tasks. withType(Jar ) {
174+ manifest {
175+ attributes " Specification-Title" : project. name
176+ attributes " Specification-Version" : rootProject. version
177+ attributes " Specification-Vendor" : " Zowe org"
178+
179+ attributes " Implementation-Title" : project. name
180+ attributes " Implementation-Version" : rootProject. version
181+ attributes " Implementation-Vendor" : " Zowe org"
182+ attributes " Implementation-Vendor-Id" : " org.zowe.apiml.sdk"
183+ }
184+ }
185+
153186}
154187
155188configure(subprojects. findAll { it. name in servicesToPublish }) {
@@ -186,7 +219,7 @@ ext.publishZoweServerTasksList = zoweComponentsToPublish.collect {
186219
187220ext. publishTasksList = enablers. collect {
188221 " :" + it + " :publish"
189- } + " :platform:publish "
222+ }
190223
191224// noinspection GroovyAssignabilityCheck
192225tasks. register(' publishZoweServerArtifacts' ) {
0 commit comments