Skip to content

Commit d767203

Browse files
committed
enable source artifacts
1 parent 60bd402 commit d767203

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

objectbox-java-api/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ task sourcesJar(type: Jar) {
3131
artifacts {
3232
archives jar
3333
archives javadocJar
34-
// Not yet: archives sourcesJar
34+
archives sourcesJar
3535
}
3636

3737
uploadArchives {

objectbox-java/build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,15 @@ task javadocJar(type: Jar, dependsOn: javadoc) {
5353
from 'build/docs/javadoc'
5454
}
5555

56+
task sourcesJar(type: Jar) {
57+
from sourceSets.main.allSource
58+
classifier = 'sources'
59+
}
60+
5661
artifacts {
5762
archives jar
5863
archives javadocJar
59-
// Not yet: archives sourcesJar
64+
archives sourcesJar
6065
}
6166

6267
uploadArchives {

0 commit comments

Comments
 (0)