-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathbuild.gradle
More file actions
162 lines (138 loc) · 4.92 KB
/
Copy pathbuild.gradle
File metadata and controls
162 lines (138 loc) · 4.92 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
plugins {
id 'fabric-loom' version '1.1-SNAPSHOT'
id 'maven-publish'
}
version = ci_version()
group = project.maven_group
repositories {
maven {
name = 'spigot'
url = 'https://hub.spigotmc.org/nexus/content/groups/public/'
}
maven {
name = 'mohist'
url = 'https://maven.mohistmc.com/'
}
maven {
name = 'izzel'
url = 'https://maven.izzel.io/releases'
}
maven {
name = 'ParchmentMC'
url = 'https://maven.parchmentmc.org'
}
maven {
name = 'JirPack'
url = 'https://jitpack.io'
}
}
dependencies {
implementation 'org.projectlombok:lombok:1.18.26'
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings loom.layered() {
officialMojangMappings()
parchment("org.parchmentmc.data:parchment-1.19.3:2023.03.12@zip")
}
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
// bukkit
modImplementation "org.yaml:snakeyaml:1.33"
modImplementation "org.apache.maven:maven-resolver-provider:3.8.5"
modImplementation "org.apache.maven.resolver:maven-resolver-connector-basic:1.7.3"
modImplementation "org.apache.maven.resolver:maven-resolver-transport-http:1.7.3"
compileOnly "org.jetbrains:annotations:21.0.1"
modImplementation "com.mohistmc:i18n:0.2"
// craftbukkit
modImplementation "org.fusesource.jansi:jansi:1.18"
modImplementation "jline:jline:2.14.6"
modImplementation "com.googlecode.json-simple:json-simple:1.1.1"
modImplementation "org.xerial:sqlite-jdbc:3.41.0.0"
modImplementation "com.mysql:mysql-connector-j:8.0.32"
modImplementation "net.md-5:SpecialSource:1.11.0"
// spigot
modImplementation "net.md-5:bungeecord-chat:1.16-R0.4"
modImplementation "io.izzel:tools:1.3.0"
modImplementation "com.mohistmc:dynamicenum:0.1"
modImplementation "com.google.guava:failureaccess:1.0.1"
modImplementation "com.google.guava:guava:31.0.1-jre"
modImplementation "com.google.code.gson:gson:2.10"
modImplementation "com.mojang:authlib:3.17.30"
modImplementation "com.mojang:logging:1.1.1"
compileOnly "commons-lang:commons-lang:2.6"
modImplementation "org.slf4j:slf4j-api:2.0.6"
modImplementation "org.apache.logging.log4j:log4j-core:2.20.0"
modImplementation "org.apache.logging.log4j:log4j-iostreams:2.20.0"
modImplementation "org.apache.logging.log4j:log4j-api:2.20.0"
modImplementation "org.apache.logging.log4j:log4j-slf4j2-impl:2.20.0"
modImplementation "org.apache.commons:commons-lang3:3.12.0"
modImplementation "net.sf.jopt-simple:jopt-simple:5.0.4"
modImplementation "net.java.dev.jna:jna-platform:5.13.0"
modImplementation "net.java.dev.jna:jna:5.13.0"
modImplementation "it.unimi.dsi:fastutil:8.5.12"
modImplementation "commons-io:commons-io:2.11.0"
modImplementation "com.mojang:javabridge:2.0.25"
modImplementation "com.mojang:datafixerupper:6.0.6"
modImplementation "com.mojang:brigadier:1.0.18"
modImplementation "com.github.oshi:oshi-core:6.4.0"
modImplementation "io.netty:netty-buffer:4.1.82.Final"
modImplementation "io.netty:netty-codec:4.1.82.Final"
modImplementation "io.netty:netty-common:4.1.82.Final"
modImplementation "io.netty:netty-handler:4.1.82.Final"
modImplementation "io.netty:netty-resolver:4.1.82.Final"
modImplementation "io.netty:netty-transport:4.1.82.Final"
modImplementation "io.netty:netty-transport-classes-epoll:4.1.82.Final"
modImplementation "io.netty:netty-transport-native-unix-common:4.1.82.Final"
//class modify
modImplementation "com.github.LlamaLad7:MixinExtras:0.1.1"
annotationProcessor "com.github.LlamaLad7:MixinExtras:0.1.1"
modImplementation "com.github.Chocohead:Fabric-ASM:v2.1"
include "com.github.Chocohead:Fabric-ASM:v2.1"
include "com.github.LlamaLad7:MixinExtras:0.1.1"
}
base {
archivesName = project.archives_base_name
}
loom {
accessWidenerPath = file("src/main/resources/banner.accesswidener")
}
processResources {
inputs.property "version", project.version
filesMatching("fabric.mod.json") {
expand "version": project.version
}
}
tasks.withType(JavaCompile).configureEach {
it.options.release = 17
options.compilerArgs << '-Xlint:-dep-ann' << '-Xlint:-removal'
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
jar {
from("LICENSE")
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
repositories {
}
}
import groovy.json.JsonSlurper
static String ci_version() {
try {
def conn = new URL("https://ci.codemc.io/job/MohistMC/job/Banner/api/json").openConnection()
conn.setRequestProperty("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36")
conn.connect()
def root = conn.content.text
def jsonSluper = new JsonSlurper()
String data = jsonSluper.parseText(root)
def number = data.substring(data.indexOf("number")).split(",")
return Integer.valueOf(number[0].replace("number=", "")).intValue()
} catch (Exception ignored) {
return '1.19.4'
}
}