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:
parent
542ae3e979
commit
0c4912b771
27
annotation-processor-unshadow/build.gradle
Normal file
27
annotation-processor-unshadow/build.gradle
Normal 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'
|
||||
|
|
@ -11,11 +11,7 @@ repositories {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.google.guava:guava:21.0'
|
||||
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+"
|
||||
// Platform classes
|
||||
// "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
|
||||
|
|
@ -32,6 +28,8 @@ shadowJar {
|
|||
}
|
||||
exclude 'META-INF/services/org.spongepowered*'
|
||||
exclude 'META-INF/services/cpw*'
|
||||
exclude 'META-INF/maven*'
|
||||
exclude 'LICENSE.txt'
|
||||
relocate ('org.spongepowered', 'shadow.org.fury_phoenix.shadow.spongepowered')
|
||||
minimize()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ dependencies {
|
|||
}
|
||||
}
|
||||
implementation project(":annotations")
|
||||
annotationProcessor project(path: ":annotation-processor", configuration: "shadow")
|
||||
annotationProcessor project(":annotation-processor-unshadow")
|
||||
}
|
||||
|
||||
project.sourceSets {
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ refined_storage_version=3807951
|
|||
kubejs_version=1605.3.19-build.299
|
||||
ctm_version=MC1.16.1-1.1.2.6
|
||||
supported_minecraft_versions=1.16.4,1.16.5
|
||||
// Look up maven coordinates when changing shadow_version
|
||||
shadow_version=7.1.2
|
||||
|
||||
fabric_loader_version=0.14.21
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ pluginManagement {
|
|||
}
|
||||
|
||||
include("annotation-processor")
|
||||
include("annotation-processor-hack")
|
||||
include("annotation-processor-unshadow")
|
||||
include("annotations")
|
||||
include("test_agent")
|
||||
include("common")
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user