-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
57 lines (48 loc) · 1.48 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
plugins {
id 'java'
id "architectury-plugin" version "3.4-SNAPSHOT"
id "dev.architectury.loom" version "1.7-SNAPSHOT" apply false
id 'com.github.johnrengelman.shadow' version '8.1.1' apply false
}
architectury {
minecraft = rootProject.minecraft_version
}
subprojects {
apply plugin: "java"
apply plugin: 'dev.architectury.loom'
apply plugin: 'architectury-plugin'
loom {
silentMojangMappingsLicense()
}
dependencies {
minecraft "net.minecraft:minecraft:$rootProject.minecraft_version"
mappings loom.officialMojangMappings()
}
}
allprojects {
apply plugin: "java"
apply plugin: "architectury-plugin"
apply plugin: "maven-publish"
archivesBaseName = rootProject.archives_base_name
version = rootProject.mod_version
group = rootProject.maven_group
repositories {
maven {
name = 'mohist'
url = 'https://maven.mohistmc.com/'
}
maven { url "https://maven.parchmentmc.org" }
maven { url "https://repo.codemc.io/repository/nms/" }
maven { url "https://hub.spigotmc.org/nexus/content/groups/public/"}
}
dependencies {
implementation "org.yaml:snakeyaml:1.33"
implementation 'org.projectlombok:lombok:1.18.26'
implementation 'com.mohistmc:yaml:0.8'
annotationProcessor 'org.projectlombok:lombok:1.18.26'
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
options.release = 17
}
}