-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
102 lines (88 loc) · 3.37 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
buildscript {
repositories {
maven { url = 'https://maven.minecraftforge.net' }
maven { url = 'https://repo.spongepowered.org/maven' }
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
classpath 'org.spongepowered:mixingradle:0.7-SNAPSHOT'
}
}
apply plugin: 'net.minecraftforge.gradle'
// Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
apply plugin: 'eclipse'
apply plugin: 'org.spongepowered.mixin'
project.ext.modId = "${mod_id}"
project.ext.modName = "${mod_name}"
project.ext.modVersion= "${mod_version}"
group = "${group}"
archivesBaseName = "${project.modId}"
apply from: 'gradle/version.gradle'
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
println('Java: ' + System.getProperty('java.version') + ' JVM: ' + System.getProperty('java.vm.version') + '(' + System.getProperty('java.vendor') + ') Arch: ' + System.getProperty('os.arch'))
minecraft {
mappings channel: "${mappings_channel}", version: "${mappings_version}"
runs {
client {
workingDirectory project.file('run').canonicalPath
property 'file.encoding', 'UTF-8'
property 'user.language', 'en'
property 'log4j.configurationFile', 'log4j2.xml'
property 'mixin.debug', 'true'
arg "-mixin.config=${project.modId}.mixin.json"
mods {
hstweaker {
source sourceSets.main
}
}
}
server {
workingDirectory project.file('run').canonicalPath
property 'file.encoding', 'UTF-8'
property 'user.language', 'en'
property 'log4j.configurationFile', 'log4j2.xml'
property 'mixin.debug', 'true'
arg "-mixin.config=${project.modId}.mixin.json"
mods {
hstweaker {
source sourceSets.main
}
}
}
}
}
repositories {
maven { url "https://dvs1.progwml6.com/files/maven/" }
maven {
url "https://www.cursemaven.com"
content {
includeGroup "curse.maven"
}
}
maven {
url "https://maven.pkg.github.com/auioc/arnicalib-mcmod"
credentials {
username = System.getenv("GITHUB_ACTOR") ? System.getenv("GITHUB_ACTOR") : System.getenv("GITHUB_USERNAME")
password = System.getenv("GITHUB_TOKEN")
}
}
}
dependencies {
minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
annotationProcessor "org.spongepowered:mixin:${mixin_version}:processor"
testAnnotationProcessor "org.spongepowered:mixin:${mixin_version}:processor"
// implementation fileTree(dir: 'libs', include: ['*/*-forgelib.jar', '*/*-api.jar'])
implementation "org.auioc.mcmod:arnicalib:${minecraft_version}-${arnicalib_version}:forgelib"
if (System.getenv('CI') == null) {
runtimeOnly fg.deobf("mezz.jei:jei-${minecraft_version}:${jei_version}")
runtimeOnly fg.deobf("curse.maven:jade-324717:${jade_version}")
}
}
mixin {
add sourceSets.main, "${project.modId}.mixin-refmap.json"
}
apply from: 'gradle/tasks.gradle'
apply from: 'gradle/artifacts.gradle'
// apply from: 'gradle/publishing.gradle'
// apply from: 'gradle/signing.gradle'