-
Notifications
You must be signed in to change notification settings - Fork 16
/
build.gradle
132 lines (111 loc) · 3.12 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
plugins {
id 'base'
id 'java'
id 'maven-publish'
id 'net.neoforged.moddev' version "2.0.10-beta"
}
version = "${mod_version}"
group = project.maven_group
neoForge {
version = project.neoforge_version
accessTransformers {
publish(project.file("src/main/resources/META-INF/accesstransformer.cfg"))
}
interfaceInjectionData {
from(file("interfaces.json"))
}
mods {
probejs {
sourceSet sourceSets.main
}
}
parchment {
minecraftVersion = parchment_mc_version
mappingsVersion = parchment_version
}
}
repositories {
mavenCentral()
mavenLocal()
maven {
url "https://maven.neoforged.net/releases"
}
maven {
url "https://maven.architectury.dev/"
}
maven {
url "https://maven.latvian.dev/releases"
content {
includeGroup "dev.latvian.mods"
includeGroup "dev.latvian.apps"
}
}
maven {
url "https://maven.blamejared.com"
content {
includeGroup "mezz.jei"
includeGroup "net.darkhax.bookshelf"
includeGroup "net.darkhax.gamestages"
}
}
maven {
name = 'ParchmentMC'
url = 'https://maven.parchmentmc.org'
}
maven {
name = "TerraformersMC"
url = "https://maven.terraformersmc.com/"
content {
includeGroup "dev.emi"
}
}
maven {
url 'https://jitpack.io'
content {
includeGroup "com.github.rtyley"
}
}
}
dependencies {
api("dev.latvian.mods:rhino:$rhino_version") { transitive(false) }
api("dev.latvian.mods:kubejs-neoforge:$kubejs_version")
implementation("dev.latvian.apps:tiny-java-server:$tiny_server_version")
compileOnly("dev.architectury:architectury-neoforge:$architectury_version")
jarJar implementation('com.github.javaparser:javaparser-symbol-solver-core:3.24.8')
jarJar implementation('com.github.javaparser:javaparser-core:3.24.8')
jarJar implementation("org.vineflower:vineflower:1.10.1")
}
compileJava {
options.encoding = "UTF-8"
options.release.set(21)
options.compilerArgs << '-parameters'
}
java {
sourceCompatibility = targetCompatibility = '21'
withSourcesJar()
}
processResources {
def toReplace = [
"version" : project.version,
"neoforge_version": neoforge_version,
"kubejs_version" : kubejs_version,
]
println("[Process Resources] Replacing properties in resources: " + toReplace)
inputs.properties toReplace
filesMatching("META-INF/neoforge.mods.toml") {
expand toReplace
}
}
jar {
manifest {
attributes([
"Specification-Title" : mod_id,
"Specification-Vendor" : mod_author,
"Specification-Version" : "1",
"Implementation-Title" : project.name,
"Implementation-Version" : version,
"Implementation-Vendor" : mod_author,
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
}