-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
112 lines (94 loc) · 2.59 KB
/
Copy pathbuild.gradle
File metadata and controls
112 lines (94 loc) · 2.59 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
104
105
106
107
108
109
110
111
112
plugins {
id "net.fabricmc.fabric-loom" version "${loom_version}"
id "maven-publish"
}
version = mod_version
group = maven_group
base {
archivesName = "1MB-WaterSource-v${mod_version}-${build_number}"
}
repositories {
exclusiveContent {
forRepository {
maven {
name = "Fabric"
url = uri("https://maven.fabricmc.net/")
}
}
filter {
includeGroup("net.fabricmc")
includeGroupByRegex('net\\.fabricmc\\..*')
}
}
exclusiveContent {
forRepository {
maven {
name = "TerraformersMC"
url = uri("https://maven.terraformersmc.com/releases/")
}
}
filter {
includeGroup("com.terraformersmc")
}
}
mavenCentral()
}
dependencyLocking {
lockAllConfigurations()
}
loom {
splitEnvironmentSourceSets()
mods {
"watersourcemod" {
sourceSet sourceSets.main
sourceSet sourceSets.client
}
}
}
dependencies {
minecraft "com.mojang:minecraft:${minecraft_version}"
implementation "net.fabricmc:fabric-loader:${loader_version}"
implementation "net.fabricmc.fabric-api:fabric-api:${fabric_api_version}"
// Mod Menu is an optional runtime integration, so the core mod does not require it.
clientCompileOnly "com.terraformersmc:modmenu:${modmenu_version}"
clientRuntimeOnly "com.terraformersmc:modmenu:${modmenu_version}"
testImplementation platform("org.junit:junit-bom:5.13.4")
testImplementation "org.junit.jupiter:junit-jupiter"
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
}
def resourceVersion = project.version
def resourceBuildNumber = build_number
processResources {
inputs.property "version", resourceVersion
inputs.property "build_number", resourceBuildNumber
filesMatching("fabric.mod.json") {
expand "version": resourceVersion, "build_number": resourceBuildNumber
}
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(25)
}
sourceCompatibility = JavaVersion.VERSION_25
targetCompatibility = JavaVersion.VERSION_25
withSourcesJar()
}
tasks.withType(JavaCompile).configureEach {
options.release = 25
options.encoding = "UTF-8"
}
tasks.withType(Test).configureEach {
useJUnitPlatform()
}
tasks.named("jar") {
archiveVersion = ""
archiveClassifier = ""
}
publishing {
publications {
create("mavenJava", MavenPublication) {
from components.java
artifactId = "watersourcemod"
}
}
}