diff options
author | Adrian Siekierka <[email protected]> | 2018-12-22 17:37:14 +0100 |
---|---|---|
committer | keuin <[email protected]> | 2020-04-23 00:20:28 +0800 |
commit | dcc691e7cea8058cd98ea7eef820a76b9b1acc92 (patch) | |
tree | 24288f81814d3c9b583ce567c8b0d51a300bce41 /build.gradle | |
parent | f8322e1f2ff431fc68c5912c05c5f77f2e530200 (diff) |
add sourcesJar
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle index 82a6eac..15f358d 100644 --- a/build.gradle +++ b/build.gradle @@ -19,3 +19,11 @@ dependencies { // Fabric API. This is technically optional, but you probably want it anyway. modCompile "net.fabricmc:fabric:0.1.1.61" } + +// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task +// if it is present. +// If you remove this task, sources will not be generated. +task sourcesJar(type: Jar, dependsOn: classes) { + classifier = 'sources' + from sourceSets.main.allSource +} |