From dcc691e7cea8058cd98ea7eef820a76b9b1acc92 Mon Sep 17 00:00:00 2001 From: Adrian Siekierka Date: Sat, 22 Dec 2018 17:37:14 +0100 Subject: add sourcesJar --- build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) 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 +} -- cgit v1.2.3