You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logger.info "Got an error trying to read VCS metadata from git. It's possible this project is not under VCS control. Using placeholder values for manifest entries."
226
-
isDirty =true
227
-
branchName ="Unknown"
228
-
gitHash ="None"
229
-
gitHashFull ="None"
230
-
commitDistance =0
231
-
lastTag ="None"
232
-
isCleanTag =false
233
-
}
234
-
235
-
ext.gitManifest =manifest {
236
-
attributes "Application-Name": pluginAppName,
237
-
"Build-Date": buildDate,
238
-
"Build-Number": buildNumber,
239
-
"Implementation-Version": project.version,
240
-
"Implementation-Sha": gitHash,
241
-
"Implementation-Sha-Full": gitHashFull,
242
-
"Implementation-Commit": commitDistance,
243
-
"Implementation-LastTag": lastTag,
244
-
"Implementation-Branch": branchName,
245
-
"Implementation-CleanTag": isCleanTag,
246
-
"Implementation-Dirty": isDirty
247
-
}
206
+
//// Pulls in the Jenkins BUILD_NUMBER environment variable if available.
// logger.info "Got an error trying to read VCS metadata from git. It's possible this project is not under VCS control. Using placeholder values for manifest entries."
222
+
// isDirty = true
223
+
// branchName = "Unknown"
224
+
// gitHash = "None"
225
+
// gitHashFull = "None"
226
+
// commitDistance = 0
227
+
// lastTag = "None"
228
+
// isCleanTag = false
229
+
//}
230
+
//
231
+
//ext.gitManifest = manifest {
232
+
// attributes "Application-Name": pluginAppName,
233
+
// "Build-Date": buildDate,
234
+
// "Build-Number": buildNumber,
235
+
// "Implementation-Version": project.version,
236
+
// "Implementation-Sha": gitHash,
237
+
// "Implementation-Sha-Full": gitHashFull,
238
+
// "Implementation-Commit": commitDistance,
239
+
// "Implementation-LastTag": lastTag,
240
+
// "Implementation-Branch": branchName,
241
+
// "Implementation-CleanTag": isCleanTag,
242
+
// "Implementation-Dirty": isDirty
243
+
//}
248
244
249
245
task fatJar(type: Jar) {
250
246
zip64 true
@@ -257,9 +253,9 @@ task fatJar(type: Jar) {
257
253
exclude "META-INF/*.RSA"
258
254
}
259
255
duplicatesStrategy "exclude"
260
-
manifest {
261
-
from gitManifest
262
-
}
256
+
// manifest {
257
+
// from gitManifest
258
+
// }
263
259
with jar
264
260
}
265
261
@@ -269,9 +265,9 @@ sourceSets.main.java {
269
265
}
270
266
271
267
jar{
272
-
manifest {
273
-
from gitManifest
274
-
}
268
+
// manifest {
269
+
// from gitManifest
270
+
// }
275
271
doLast {
276
272
if (!gradle.taskGraph.hasTask(":fatJar")) {
277
273
logger.warn 'WARNING: You should generally run fatJar instead of jar task for this plugin'
@@ -281,78 +277,73 @@ jar{
281
277
282
278
task sourceJar(type: Jar, dependsOn: classes) {
283
279
classifier ="sources"
284
-
manifest {
285
-
from gitManifest
286
-
}
280
+
// manifest {
281
+
// from gitManifest
282
+
// }
287
283
from sourceSets.main.allSource
288
284
}
289
285
290
286
task javadocJar(type: Jar, dependsOn: javadoc) {
291
287
classifier ="javadoc"
292
-
manifest {
293
-
from gitManifest
294
-
}
288
+
// manifest {
289
+
// from gitManifest
290
+
// }
295
291
from javadoc.destinationDir
296
292
}
297
293
298
-
publishing {
299
-
publications {
300
-
mavenJava(MavenPublication) {
301
-
artifacts {
302
-
artifact sourceJar
303
-
artifact javadocJar
304
-
artifact fatJar
305
-
}
306
-
307
-
pom.withXml {
308
-
def root = asNode()
309
-
root.appendNode("name", pluginAppName)
310
-
root.appendNode("description", "XNAT plugin for launching and managing containers.")
0 commit comments