diff options
| -rw-r--r-- | build.gradle | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle index c65ccca2..162d16dc 100644 --- a/build.gradle +++ b/build.gradle | |||
| @@ -159,9 +159,15 @@ task('libJar', type: Jar, dependsOn: classes) { | |||
| 159 | } | 159 | } |
| 160 | } | 160 | } |
| 161 | 161 | ||
| 162 | task sourcesJar(type: Jar, dependsOn: classes) { | ||
| 163 | classifier = 'sources' | ||
| 164 | from sourceSets.main.allSource | ||
| 165 | } | ||
| 166 | |||
| 162 | artifacts { | 167 | artifacts { |
| 163 | archives shadowJar | 168 | archives shadowJar |
| 164 | archives libJar | 169 | archives libJar |
| 170 | archives sourcesJar | ||
| 165 | } | 171 | } |
| 166 | 172 | ||
| 167 | // And finally, make the build generate / install the jars. | 173 | // And finally, make the build generate / install the jars. |