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 {