-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
62 lines (52 loc) · 1.7 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
import java.time.Instant
buildscript {
repositories {
maven { url = 'https://files.minecraftforge.net/maven' }
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
}
}
apply plugin: 'net.minecraftforge.gradle'
apply from: 'https://raw.githubusercontent.com/SizableShrimp/Forge-Class-Remapper/main/classremapper.gradle'
version = modVersion
group = 'xbony2.huesodewiki'
archivesBaseName = 'huesodewiki'
java.toolchain.languageVersion = JavaLanguageVersion.of(javaVersion)
minecraft {
mappings channel: 'official', version: mcVersion
runs {
client {
workingDirectory = project.file 'run'
properties['forge.logging.markers'] = 'SCAN,REGISTRIES,REGISTRYDUMP'
properties['forge.logging.console.level'] = 'debug'
source sourceSets.main
}
server {
workingDirectory = project.file 'run'
properties['forge.logging.markers'] = 'SCAN,REGISTRIES,REGISTRYDUMP'
properties['forge.logging.console.level'] = 'debug'
source sourceSets.main
}
data {
workingDirectory = project.file 'run'
properties['forge.logging.markers'] = 'SCAN,REGISTRIES,REGISTRYDUMP'
properties['forge.logging.console.level'] = 'debug'
args '--mod', 'huesodewiki', '--all', '--output', file('src/generated/resources/')
source sourceSets.main
}
}
}
dependencies {
minecraft "net.minecraftforge:forge:$forgeVersion"
}
jar.manifest.attributes([
'Specification-Title': rootProject.name,
'Specification-Vendor': project.group,
'Specification-Version': '1',
'Implementation-Title': rootProject.name,
'Implementation-Version': project.version,
'Implementation-Vendor': project.group,
'Implementation-Timestamp': Instant.now()
])