-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
82 lines (68 loc) · 2.16 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
78
79
80
81
82
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.9.22'
id 'fabric-loom' version '1.5.7'
}
group = project.mod_group
archivesBaseName = project.mod_name
ext.versionModified = 'git diff-index --quiet HEAD'.execute().waitFor() != 0
ext.versionRevision = 'git rev-list --count HEAD'.execute().text.trim()
ext.versionHash = 'git rev-parse --short HEAD'.execute().text.trim()
version = "0.0.${ext.versionRevision}-${ext.versionHash}${ext.versionModified ? '-MODIFIED' : ''}"
loom {
accessWidenerPath = file 'src/main/resources/mineseekdestroy.accesswidener'
}
repositories {
mavenCentral()
maven {
name = 'ViaVersion'
url = uri 'https://repo.viaversion.com/'
}
maven {
name = 'EngineHub'
url = uri 'https://maven.enginehub.org/repo/'
}
}
configurations {
includeImplementation
implementation {
extendsFrom includeImplementation
}
include {
extendsFrom includeImplementation
}
}
dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_version}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
includeImplementation "org.jetbrains.kotlin:kotlin-stdlib:${project.kotlin_version}"
includeImplementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${project.kotlin_version}"
includeImplementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${project.kotlin_version}"
modImplementation "com.sk89q.worldedit:worldedit-fabric-mc1.20.4:7.3.0-SNAPSHOT"
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
compileJava {
options.release = 17
options.encoding = 'UTF-8'
}
compileKotlin {
kotlinOptions {
jvmTarget = '17'
apiVersion = '1.9'
languageVersion = '1.9'
freeCompilerArgs += [
'-Xno-call-assertions',
'-Xno-receiver-assertions',
'-Xno-param-assertions',
]
}
}
processResources {
filesMatching('fabric.mod.json') {
expand 'version': version
}
}