2022-08-04 07:19:27 +00:00
|
|
|
plugins {
|
|
|
|
kotlin("jvm") version "1.5.21"
|
|
|
|
id("java-gradle-plugin")
|
|
|
|
id("maven-publish")
|
|
|
|
}
|
|
|
|
|
|
|
|
group = "com.lagradost"
|
|
|
|
|
|
|
|
java {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
google()
|
|
|
|
maven("https://jitpack.io")
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation(kotlin("stdlib", kotlin.coreLibrariesVersion))
|
|
|
|
compileOnly(gradleApi())
|
|
|
|
|
|
|
|
compileOnly("com.google.guava:guava:30.1.1-jre")
|
|
|
|
compileOnly("com.android.tools:sdk-common:30.0.0")
|
|
|
|
compileOnly("com.android.tools.build:gradle:7.0.0")
|
|
|
|
|
|
|
|
implementation("com.github.Aliucord.dex2jar:dex-translator:d5a5efb06c")
|
|
|
|
implementation("com.github.Aliucord.jadx:jadx-core:1a213e978d")
|
|
|
|
implementation("com.github.Aliucord.jadx:jadx-dex-input:1a213e978d")
|
|
|
|
implementation("com.github.js6pak:jadb:fix-modified-time-SNAPSHOT")
|
|
|
|
}
|
|
|
|
|
|
|
|
gradlePlugin {
|
|
|
|
plugins {
|
|
|
|
create("com.lagradost.gradle") {
|
|
|
|
id = "com.lagradost.gradle"
|
|
|
|
implementationClass = "com.lagradost.gradle.CloudstreamPlugin"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
repositories {
|
2022-08-04 07:28:56 +00:00
|
|
|
val token = project.findProperty("gpr.key") as String? ?: System.getenv("GITHUB_TOKEN")
|
2022-08-04 07:19:27 +00:00
|
|
|
|
2022-08-04 07:23:17 +00:00
|
|
|
if (token != null) {
|
2022-08-04 07:19:27 +00:00
|
|
|
maven {
|
2022-08-04 07:28:56 +00:00
|
|
|
credentials {
|
|
|
|
username = "recloudstream"
|
|
|
|
password = token
|
|
|
|
}
|
2022-08-04 07:19:27 +00:00
|
|
|
setUrl("https://maven.pkg.github.com/recloudstream/gradle")
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
mavenLocal()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|