This repository was archived by the owner on Apr 8, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
113 lines (98 loc) · 2.82 KB
/
build.gradle
File metadata and controls
113 lines (98 loc) · 2.82 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
plugins {
id 'fabric-loom' version '1.9.2'
id 'maven-publish'
id("org.jetbrains.kotlin.jvm") version "2.1.20"
}
version = project.mod_version
group = project.maven_group
base {
archivesName = project.archives_base_name
}
repositories {
maven {
name = "meteor-maven-snapshots"
url = "https://maven.meteordev.org/snapshots"
}
maven {
url = "https://repo.opencollab.dev/maven-releases"
}
maven {
url = "https://maven.neoforged.net/releases"
}
mavenCentral()
}
loom {
accessWidenerPath = file("src/main/resources/accesswidener")
mixin {
defaultRefmapName = "Aegis-refmap.json"
useLegacyMixinAp = true
}
}
tasks.withType(net.fabricmc.loom.task.RemapJarTask).configureEach {
}
configurations {
libImpl
modImpl
}
dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
include(modImplementation('io.netty:netty-handler-proxy:4.1.82.Final'))
include(modImplementation('io.netty:netty-codec-socks:4.1.82.Final'))
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
implementation group: 'com.github.ben-manes.caffeine', name: 'caffeine', version: '3.1.8'
compileOnly 'org.projectlombok:lombok:1.18.30'
annotationProcessor 'org.projectlombok:lombok:1.18.30'
libImpl fileTree(dir: 'libs', include: ['*.jar'])
libImpl("org.jetbrains.kotlin:kotlin-stdlib:2.0.0")
implementation 'com.google.code.gson:gson:2.10.1'
modImplementation 'org.java-websocket:Java-WebSocket:1.5.6'
configurations.libImpl.dependencies.each { implementation(it) }
configurations.modImpl.dependencies.each { modImplementation(it) include(it) }
}
processResources {
}
def targetJavaVersion = 21
tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8"
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
it.options.release.set(targetJavaVersion)
}
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
withSourcesJar()
}
compileKotlin {
}
jar {
from("LICENSE") {
rename { "${it}_${project.archivesBaseName}"}
}
from {
configurations.libImpl.collect { it.isDirectory() ? it : zipTree(it) }
}
from("build/classes/java/main") {
include "Aegis-refmap.json"
}
duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
repositories {}
}
configurations {
proguard
tinyRemapper
}
dependencies {
proguard 'com.guardsquare:proguard-base:7.4.2'
tinyRemapper 'net.fabricmc:tiny-remapper:0.10.1'
}