-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.gradle
More file actions
109 lines (95 loc) · 2.87 KB
/
build.gradle
File metadata and controls
109 lines (95 loc) · 2.87 KB
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
import java.text.SimpleDateFormat
buildscript {
repositories {
maven { url = 'https://files.minecraftforge.net/maven' }
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
}
}
plugins {
id 'eclipse'
id 'com.geoffgranum.gradle-conventional-changelog' version '0.3.1'
}
apply plugin: 'net.minecraftforge.gradle'
def previousVersion = '1.4.0'
def baseVersion = '1.4.1'
def minecraftVersion = '1.18.2'
version = "${minecraftVersion}-${baseVersion}" as Object
group = 'io.github.samarium150'
archivesBaseName = 'structures_compass'
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
logger.quiet('Java: {} JVM: {}({}) Arch: {}',
System.getProperty('java.version'),
System.getProperty('java.vm.version'),
System.getProperty('java.vendor'),
System.getProperty('os.arch')
)
sourceSets {
main {
java {
srcDir 'src/main/java'
}
}
}
def mainSourceSet = sourceSets.main
minecraft {
mappings channel: 'official', version: minecraftVersion
// accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
runs {
client {
workingDirectory file('run')
property 'forge.logging.markers', 'REGISTRIES'
property 'forge.logging.console.level', 'debug'
mods {
structures_compass {
source mainSourceSet
}
}
}
server {
workingDirectory file('run')
property 'forge.logging.markers', 'REGISTRIES'
property 'forge.logging.console.level', 'debug'
mods {
structures_compass {
source mainSourceSet
}
}
}
}
}
// Include resources generated by data generators.
// sourceSets.main.resources { srcDir 'src/generated/resources' }
dependencies {
minecraft 'net.minecraftforge:forge:1.18.2-40.0.45'
}
compileJava {
options.encoding("UTF-8")
}
tasks.named("jar").configure {
manifest {
attributes([
"Specification-Title": project.name,
"Specification-Vendor": "Samarium, SnightW",
"Specification-Version": "1",
"Implementation-Title": project.name,
"Implementation-Version": project.version,
"Implementation-Vendor" :"Samarium, SnightW",
"Implementation-Timestamp": new SimpleDateFormat("yyyy-MM-dd").format(new Date())
])
}
}
jar.finalizedBy('reobfJar')
changelog {
appName name
versionNum version as String
from("${minecraftVersion}-${previousVersion}")
repoUrl "https://github.com/Samarium150/StructuresCompass"
trackerUrl "https://github.com/Samarium150/StructuresCompass"
}
javadoc {
options.locale = "en_US"
options.encoding = "UTF-8"
}