-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
77 lines (64 loc) · 1.92 KB
/
build.gradle.kts
File metadata and controls
77 lines (64 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "2.0.0"
id("java-gradle-plugin")
id("maven-publish")
}
group = "com.lagradost.cloudstream3"
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
tasks.withType<KotlinCompile> {
compilerOptions {
// Disables some unnecessary features
freeCompilerArgs.addAll(
listOf(
"-Xno-call-assertions",
"-Xno-param-assertions",
"-Xno-receiver-assertions"
)
)
jvmTarget.set(JvmTarget.JVM_11) // Required
}
}
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:8.7.3")
compileOnly("org.jetbrains.kotlin:kotlin-gradle-plugin:2.0.0")
implementation("org.ow2.asm:asm:9.4")
implementation("org.ow2.asm:asm-tree:9.4")
implementation("com.github.vidstige:jadb:v1.2.1")
}
gradlePlugin {
plugins {
create("com.lagradost.cloudstream3.gradle") {
id = "com.lagradost.cloudstream3.gradle"
implementationClass = "com.lagradost.cloudstream3.gradle.CloudstreamPlugin"
}
}
}
publishing {
repositories {
mavenLocal()
val token = project.findProperty("gpr.key") as String? ?: System.getenv("GITHUB_TOKEN")
if (token != null) {
maven {
credentials {
username = "recloudstream"
password = token
}
setUrl("https://maven.pkg.github.com/recloudstream/gradle")
}
}
}
}