-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.gradle
More file actions
103 lines (83 loc) · 2.72 KB
/
build.gradle
File metadata and controls
103 lines (83 loc) · 2.72 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
buildscript {
ext.kotlin_version = "1.9.21"
repositories {
mavenCentral()
gradlePluginPortal()
maven { url = "https://jitpack.io" }
maven { url = "https://maven.minecraftforge.net/" }
maven { url = "https://repo.spongepowered.org/maven" }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.github.debuggingss:ForgeGradle:FG_2.1-SNAPSHOT"
classpath "com.github.jengelman.gradle.plugins:shadow:6.1.0"
}
}
apply plugin: "java"
apply plugin: "kotlin"
apply plugin: "net.minecraftforge.gradle.forge"
apply plugin: "com.github.johnrengelman.shadow"
group = "dev.desco"
archivesBaseName = "WaterSolver"
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
compileJava.options.encoding = "UTF-8"
sourceSets {
main {
output.resourcesDir = java.outputDir
}
}
minecraft {
version = "1.8.9-11.15.1.2318-1.8.9"
runDir = "run"
mappings = "stable_22"
makeObfSourceJar = false
clientJvmArgs += "-Delementa.dev=true"
clientRunArgs += "--tweakClass dev.desco.watersolver.core.WaterTweaker"
}
configurations {
embed
implementation.extendsFrom(embed)
}
repositories {
mavenCentral()
maven { url = "https://repo.sk1er.club/repository/maven-public/" }
maven { url = "https://repo.spongepowered.org/repository/maven-public/" }
maven { url = "https://jitpack.io/" }
maven { url = "https://repo.hypixel.net/repository/Hypixel/" }
}
dependencies {
embed "gg.essential:loader-launchwrapper:1.1.3"
compileOnly "gg.essential:essential-1.8.9-forge:1759"
implementation("net.hypixel:mod-api-forge:1.0.1.1")
embed("net.hypixel:mod-api-forge-tweaker:1.0.1.1")
annotationProcessor "com.google.code.gson:gson:2.2.4"
annotationProcessor "com.google.guava:guava:21.0"
annotationProcessor "org.ow2.asm:asm-tree:6.2"
annotationProcessor "org.ow2.asm:asm-util:6.2"
annotationProcessor "org.apache.logging.log4j:log4j-core:2.0-beta9"
}
shadowJar {
archiveName = tasks.jar.archiveName
classifier = ""
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
relocate("net.hypixel.modapi.tweaker", "dev.desco.mod-api")
manifest.attributes(
"ForceLoadAsMod": true,
"ModSide": "CLIENT",
"TweakClass": "dev.desco.watersolver.core.WaterTweaker"
)
exclude("dummyThing")
exclude("META-INF/maven/")
exclude("META-INF/nar/")
exclude("module-info.class")
exclude("META-INF/versions/")
exclude("LICENSE.txt")
configurations = [project.configurations.embed]
}
reobfJar.dependsOn tasks.shadowJar
reobf {
shadowJar {
mappingType = "SEARGE"
}
}