Repository navigation
Expand file tree
/
Copy pathbuild.gradle
More file actions
127 lines (111 loc) · 3.46 KB
/
Copy pathbuild.gradle
File metadata and controls
127 lines (111 loc) · 3.46 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
plugins {
id 'net.neoforged.moddev' version '0.1.120'
id 'java-library'
id 'eclipse'
id 'idea'
id 'maven-publish'
}
group = 'com.buuz135'
version = '1.21.1-1.2.1'
java {
archivesBaseName = 'Replication'
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', 'replication', '--all', '--output', file('src/generated/resources/').getAbsolutePath(), '--existing', file('src/main/resources/').getAbsolutePath()
}
}
mods {
titanium {
sourceSet sourceSets.main
}
}
}
// Include resources generated by data generators.
sourceSets.main.resources { srcDir 'src/generated/resources' }
repositories {
maven {
name 'jared maven'
url "https://maven.blamejared.com/"
}
maven { url = 'https://ldtteam.jfrog.io/ldtteam/modding' }
maven {
url = "https://www.cursemaven.com"
}
maven {
name "Modmaven"
url "https://modmaven.dev/"
// For Gradle 5.1 and above, limit it to just AE2
content {
includeGroup 'appeng'
}
}
}
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.32')
implementation "curse.maven:jade-324717:5444008"
compileOnly "curse.maven:the-one-probe-245211:5475189"
runtimeOnly "curse.maven:industrial-foregoing-266515:6030556"
runtimeOnly "curse.maven:dark-mode-everywhere-574123:5922655"
implementation "curse.maven:guideme-1173950:6165912"
//runtimeOnly "curse.maven:applied-energistics-2-223794:6087880"
//implementation "appeng:appliedenergistics2:19.0.27"
//runtimeOnly "curse.maven:allthecompressed-514045:6121584"
runtimeOnly "curse.maven:cucumber-272335:6228644"
runtimeOnly "curse.maven:mystical-agriculture-246640:6228700"
}
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' << '2000'
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
repositories {
maven {
name 'repo'
url(file('repo'))
}
}
}
// IDEA no longer automatically downloads sources/javadoc jars for dependencies, so we need to explicitly enable the behavior.
idea {
module {
downloadSources = true
downloadJavadoc = true
}
}