-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
build.gradle
90 lines (73 loc) · 1.9 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 'fabric-loom' version '1.8-SNAPSHOT'
id 'maven-publish'
}
base {
archivesName = project.archives_base_name
version = project.mod_version
group = project.maven_group
}
loom {
accessWidenerPath = file('src/main/resources/seedmapper.aw')
}
repositories {
mavenCentral()
maven {
name = 'xpple'
url = 'https://maven.xpple.dev/maven2'
}
maven {
name = 'ParchmentMC'
url = 'https://maven.parchmentmc.org'
}
}
dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings loom.layered {
officialMojangMappings {
nameSyntheticMembers = true
}
parchment "org.parchmentmc.data:${project.parchment_mappings}"
}
modImplementation "net.fabricmc:fabric-loader:${project.fabric_loader_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_api_version}"
include modImplementation("dev.xpple:clientarguments:${project.clientarguments_version}")
include modImplementation("dev.xpple:betterconfig-fabric:${project.betterconfig_version}")
testImplementation platform("org.junit:junit-bom:${project.junit_version}")
testImplementation 'org.junit.jupiter:junit-jupiter'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
processResources {
def props = [version: project.mod_version, loader_version: project.fabric_loader_version]
inputs.properties props
filteringCharset "UTF-8"
filesMatching("fabric.mod.json") {
expand props
}
from("LICENSE") {
rename {"${it}_${project.base.archivesName.get()}"}
}
from("src/main/c/LICENSE") {
rename {"${it}_cubiomes"}
}
}
tasks.withType(JavaCompile).configureEach {
it.options.release = 23
}
java {
sourceCompatibility = JavaVersion.VERSION_23
targetCompatibility = JavaVersion.VERSION_23
}
test {
useJUnitPlatform()
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = project.base.archivesName.get()
from components.java
}
}
repositories {
}
}