fix gradle jars!!! woohoo!!!!!!!
This commit is contained in:
+14
-8
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user