From df0e5d8eaea17883d8611af587c64560617a4a31 Mon Sep 17 00:00:00 2001 From: Draylar Date: Fri, 12 Mar 2021 15:12:53 -0600 Subject: [PATCH] fix gradle jars!!! woohoo!!!!!!! --- build.gradle | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/build.gradle b/build.gradle index c5d2e8f..7e4ffa7 100644 --- a/build.gradle +++ b/build.gradle @@ -93,6 +93,20 @@ allprojects { runtimeClasspath += main.runtimeClasspath } } + + // Task for building base jars in all modules + task buildJar(type: Jar) { + archivesBaseName += "-" + project.mod_version + "-" + project.minecraft_version + from project(":omega-config-gui").sourceSets.main.java.srcDirs + } + + // 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 + } } dependencies { @@ -107,14 +121,6 @@ tasks.withType(JavaCompile) { options.encoding = "UTF-8" } -// 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 -} - // configure the maven publication publishing { publications {