BlueMap/implementations/forge-1.16.2/build.gradle

71 lines
2.1 KiB
Groovy
Raw Normal View History

2020-01-20 21:51:20 +08:00
buildscript {
repositories {
maven { url = 'https://files.minecraftforge.net/maven/' }
jcenter()
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
}
}
apply plugin: 'net.minecraftforge.gradle'
minecraft {
2020-07-30 22:45:22 +08:00
mappings channel: 'snapshot', version: '20200514-1.16'
}
configurations {
compile.extendsFrom include
}
2020-01-20 21:51:20 +08:00
dependencies {
2020-09-12 19:49:42 +08:00
minecraft 'net.minecraftforge:forge:1.16.3-34.0.0'
include (project(':BlueMapCommon')) {
//exclude dependencies provided by forge
exclude group: 'com.google.guava', module: 'guava'
exclude group: 'com.google.code.gson', module: 'gson'
exclude group: 'org.apache.commons', module: 'commons-lang3'
exclude group: 'commons-io', module: 'commons-io'
2020-05-10 07:28:09 +08:00
exclude group: 'com.mojang', module: 'brigadier'
}
2020-01-20 21:51:20 +08:00
}
build.dependsOn shadowJar {
destinationDir = file '../../build/release'
archiveFileName = "BlueMap-${version}-forge-1.16.4.jar"
configurations = [project.configurations.include]
2020-04-20 19:49:56 +08:00
//relocate 'com.flowpowered.math', 'de.bluecolored.shadow.flowpowered.math' //DON'T relocate this, because the API depends on it
relocate 'com.typesafe.config', 'de.bluecolored.shadow.typesafe.config'
relocate 'net.querz.nbt', 'de.bluecolored.shadow.querz.nbt'
relocate 'ninja.leaping.configurate', 'de.bluecolored.shadow.ninja.leaping.configurate'
relocate 'com.github.benmanes.caffeine', 'de.bluecolored.shadow.benmanes.caffeine'
relocate 'com.google.errorprone', 'de.bluecolored.shadow.google.errorprone'
relocate 'org.aopalliance', 'de.bluecolored.shadow.aopalliance'
2020-08-30 20:41:51 +08:00
relocate 'javax.inject', 'de.bluecolored.shadow.javax.inject'
relocate 'com.google.inject', 'de.bluecolored.shadow.google.inject'
relocate 'org.checkerframework', 'de.bluecolored.shadow.checkerframework'
relocate 'org.codehaus', 'de.bluecolored.shadow.codehaus'
}
processResources {
from(sourceSets.main.resources.srcDirs) {
2020-04-04 22:05:56 +08:00
include 'mcmod.info','META-INF/mods.toml'
expand (
version: project.version
)
}
}
2020-04-04 22:05:56 +08:00
afterEvaluate {
reobf {
shadowJar {
mappings = createMcpToSrg.output
}
}
}