-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.gradle
114 lines (97 loc) · 2.97 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
buildscript {
repositories {
maven { url = 'https://repo.spongepowered.org/maven/' }
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1+', changing: true
classpath group: 'org.spongepowered', name: 'mixingradle', version: '0.7-SNAPSHOT'
}
}
apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'maven-publish'
apply plugin: 'org.spongepowered.mixin'
version = '1.6'
group = 'net.lyof.sortilege'
archivesBaseName = 'Sortilege-1.19.2'
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
minecraft {
//mappings channel: 'parchment', version: '2022.12.18-1.19.3'
mappings channel: 'official', version: '1.19.2'
runs {
client {
workingDirectory project.file('run')
arg '-mixin.config=sortilege.mixins.json'
property 'forge.logging.markers', 'SCAN,REGISTRIES'
property 'forge.logging.console.level', 'debug'
mods {
sortilege {
source sourceSets.main
}
}
}
server {
workingDirectory project.file('run')
arg '-mixin.config=sortilege.mixins.json'
property 'forge.logging.markers', 'SCAN,REGISTRIES'
property 'forge.logging.console.level', 'debug'
mods {
sortilege {
source sourceSets.main
}
}
}
data {
workingDirectory project.file('run')
property 'forge.logging.markers', 'SCAN,REGISTRIES'
property 'forge.logging.console.level', 'debug'
args '--mod', 'sortilege', '--all', '--output', file('src/generated/resources/')
mods {
sortilege {
source sourceSets.main
}
}
}
}
}
mixin {
//add sourceSets.main, "sortilege.refmap.json"
config "sortilege.mixins.json"
debug.verbose = true
debug.export = true
dumpTargetOnFailure = true
}
repositories {
maven { url = 'https://repo.spongepowered.org/maven/' }
mavenCentral()
}
dependencies {
minecraft 'net.minecraftforge:forge:1.19.2-43.2.13'
annotationProcessor 'org.spongepowered:mixin:0.8.5:processor'
}
jar {
manifest {
attributes([
'Specification-Title' : "Sortilege",
'Specification-Vendor' : "Lyof",
'Specification-Version' : '1',
'Implementation-Title' : "Sortilege",
'Implementation-Version': "1.0",
'Implementation-Vendor' : "Lyof",
'MixinConfigs' : 'sortilege.mixins.json',
])
}
}
jar.finalizedBy('reobfJar')
task sourcesJar(type: Jar) {
archiveClassifier.set('sources')
from sourceSets.main.allJava
}
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}