-
-
Notifications
You must be signed in to change notification settings - Fork 33
/
build.gradle
111 lines (97 loc) · 2.69 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
plugins {
id 'net.neoforged.moddev' version '0.1.120'
id 'maven-publish'
}
final mcVersion = project.neo_version.split('\\.', 3).with {
'1.' + it[0] + '.' + it[1]
}
version = mcVersion + "-" + mod_version
group = modGroup
sourceSets {
main {
resources.srcDir('src/generated/resources')
}
}
repositories {
maven {
name = "BlameJared maven"
url = "https://maven.blamejared.com/"
}
maven {
url "https://www.cursemaven.com"
content {
includeGroup "curse.maven"
}
}
}
base {
archivesName = modBaseName
}
java.toolchain.languageVersion = JavaLanguageVersion.of(21)
neoForge {
version = "${neo_version}"
parchment {
minecraftVersion = '1.21'
mappingsVersion = '2024.06.23'
}
validateAccessTransformers = true
runs {
client {
client()
}
server {
server()
}
data {
data()
programArguments.addAll '--mod', 'functionalstorage', '--all', '--output', file('src/generated/resources/').getAbsolutePath(), '--existing', file('src/main/resources/').getAbsolutePath()
}
}
mods {
functionalstorage {
sourceSet sourceSets.main
}
titanium {
sourceSet sourceSets.main
}
}
}
dependencies {
compileOnly "mezz.jei:jei-1.21.1-common-api:$jei_version"
compileOnly "mezz.jei:jei-1.21.1-neoforge-api:$jei_version"
runtimeOnly "mezz.jei:jei-1.21.1-neoforge:$jei_version"
implementation project.dependencies.create('com.hrznstudio:titanium:1.21-4.0.12')
implementation "curse.maven:jade-324717:5444008"
compileOnly "curse.maven:the-one-probe-245211:5475189"
runtimeOnly "curse.maven:applied-energistics-2-223794:5729094"
}
jar {
manifest {
attributes(["Specification-Title" : project.name,
"Specification-Vendor" : "Buuz135, Rid",
"Specification-Version" : "1.0",
"Implementation-Title" : project.name,
"Implementation-Version" : "${project.version}",
"Implementation-Vendor" : "Buuz135, Rid",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ"),
"ModSide" : "BOTH"
])
}
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation
options.compilerArgs << '-Xmaxerrs' << '500'
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
repositories {
maven {
name 'repo'
url(file('repo'))
}
}
}