@@ -52,8 +52,15 @@ dependencies {
52
52
}
53
53
54
54
jar {
55
+ from(projectDir) { include " README.md" }
56
+
55
57
manifest {
56
- attributes ' Implementation-Title' : ' AWS Lambda OpenTracing Java SDK' , ' Implementation-Version' : project. version
58
+ attributes ' Implementation-Title' : ' AWS Lambda OpenTracing Java SDK' ,
59
+ ' Implementation-Version' : project. version,
60
+ ' Created-By' : ' New Relic, Inc' ,
61
+ ' Built-Date' : new Date (),
62
+ ' Specification-Version' : project. version,
63
+ ' Build-Id' : System . getProperty(' BUILD_ID' ) || " None"
57
64
}
58
65
}
59
66
@@ -62,6 +69,29 @@ task uploadSonatype(type: Upload) {
62
69
uploadDescriptor = true
63
70
}
64
71
72
+ task customSourcesJar (type : Jar ) {
73
+ classifier = ' sources'
74
+ from(projectDir) { include " README.md" }
75
+ from(sourceSets. main. allSource)
76
+
77
+ manifest {
78
+ attributes ' Implementation-Title' : ' AWS Lambda OpenTracing Java SDK Sources' ,
79
+ ' Implementation-Version' : project. version,
80
+ ' Created-By' : ' New Relic, Inc' ,
81
+ ' Built-Date' : new Date (),
82
+ ' Specification-Version' : project. version,
83
+ ' Build-Id' : System . getProperty(' BUILD_ID' ) || " None"
84
+ }
85
+ }
86
+
87
+ artifacts {
88
+ archives customSourcesJar
89
+ }
90
+
91
+ extraArchive {
92
+ sources = false
93
+ }
94
+
65
95
nexus {
66
96
sign = true
67
97
configuration = " sonatype"
0 commit comments