diff --git a/build.gradle.kts b/build.gradle.kts index dc5e76f..491907e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -2,3 +2,9 @@ plugins { kotlin("jvm") version "1.9.0" apply false alias(libs.plugins.binary.compatibility.validator) } + +allprojects { + apply(plugin = "maven-publish") + + group = "app.revanced" +} \ No newline at end of file diff --git a/revanced-patch-annotations-processor/build.gradle.kts b/revanced-patch-annotations-processor/build.gradle.kts index 7b0f0be..fdf5cfe 100644 --- a/revanced-patch-annotations-processor/build.gradle.kts +++ b/revanced-patch-annotations-processor/build.gradle.kts @@ -1,11 +1,8 @@ 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) @@ -35,7 +32,7 @@ publishing { mavenLocal() maven { name = "GitHubPackages" - url = uri("https://maven.pkg.github.com/revanced/revanced-patch-annotations-processor") + url = uri("https://maven.pkg.github.com/revanced/revanced-patcher") credentials { username = System.getenv("GITHUB_ACTOR") password = System.getenv("GITHUB_TOKEN") @@ -45,6 +42,33 @@ publishing { publications { create("gpr") { from(components["java"]) + + version = project.version.toString() + + pom { + name = "ReVanced Patch annotations processor" + description = "Annotation processor for patches." + url = "https://revanced.app" + + licenses { + license { + name = "GNU General Public License v3.0" + url = "https://www.gnu.org/licenses/gpl-3.0.en.html" + } + } + developers { + developer { + id = "ReVanced" + name = "ReVanced" + email = "contact@revanced.app" + } + } + scm { + connection = "scm:git:git://github.com/revanced/revanced-patcher.git" + developerConnection = "scm:git:git@github.com:revanced/revanced-patcher.git" + url = "https://github.com/revanced/revanced-patcher" + } + } } } } \ No newline at end of file diff --git a/revanced-patcher/build.gradle.kts b/revanced-patcher/build.gradle.kts index f8a97f4..8c2c8fd 100644 --- a/revanced-patcher/build.gradle.kts +++ b/revanced-patcher/build.gradle.kts @@ -1,10 +1,7 @@ plugins { kotlin("jvm") version "1.9.0" - `maven-publish` } -group = "app.revanced" - dependencies { implementation(libs.kotlinx.coroutines.core) implementation(libs.xpp3) @@ -53,6 +50,33 @@ publishing { publications { create("gpr") { from(components["java"]) + + version = project.version.toString() + + pom { + name = "ReVanced Patcher" + description = "Patcher used by ReVanced." + url = "https://revanced.app" + + licenses { + license { + name = "GNU General Public License v3.0" + url = "https://www.gnu.org/licenses/gpl-3.0.en.html" + } + } + developers { + developer { + id = "ReVanced" + name = "ReVanced" + email = "contact@revanced.app" + } + } + scm { + connection = "scm:git:git://github.com/revanced/revanced-patcher.git" + developerConnection = "scm:git:git@github.com:revanced/revanced-patcher.git" + url = "https://github.com/revanced/revanced-patcher" + } + } } } }