@@ -110,20 +110,38 @@ dokka {
110110
111111project. tasks[" jar" ]. dependsOn(project. tasks[" dokka" ])
112112
113- jar {
113+ task fatJar ( type : Jar ) {
114114 manifest {
115115 attributes([
116- " Specification-Title" : projectEssentialsName,
116+ " Specification-Title" : " $ projectEssentialsName -MOD " ,
117117 " Specification-Vendor" : projectEssentialsVendor,
118118 " Specification-Version" : projectEssentialsVersion,
119- " Implementation-Title" : projectEssentialsName,
119+ " Implementation-Title" : " $ projectEssentialsName -MOD " ,
120120 " Implementation-Version" : projectEssentialsVersion,
121121 " Implementation-Vendor" : projectEssentialsVendor,
122122 " Implementation-Timestamp" : new Date (). format(" yyyy-MM-dd'T'HH:mm:ssZ" )
123123 ])
124124 }
125-
125+ baseName = project . name + ' -mod '
126126 from configurations. embed. collect { it. isDirectory() ? it : zipTree(it) }
127+ with jar
128+ }
129+
130+ project. tasks[" jar" ]. dependsOn(project. tasks[" fatJar" ])
131+
132+ jar {
133+ manifest {
134+ attributes([
135+ " Specification-Title" : " $projectEssentialsName -API" ,
136+ " Specification-Vendor" : projectEssentialsVendor,
137+ " Specification-Version" : projectEssentialsVersion,
138+ " Implementation-Title" : " $projectEssentialsName -API" ,
139+ " Implementation-Version" : projectEssentialsVersion,
140+ " Implementation-Vendor" : projectEssentialsVendor,
141+ " Implementation-Timestamp" : new Date (). format(" yyyy-MM-dd'T'HH:mm:ssZ" )
142+ ])
143+ }
144+ baseName = project. name + ' -api'
127145}
128146
129147sourceCompatibility = targetCompatibility =
0 commit comments