gradle/build.gradle.kts

60 lines
1.5 KiB
Plaintext
Raw Permalink Normal View History

2022-08-04 07:19:27 +00:00
plugins {
kotlin("jvm") version "1.7.10"
2022-08-04 07:19:27 +00:00
id("java-gradle-plugin")
id("maven-publish")
}
2022-08-04 11:30:09 +00:00
group = "com.lagradost.cloudstream3"
2022-08-04 07:19:27 +00:00
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.2.2")
2022-08-06 13:34:15 +00:00
compileOnly("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10")
2022-11-30 09:52:46 +00:00
implementation("org.ow2.asm:asm:9.4")
implementation("org.ow2.asm:asm-tree:9.4")
2023-01-14 08:22:56 +00:00
implementation("com.github.vidstige:jadb:master-SNAPSHOT")
2022-08-04 07:19:27 +00:00
}
gradlePlugin {
plugins {
2022-08-04 11:30:09 +00:00
create("com.lagradost.cloudstream3.gradle") {
id = "com.lagradost.cloudstream3.gradle"
implementationClass = "com.lagradost.cloudstream3.gradle.CloudstreamPlugin"
2022-08-04 07:19:27 +00:00
}
}
}
publishing {
repositories {
2023-03-17 12:20:55 +00:00
mavenLocal()
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")
}
}
}
2023-01-14 08:18:24 +00:00
}