Skip to content

Commit 40e6941

Browse files
authored
Merge pull request #14 from newrelic/jkeller/add-jar-readmes
Add readmes to jars
2 parents cfcdf37 + b6f4298 commit 40e6941

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

build.gradle

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,15 @@ dependencies {
5252
}
5353

5454
jar {
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+
6595
nexus {
6696
sign = true
6797
configuration = "sonatype"

0 commit comments

Comments
 (0)