fix gradle jars!!! woohoo!!!!!!!

This commit is contained in:
Draylar
2021-03-12 15:12:53 -06:00
parent e6b551a0aa
commit df0e5d8eae
+14 -8
View File
@@ -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 {