diff options
| author | 2018-06-30 17:20:12 +0800 | |
|---|---|---|
| committer | 2018-06-30 18:31:13 +0800 | |
| commit | b4bde863c4686ec13e08b10b6ff0c45891faf407 (patch) | |
| tree | 9f953b3ab386d9a6fa9c6aca0eb1a9a3bf68a6ac | |
| parent | Fix method parameter info sometimes causing the exported class to become inva... (diff) | |
| download | enigma-b4bde863c4686ec13e08b10b6ff0c45891faf407.tar.gz enigma-b4bde863c4686ec13e08b10b6ff0c45891faf407.tar.xz enigma-b4bde863c4686ec13e08b10b6ff0c45891faf407.zip | |
basic source jar
| -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. |