-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
77 lines (66 loc) · 2.12 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
buildscript {
repositories {
maven { url = 'https://maven.minecraftforge.net' }
maven { url = 'https://maven.parchmentmc.org' }
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '[6.0,6.2)', changing: true
classpath 'org.parchmentmc:librarian:1.+'
}
}
apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
apply plugin: 'org.parchmentmc.librarian.forgegradle'
version = '1.2.1'
group = 'woodenshears'
base {
archivesName = 'SBM-WoodenShears-1.20.1'
}
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
minecraft {
mappings channel: 'parchment', version: '1.19.3-2023.03.12-1.20'
copyIdeResources = true
runs {
client {
properties 'forge.logging.console.level': 'debug'
workingDirectory project.file('run')
source sourceSets.main
}
server {
properties 'forge.logging.console.level': 'debug'
workingDirectory project.file('run')
source sourceSets.main
}
data {
workingDirectory project.file('run')
property 'forge.logging.console.level', 'debug'
args '--mod', 'woodenshears', '--all', '--output', file('src/generated/resources/')
mods {
securitycraft {
source sourceSets.main
}
}
}
}
}
dependencies {
minecraft 'net.minecraftforge:forge:1.20.1-47.2.0'
}
sourceSets.main.resources {
srcDir 'src/generated/resources' //include generated files
}
tasks.named('jar', Jar).configure {
manifest {
attributes(["Specification-Title": "SBM-WoodenShears",
"Specification-Vendor": "Built Broken Modding",
"Specification-Version": "1",
"Implementation-Title": "SBM-WoodenShears",
"Implementation-Version": "${version}",
"Implementation-Vendor": "Built Broken Modding"],)
}
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}