revanced-patcher/build.gradle.kts

75 lines
1.9 KiB
Text
Raw Normal View History

2022-03-16 22:00:41 +01:00
plugins {
kotlin("jvm") version "1.6.10"
java
`maven-publish`
2022-04-08 22:49:37 +02:00
id("com.github.johnrengelman.shadow") version "7.1.2"
2022-03-16 22:00:41 +01:00
}
group = "app.revanced"
2022-03-16 22:00:41 +01:00
repositories {
mavenCentral()
maven {
url = uri("https://maven.pkg.github.com/ReVancedTeam/multidexlib2")
credentials {
// DO NOT set these variables in the project's gradle.properties.
// Instead, you should set them in:
// Windows: %homepath%\.gradle\gradle.properties
// Linux: ~/.gradle/gradle.properties
username = project.findProperty("gpr.user") as String? ?: System.getenv("GITHUB_ACTOR") // DO NOT CHANGE!
password = project.findProperty("gpr.key") as String? ?: System.getenv("GITHUB_TOKEN") // DO NOT CHANGE!
}
}
2022-03-16 22:00:41 +01:00
}
dependencies {
implementation(kotlin("stdlib"))
2022-04-03 23:51:01 +02:00
implementation("app.revanced:multidexlib2:2.5.2.r2")
@Suppress("GradlePackageUpdate")
implementation("org.smali:smali:2.5.2")
2022-04-03 23:51:01 +02:00
testImplementation(kotlin("test"))
2022-03-18 20:46:24 +01:00
}
tasks.test {
useJUnitPlatform()
testLogging {
events("PASSED", "SKIPPED", "FAILED")
}
2022-03-18 20:46:24 +01:00
}
2022-04-08 22:49:37 +02:00
tasks {
build {
dependsOn(shadowJar)
}
}
java {
withSourcesJar()
withJavadocJar()
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/ReVancedTeam/revanced-patcher")
credentials {
2022-03-20 20:32:17 +01:00
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
publications {
register<MavenPublication>("gpr") {
from(components["java"])
}
2022-04-08 22:49:37 +02:00
register<MavenPublication>("shadow") {
project.extensions.configure<com.github.jengelman.gradle.plugins.shadow.ShadowExtension> {
component(this@register)
}
}
}
}