forked from MohistMC-Archives/MohistRemap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
67 lines (54 loc) · 1.66 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
plugins {
id 'java'
id 'maven-publish'
}
group 'com.mohistmc.remapper'
version '0.3'
repositories {
mavenCentral()
maven { url 'https://maven.mohistmc.com/' }
maven { url 'https://maven.izzel.io/releases' }
maven { url 'https://hub.spigotmc.org/nexus/content/groups/public/' }
maven { url 'https://maven.minecraftforge.net/' }
}
// java.toolchain.languageVersion = JavaLanguageVersion.of(17)
configure([tasks.compileJava]) {
sourceCompatibility = 16 // for the IDE support
options.release = 16
javaCompiler = javaToolchains.compilerFor {
languageVersion = JavaLanguageVersion.of(17)
}
}
dependencies {
implementation 'org.ow2.asm:asm:9.4'
implementation 'org.ow2.asm:asm-commons:9.4'
implementation 'org.ow2.asm:asm-tree:9.4'
implementation 'org.ow2.asm:asm-util:9.4'
implementation 'org.ow2.asm:asm-analysis:9.4'
implementation 'net.md-5:SpecialSource:1.11.0'
implementation 'org.apache.logging.log4j:log4j-api:2.19.0'
implementation 'org.apache.logging.log4j:log4j-core:2.19.0'
implementation 'io.izzel:tools:1.3.0'
implementation 'org.spongepowered:mixin:0.8.5'
compileOnly("org.spigotmc:spigot-api:1.19.3-R0.1-SNAPSHOT")
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
// options.compilerArgs << '-Xlint:-removal'
}
publishing {
publications {
maven(MavenPublication) {
groupId project.group
artifactId project.name.toLowerCase()
version project.version
from components.java
}
}
repositories {
mavenLocal()
maven {
setUrl("file:/maven/")
}
}
}