Once again attempt to include shadow
This commit is contained in:
parent
d96b97a7cb
commit
911f3a4152
24
jfmod.gradle
24
jfmod.gradle
|
@ -17,6 +17,7 @@ buildscript {
|
|||
classpath "org.ajoberstar.grgit:grgit-gradle:5.0.0"
|
||||
classpath "com.modrinth.minotaur:Minotaur:2.1.0"
|
||||
classpath "io.gitlab.jfronny:CurseGradle:1.4.0-1642087331626"
|
||||
classpath "gradle.plugin.com.github.johnrengelman:shadow:7.1.2"
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -146,6 +147,7 @@ allprojects {
|
|||
apply plugin: "java-library"
|
||||
apply plugin: "maven-publish"
|
||||
apply plugin: net.fabricmc.loom.bootstrap.LoomGradlePluginBootstrap
|
||||
apply plugin: com.github.jengelman.gradle.plugins.shadow.ShadowPlugin
|
||||
|
||||
tasks.withType(JavaCompile).configureEach {
|
||||
it.options.encoding = "UTF-8"
|
||||
|
@ -189,12 +191,20 @@ allprojects {
|
|||
}
|
||||
|
||||
jar {
|
||||
archiveClassifier = "dev"
|
||||
archiveClassifier = 'dev'
|
||||
}
|
||||
|
||||
shadowJar {
|
||||
configurations = [ project.configurations.shadow ]
|
||||
archiveClassifier = 'shadow'
|
||||
destinationDirectory = file("${project.buildDir}/devlibs")
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
remapJar {
|
||||
input = file("${project.buildDir}/devlibs/$archivesBaseName-${project.version}-dev.jar")
|
||||
dependsOn shadowJar
|
||||
|
||||
input = file("${project.buildDir}/devlibs/$archivesBaseName-${project.version}-shadow.jar")
|
||||
archiveFileName = "${archivesBaseName}-${project.version}.jar"
|
||||
}
|
||||
|
||||
|
@ -203,10 +213,10 @@ allprojects {
|
|||
}
|
||||
|
||||
processResources {
|
||||
inputs.property "version", project.version
|
||||
inputs.property 'version', project.version
|
||||
|
||||
filesMatching("fabric.mod.json") {
|
||||
expand "version": project.version
|
||||
filesMatching('fabric.mod.json') {
|
||||
expand 'version': project.version
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -220,8 +230,8 @@ allprojects {
|
|||
reproducibleFileOrder = true
|
||||
}
|
||||
|
||||
task remapMavenJar(type: net.fabricmc.loom.task.RemapJarTask, dependsOn: jar) {
|
||||
input = jar.archiveFile
|
||||
task remapMavenJar(type: net.fabricmc.loom.task.RemapJarTask, dependsOn: shadowJar) {
|
||||
input = shadowJar.archiveFile
|
||||
archiveFileName = "${archivesBaseName}-${project.version}-maven.jar"
|
||||
addNestedDependencies = false
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue