2020-08-25 19:25:31 +02:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
maven { url = 'https://files.minecraftforge.net/maven/' }
|
|
|
|
jcenter()
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
dependencies {
|
2021-06-16 21:36:18 +02:00
|
|
|
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.0.9', changing: true
|
2020-08-25 19:25:31 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'net.minecraftforge.gradle'
|
|
|
|
|
|
|
|
minecraft {
|
|
|
|
mappings channel: 'snapshot', version: '20190719-1.14.3'
|
|
|
|
}
|
|
|
|
|
|
|
|
configurations {
|
2021-05-16 18:13:30 +02:00
|
|
|
implementation.extendsFrom include
|
2020-08-25 19:25:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
minecraft 'net.minecraftforge:forge:1.14.4-28.2.0'
|
|
|
|
|
|
|
|
include (project(':BlueMapCommon')) {
|
|
|
|
//exclude dependencies provided by forge
|
2020-08-30 13:25:22 +02:00
|
|
|
exclude group: 'com.google.guava', module: 'guava'
|
2020-08-25 19:25:31 +02:00
|
|
|
exclude group: 'com.google.code.gson', module: 'gson'
|
|
|
|
exclude group: 'org.apache.commons', module: 'commons-lang3'
|
|
|
|
exclude group: 'commons-io', module: 'commons-io'
|
|
|
|
exclude group: 'com.mojang', module: 'brigadier'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
build.dependsOn shadowJar {
|
2021-05-16 18:13:30 +02:00
|
|
|
destinationDirectory = file '../../build/release'
|
|
|
|
archiveFileName.set("BlueMap-${archiveVersion.get()}-forge-1.14.4.jar")
|
2020-08-25 19:25:31 +02:00
|
|
|
|
|
|
|
configurations = [project.configurations.include]
|
|
|
|
|
|
|
|
//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'
|
2021-05-16 18:13:30 +02:00
|
|
|
relocate 'org.spongepowered.configurate', 'de.bluecolored.shadow.configurate'
|
2020-08-25 19:25:31 +02:00
|
|
|
relocate 'com.github.benmanes.caffeine', 'de.bluecolored.shadow.benmanes.caffeine'
|
|
|
|
relocate 'com.google.errorprone', 'de.bluecolored.shadow.google.errorprone'
|
2020-08-30 13:25:22 +02:00
|
|
|
relocate 'org.aopalliance', 'de.bluecolored.shadow.aopalliance'
|
2020-08-30 14:41:51 +02:00
|
|
|
relocate 'javax.inject', 'de.bluecolored.shadow.javax.inject'
|
2020-08-30 13:25:22 +02:00
|
|
|
relocate 'com.google.inject', 'de.bluecolored.shadow.google.inject'
|
2020-08-25 19:25:31 +02:00
|
|
|
relocate 'org.checkerframework', 'de.bluecolored.shadow.checkerframework'
|
2020-08-30 13:25:22 +02:00
|
|
|
relocate 'org.codehaus', 'de.bluecolored.shadow.codehaus'
|
2021-05-16 18:13:30 +02:00
|
|
|
relocate 'io.leangen.geantyref', 'de.bluecolored.shadow.geantyref'
|
2020-08-25 19:25:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
processResources {
|
|
|
|
from(sourceSets.main.resources.srcDirs) {
|
|
|
|
include 'mcmod.info','META-INF/mods.toml'
|
2021-05-16 18:13:30 +02:00
|
|
|
duplicatesStrategy = DuplicatesStrategy.WARN
|
2020-08-25 19:25:31 +02:00
|
|
|
|
|
|
|
expand (
|
|
|
|
version: project.version
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
afterEvaluate {
|
|
|
|
reobf {
|
|
|
|
shadowJar {
|
|
|
|
mappings = createMcpToSrg.output
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|