Unshadow mixin processor

There is no way to prevent the relocator transformation so we depend on the unshadowed project that pulls the shadowed project
Cleanup client validator shadow jar
This commit is contained in:
Fury_Phoenix 2023-12-14 14:22:49 -08:00
parent 542ae3e979
commit 0c4912b771
No known key found for this signature in database
GPG Key ID: 0595F98084987DB8
6 changed files with 32 additions and 6 deletions

View File

@ -0,0 +1,27 @@
plugins {
id 'java-library'
id 'com.diffplug.spotless'
}
repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.guava:guava:21.0'
annotationProcessor 'com.google.auto.service:auto-service:1.1.1'
compileOnly 'com.google.auto.service:auto-service:1.1.1'
implementation project(":annotation-processor")
}
tasks.withType(JavaCompile) {
options.compilerArgs += '--enable-preview'
}
spotless {
java {
removeUnusedImports()
}
}
version = '1.1.2'

View File

@ -11,11 +11,7 @@ repositories {
} }
dependencies { dependencies {
implementation 'com.google.guava:guava:21.0'
implementation 'com.google.code.gson:gson:2.10.1' implementation 'com.google.code.gson:gson:2.10.1'
annotationProcessor 'com.google.auto.service:auto-service:1.1.1'
compileOnly 'com.google.auto.service:auto-service:1.1.1'
implementation "net.fabricmc:sponge-mixin:0.12.5+" implementation "net.fabricmc:sponge-mixin:0.12.5+"
// Platform classes // Platform classes
// "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}" // "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
@ -32,6 +28,8 @@ shadowJar {
} }
exclude 'META-INF/services/org.spongepowered*' exclude 'META-INF/services/org.spongepowered*'
exclude 'META-INF/services/cpw*' exclude 'META-INF/services/cpw*'
exclude 'META-INF/maven*'
exclude 'LICENSE.txt'
relocate ('org.spongepowered', 'shadow.org.fury_phoenix.shadow.spongepowered') relocate ('org.spongepowered', 'shadow.org.fury_phoenix.shadow.spongepowered')
minimize() minimize()
} }

View File

@ -17,7 +17,7 @@ dependencies {
} }
} }
implementation project(":annotations") implementation project(":annotations")
annotationProcessor project(path: ":annotation-processor", configuration: "shadow") annotationProcessor project(":annotation-processor-unshadow")
} }
project.sourceSets { project.sourceSets {

View File

@ -16,6 +16,7 @@ refined_storage_version=3807951
kubejs_version=1605.3.19-build.299 kubejs_version=1605.3.19-build.299
ctm_version=MC1.16.1-1.1.2.6 ctm_version=MC1.16.1-1.1.2.6
supported_minecraft_versions=1.16.4,1.16.5 supported_minecraft_versions=1.16.4,1.16.5
// Look up maven coordinates when changing shadow_version
shadow_version=7.1.2 shadow_version=7.1.2
fabric_loader_version=0.14.21 fabric_loader_version=0.14.21

View File

@ -15,7 +15,7 @@ pluginManagement {
} }
include("annotation-processor") include("annotation-processor")
include("annotation-processor-hack") include("annotation-processor-unshadow")
include("annotations") include("annotations")
include("test_agent") include("test_agent")
include("common") include("common")