Skip to content

Commit 65c9ef8

Browse files
committed
Merge pull request #5 from arturdm/feature/add-source-jar-publish
Add sources jar
2 parents 31b2a96 + a0db1d3 commit 65c9ef8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,19 @@ jacocoTestReport {
4848
}
4949
}
5050

51+
task sourcesJar(type: Jar) {
52+
classifier = 'sources'
53+
from sourceSets.main.allSource
54+
}
55+
5156
publishing {
5257
publications {
5358
plugin(MavenPublication) {
5459
from components.java
60+
61+
artifact sourcesJar {
62+
classifier "sources"
63+
}
5564
}
5665
}
5766
}

0 commit comments

Comments
 (0)