-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
57 lines (49 loc) · 1.75 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
plugins {
id "java"
id "com.github.johnrengelman.shadow" version "+" apply false
}
group "org.mtr.mod"
version rootProject.properties.version
subprojects {
apply plugin: "java"
apply plugin: "com.github.johnrengelman.shadow"
configurations {
shadowImplementation
implementation.extendsFrom shadowImplementation
}
dependencies {
shadowImplementation "org.mtr:Shadow-Libraries-net:0.0.1"
shadowImplementation "org.mtr:Shadow-Libraries-util:0.0.1"
shadowImplementation "org.mtr:Minecraft-Mappings-common:0.0.1"
shadowImplementation "org.mtr:Transport-Simulation-Core:0.0.1"
shadowImplementation "com.logisticscraft:occlusionculling:+"
compileOnly "com.google.code.findbugs:jsr305:+"
compileOnly "xyz.jpenilla:squaremap-api:+"
compileOnly "net.kyori:adventure-api:+"
compileOnly "com.test:Dynmap:3.2.1"
}
repositories {
flatDir { dirs "../libs" }
maven { url "https://repo.codemc.org/repository/maven-public" }
maven { url = "https://api.modrinth.com/maven/" }
maven { url = "https://maven4.bai.lol/" }
}
shadowJar {
configurations = [project.configurations.shadowImplementation]
minimize {
exclude(dependency("org.mtr:Shadow-Libraries-net:.*"))
exclude(dependency("org.mtr:Minecraft-Mappings-common:.*"))
exclude(dependency("org.mtr:Minecraft-Mappings-fabric-${minecraftVersion}:.*"))
exclude(dependency("org.mtr:Minecraft-Mappings-forge-${minecraftVersion}:.*"))
}
relocate "com.logisticscraft", "org.mtr.libraries.com.logisticscraft"
relocate "de.javagl", "org.mtr.libraries.de.javagl"
}
tasks.withType(AbstractArchiveTask).configureEach {
preserveFileTimestamps = false
reproducibleFileOrder = true
}
tasks.withType(Javadoc).tap {
configureEach { javadoc.options.addStringOption("Xdoclint:none", "-quiet") }
}
}