Reunify AP

This commit is contained in:
Fury_Phoenix 2023-12-16 16:42:09 -08:00
parent 6a12f72311
commit 83625bdfa2
No known key found for this signature in database
GPG Key ID: 0595F98084987DB8
5 changed files with 15 additions and 31 deletions

View File

@ -1,27 +0,0 @@
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(path: ":annotation-processor")
}
tasks.withType(JavaCompile) {
options.compilerArgs += '--enable-preview'
}
spotless {
java {
removeUnusedImports()
}
}
version = '1.1.2'

View File

@ -1,4 +1,5 @@
plugins {
id 'com.github.johnrengelman.shadow'
id 'java-library'
id 'com.diffplug.spotless'
}
@ -10,11 +11,18 @@ repositories {
}
dependencies {
annotationProcessor 'com.google.auto.service:auto-service:1.1.1'
compileOnly 'com.google.auto.service:auto-service:1.1.1'
implementation 'com.google.code.gson:gson:2.10.1'
shadow 'com.google.code.gson:gson:2.10.1'
implementation 'com.google.auto:auto-common:1.2.1'
// Platform classes
// "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
shadow 'com.google.auto:auto-common:1.2.1'
implementation 'com.google.guava:guava:21.0'
shadow 'com.google.guava:guava:21.0'
implementation project(":annotations")
shadow project(":annotations")
}
tasks.withType(JavaCompile) {
@ -22,6 +30,10 @@ tasks.withType(JavaCompile) {
options.release = 17
}
shadowJar {
include 'META-INF/services/javax.annotation.processing.Processor'
}
spotless {
java {
removeUnusedImports()

View File

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

View File

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