forked from Aliucord/gradle
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
62 lines (51 loc) · 1.48 KB
/
build.gradle.kts
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
`kotlin-dsl`
id("maven-publish")
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
}
}
dependencies {
implementation(kotlin("stdlib", kotlin.coreLibrariesVersion))
compileOnly(gradleApi())
compileOnly("com.google.guava:guava:30.1.1-jre")
compileOnly("com.android.tools:sdk-common:31.0.0")
compileOnly("com.android.tools.build:gradle:8.2.0")
compileOnly("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.10")
implementation("com.github.johnrengelman:shadow:8.1.0")
implementation("org.ow2.asm:asm:9.4")
implementation("org.ow2.asm:asm-tree:9.4")
implementation("com.github.vidstige:jadb:master-SNAPSHOT")
implementation("com.github.flixclusiveorg.core-stubs:model-provider:1.0.4")
}
gradlePlugin {
plugins {
register("flixclusiveProvider") {
id = "flx-provider"
implementationClass = "FlixclusiveProvider"
}
}
}
val sourcesJar = tasks.register<Jar>("sourcesJar") {
archiveClassifier.set("sources")
from("src/main/kotlin")
}
group = "com.github.flixclusive"
version = "1.2.2"
publishing {
repositories {
mavenLocal()
}
publications {
create<MavenPublication>("release") {
artifact(sourcesJar)
}
}
}