-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
90 lines (78 loc) · 2.19 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
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
plugins {
id 'java'
}
group = 'com.hexagram2021.cme_suck_my_duck'
version = '1.0.4'
compileJava {
sourceCompatibility = 8
targetCompatibility = 8
}
java.disableAutoTargetJvm()
repositories {
mavenCentral()
maven {
name = 'minecraft'
url = 'https://libraries.minecraft.net/'
group = 'com.mojang'
}
maven {
name = 'Fabric'
url = 'https://maven.fabricmc.net/'
group = 'net.fabricmc'
}
maven {
name = 'Forge'
url = 'https://maven.minecraftforge.net'
group = 'net.minecraftforge'
}
maven {
name = 'NeoForge'
url = 'https://maven.neoforged.net/releases'
group = 'net.neoforged.fancymodloader'
}
flatDir {
dirs 'libs'
}
}
dependencies {
implementation 'com.google.code.findbugs:jsr305:3.0.2'
implementation 'com.google.code.gson:gson:2.11.0'
implementation 'org.ow2.asm:asm:9.6'
compileOnly 'net.fabricmc:fabric-loader:0.15.11'
//compileOnly 'net.minecraftforge:javafmllanguage:1.12.2-14.23.5.2859'
compileOnly 'net.neoforged.fancymodloader:loader:2.0.20'
testImplementation platform('org.junit:junit-bom:5.10.0')
testImplementation 'org.junit.jupiter:junit-jupiter'
}
sourceSets.main.resources { srcDir 'src/main/resources' }
jar {
manifest {
attributes([
"Specification-Title" : "CME Suck My Duck",
"Specification-Vendor" : "Hexagram",
"Premain-Class" : "com.hexagram2021.cme_suck_my_duck.CMESuckMyDuck",
"Main-Class" : "com.hexagram2021.cme_suck_my_duck.CMESuckMyDuck",
"Can-Redefine-Classes" : "true",
"Can-Retransform-Classes" : "true"
])
}
from "LICENSE"
exclude 'net/**'
}
test {
useJUnitPlatform()
}
tasks.processResources {
filesMatching("*.json") {
expand (["version": project.version])
}
filesMatching("mcmod.info") {
expand (["version": project.version])
}
filesMatching("META-INF/*.toml") {
expand (["version": project.version])
}
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}