@@ -52,8 +52,15 @@ dependencies {
5252}
5353
5454jar {
55+ from(projectDir) { include " README.md" }
56+
5557 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"
5764 }
5865}
5966
@@ -62,6 +69,29 @@ task uploadSonatype(type: Upload) {
6269 uploadDescriptor = true
6370}
6471
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+
6595nexus {
6696 sign = true
6797 configuration = " sonatype"
0 commit comments