2020-01-20 14:51:20 +01: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'
|
|
|
|
|
2020-03-30 02:34:18 +02:00
|
|
|
minecraft {
|
2020-07-30 16:45:22 +02:00
|
|
|
mappings channel: 'snapshot', version: '20200514-1.16'
|
2020-03-30 02:34:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
compile.extendsFrom include
|
|
|
|
}
|
2020-01-20 14:51:20 +01:00
|
|
|
|
|
|
|
dependencies {
|
2020-08-19 21:50:37 +02:00
|
|
|
minecraft 'net.minecraftforge:forge:1.16.2-33.0.7'
|
2020-04-06 17:55:35 +02:00
|
|
|
|
|
|
|
include (project(':BlueMapCommon')) {
|
|
|
|
//exclude dependencies provided by forge
|
2020-08-30 13:25:22 +02:00
|
|
|
exclude group: 'com.google.guava', module: 'guava'
|
2020-04-06 17:55:35 +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'
|
2020-05-10 01:28:09 +02:00
|
|
|
exclude group: 'com.mojang', module: 'brigadier'
|
2020-04-06 17:55:35 +02:00
|
|
|
}
|
2020-01-20 14:51:20 +01:00
|
|
|
}
|
|
|
|
|
2020-03-30 02:34:18 +02:00
|
|
|
build.dependsOn shadowJar {
|
2020-08-25 15:44:25 +02:00
|
|
|
destinationDir = file '../../build/release'
|
2020-08-25 15:18:44 +02:00
|
|
|
archiveFileName = "BlueMap-${version}-forge-1.16.2.jar"
|
2020-03-30 02:34:18 +02:00
|
|
|
|
|
|
|
configurations = [project.configurations.include]
|
|
|
|
|
2020-04-20 13:49:56 +02:00
|
|
|
//relocate 'com.flowpowered.math', 'de.bluecolored.shadow.flowpowered.math' //DON'T relocate this, because the API depends on it
|
2020-04-06 17:55:35 +02:00
|
|
|
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'
|
2020-08-23 12:36:29 +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'
|
|
|
|
relocate 'javax.inject', 'de.bluecolored.javax.inject'
|
|
|
|
relocate 'com.google.inject', 'de.bluecolored.shadow.google.inject'
|
2020-08-23 12:36:29 +02:00
|
|
|
relocate 'org.checkerframework', 'de.bluecolored.shadow.checkerframework'
|
2020-08-30 13:25:22 +02:00
|
|
|
relocate 'org.codehaus', 'de.bluecolored.shadow.codehaus'
|
2020-03-30 02:34:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
processResources {
|
|
|
|
from(sourceSets.main.resources.srcDirs) {
|
2020-04-04 16:05:56 +02:00
|
|
|
include 'mcmod.info','META-INF/mods.toml'
|
2020-03-30 02:34:18 +02:00
|
|
|
|
|
|
|
expand (
|
|
|
|
version: project.version
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
2020-04-04 16:05:56 +02:00
|
|
|
|
|
|
|
afterEvaluate {
|
|
|
|
reobf {
|
|
|
|
shadowJar {
|
|
|
|
mappings = createMcpToSrg.output
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|