-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
51 lines (44 loc) · 1.27 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
import org.gradle.api.Project.DEFAULT_VERSION
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version embeddedKotlinVersion
id("io.johnsonlee.sonatype-publish-plugin") version "1.9.0"
}
group = "io.johnsonlee.playground"
version = project.findProperty("version")?.takeIf { it != DEFAULT_VERSION } ?: "1.0.0-SNAPSHOT"
repositories {
mavenCentral()
google()
}
dependencies {
api(kotlin("bom"))
api(kotlin("stdlib"))
api(kotlin("reflect"))
api(libs.android.tools.build.aapt2.proto)
api(libs.android.tools.common)
api(libs.android.tools.external.intellij.core)
api(libs.android.tools.layoutlib)
api(libs.android.tools.layoutlib.api)
api(libs.android.tools.sdk.common)
api(libs.androidx.lifecycle.common.java8)
api(libs.jackson.databind)
api(libs.kxml2)
api(libs.okio)
api(libs.protobuf)
api(libs.slf4j.api)
testImplementation(kotlin("test"))
testImplementation(kotlin("test-junit"))
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "11"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}