mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-01 21:54:24 +02:00

This commit introduces an annotation processor for patches. Patches can use the `@Patch` instead of super constructor parameters. BREAKING CHANGE: The manifest for patches has been removed, and the properties have been added to patches. Patches are now `OptionsContainer`. The `@Patch` annotation has been removed in favour of the `@Patch` annotation from the annotation processor.
50 lines
1.0 KiB
Plaintext
50 lines
1.0 KiB
Plaintext
plugins {
|
|
kotlin("jvm") version "1.9.0"
|
|
`maven-publish`
|
|
alias(libs.plugins.ksp)
|
|
}
|
|
|
|
group = "app.revanced"
|
|
|
|
dependencies {
|
|
implementation(libs.symbol.processing.api)
|
|
implementation(libs.kotlinpoet.ksp)
|
|
implementation(project(":revanced-patcher"))
|
|
|
|
testImplementation(libs.kotlin.test)
|
|
testImplementation(libs.kotlin.compile.testing)
|
|
}
|
|
|
|
tasks {
|
|
test {
|
|
useJUnitPlatform()
|
|
testLogging {
|
|
events("PASSED", "SKIPPED", "FAILED")
|
|
}
|
|
}
|
|
}
|
|
|
|
kotlin { jvmToolchain(11) }
|
|
|
|
java {
|
|
withSourcesJar()
|
|
}
|
|
|
|
publishing {
|
|
repositories {
|
|
mavenLocal()
|
|
maven {
|
|
name = "GitHubPackages"
|
|
url = uri("https://maven.pkg.github.com/revanced/revanced-patch-annotations-processor")
|
|
credentials {
|
|
username = System.getenv("GITHUB_ACTOR")
|
|
password = System.getenv("GITHUB_TOKEN")
|
|
}
|
|
}
|
|
}
|
|
publications {
|
|
create<MavenPublication>("gpr") {
|
|
from(components["java"])
|
|
}
|
|
}
|
|
} |