mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-10-06 19:47:53 +02:00
55 lines
1.6 KiB
Groovy
55 lines
1.6 KiB
Groovy
|
plugins {
|
||
|
id 'fabric-loom' version '0.2.7-SNAPSHOT'
|
||
|
}
|
||
|
|
||
|
configurations {
|
||
|
compile.extendsFrom include
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
minecraft "com.mojang:minecraft:1.15.2"
|
||
|
mappings "net.fabricmc:yarn:1.15.2+build.15:v2"
|
||
|
modImplementation "net.fabricmc:fabric-loader:0.8.2+build.194"
|
||
|
modImplementation "net.fabricmc.fabric-api:fabric-api:0.5.1+build.294-1.15"
|
||
|
|
||
|
include (project(':BlueMapCommon')) {
|
||
|
//exclude dependencies provided by fabric
|
||
|
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'
|
||
|
exclude group: 'com.mojang', module: 'brigadier'
|
||
|
}
|
||
|
}
|
||
|
|
||
|
build.dependsOn shadowJar {
|
||
|
destinationDir = file '../build/unsupported'
|
||
|
archiveFileName = "BlueMap-${version}-fabric.jar"
|
||
|
|
||
|
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'
|
||
|
relocate 'ninja.leaping.configurate', 'de.bluecolored.shadow.ninja.leaping.configurate'
|
||
|
relocate 'org.yaml.snakeyaml', 'de.bluecolored.shadow.yaml.snakeyaml'
|
||
|
}
|
||
|
|
||
|
processResources {
|
||
|
inputs.property "version", project.version
|
||
|
|
||
|
from(sourceSets.main.resources.srcDirs) {
|
||
|
include "fabric.mod.json"
|
||
|
expand "version": project.version
|
||
|
}
|
||
|
|
||
|
from(sourceSets.main.resources.srcDirs) {
|
||
|
exclude "fabric.mod.json"
|
||
|
}
|
||
|
}
|
||
|
|
||
|
task sourcesJar(type: Jar, dependsOn: classes) {
|
||
|
classifier = "sources"
|
||
|
from sourceSets.main.allSource
|
||
|
}
|