build: Publish artifacts on Jitpack

This commit is contained in:
oSumAtrIX
2023-08-27 04:47:07 +02:00
parent 38ef2f470a
commit cb5e39d73e
7 changed files with 47 additions and 91 deletions

View File

@@ -1,5 +1,4 @@
plugins {
kotlin("jvm") version "1.9.0"
alias(libs.plugins.ksp)
}
@@ -12,39 +11,11 @@ dependencies {
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-patcher")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
publications {
create<MavenPublication>("gpr") {
create<MavenPublication>("revanced-patch-annotation-processor-publication") {
from(components["java"])
version = project.version.toString()
pom {
name = "ReVanced patch annotation processor"
description = "Annotation processor for patches."