mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-11-13 02:14:27 +01:00
a6c6b4979a
BREAKING CHANGE: Method signature of Patcher#save() was changed to comply with the changes of multidexlib2.
74 lines
1.9 KiB
Text
74 lines
1.9 KiB
Text
plugins {
|
|
kotlin("jvm") version "1.6.10"
|
|
java
|
|
`maven-publish`
|
|
id("com.github.johnrengelman.shadow") version "7.1.2"
|
|
}
|
|
|
|
group = "app.revanced"
|
|
|
|
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!
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(kotlin("stdlib"))
|
|
|
|
implementation("app.revanced:multidexlib2:2.5.2.r2")
|
|
@Suppress("GradlePackageUpdate")
|
|
implementation("org.smali:smali:2.5.2")
|
|
|
|
testImplementation(kotlin("test"))
|
|
}
|
|
|
|
tasks.test {
|
|
useJUnitPlatform()
|
|
testLogging {
|
|
events("PASSED", "SKIPPED", "FAILED")
|
|
}
|
|
}
|
|
|
|
tasks {
|
|
build {
|
|
dependsOn(shadowJar)
|
|
}
|
|
}
|
|
|
|
java {
|
|
withSourcesJar()
|
|
withJavadocJar()
|
|
}
|
|
|
|
publishing {
|
|
repositories {
|
|
maven {
|
|
name = "GitHubPackages"
|
|
url = uri("https://maven.pkg.github.com/ReVancedTeam/revanced-patcher")
|
|
credentials {
|
|
username = System.getenv("GITHUB_ACTOR")
|
|
password = System.getenv("GITHUB_TOKEN")
|
|
}
|
|
}
|
|
}
|
|
publications {
|
|
register<MavenPublication>("gpr") {
|
|
from(components["java"])
|
|
}
|
|
register<MavenPublication>("shadow") {
|
|
project.extensions.configure<com.github.jengelman.gradle.plugins.shadow.ShadowExtension> {
|
|
component(this@register)
|
|
}
|
|
}
|
|
}
|
|
}
|