-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
56 lines (46 loc) · 1.11 KB
/
build.gradle.kts
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
val divineInterventionVersion: String by properties
val javaVersion: String by properties
val fabricLoaderVersion: String by properties
val mixinVersion: String by properties
plugins {
`java-library`
`maven-publish`
}
group = "net.immortaldevs"
version = divineInterventionVersion
repositories {
maven {
name = "Fabric"
url = uri("https://maven.fabricmc.net/")
}
mavenCentral()
}
dependencies {
implementation(
group = "net.fabricmc",
name = "fabric-loader",
version = fabricLoaderVersion)
api(
group = "net.fabricmc",
name = "sponge-mixin",
version = mixinVersion)
}
tasks {
processResources {
inputs.property("version", divineInterventionVersion)
filesMatching("fabric.mod.json") {
expand("version" to divineInterventionVersion)
}
}
}
java {
sourceCompatibility = JavaVersion.toVersion(javaVersion)
withSourcesJar()
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
}
}
}