-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
68 lines (59 loc) · 2.2 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
buildscript {
repositories {
maven { url = 'https://files.minecraftforge.net/maven' }
maven { url = 'https://maven.parchmentmc.org' }
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
classpath 'org.parchmentmc:librarian:1.+'
}
}
//Plugins
apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'org.parchmentmc.librarian.forgegradle'
apply plugin: 'eclipse'
//Set source level
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'))
archivesBaseName=project.properties['file_name']
group='com.builtbroken.aiimprovements'
//Minecraft build settings
minecraft {
mappings channel: project.properties['mappings_channel'], version: project.properties['mappings']
accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
runs {
client {
workingDirectory project.file('run/client')
properties 'forge.logging.console.level': 'debug'
mods {
aiimprovements {
source sourceSets.main
}
}
}
server {
workingDirectory project.file('run/server')
properties 'forge.logging.console.level': 'debug'
mods {
aiimprovements {
source sourceSets.main
}
}
}
}
}
dependencies {
minecraft project.properties['forge_version']
}
jar {
manifest {
attributes(["Specification-Title": "AI-Improvements",
"Specification-Vendor": "Built Broken Modding",
"Specification-Version": project.properties['version'],
"Implementation-Title": "AI-Improvements",
"Implementation-Version": project.properties['version'],
"Implementation-Vendor" :"Built Broken Modding",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")])
}
}