-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
39 lines (31 loc) · 960 Bytes
/
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
import org.gradle.api.Project.DEFAULT_VERSION
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
repositories {
mavenCentral()
google()
gradlePluginPortal()
}
val agpVersion: String by extra
dependencies {
classpath("com.android.tools.build:gradle:${agpVersion}")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${embeddedKotlinVersion}")
classpath("io.johnsonlee:sonatype-publish-plugin:1.7.0")
}
}
group = "io.johnsonlee"
version = project.findProperty("version")?.takeIf { it != DEFAULT_VERSION } ?: "1.0.0-SNAPSHOT"
allprojects {
group = rootProject.group
version = rootProject.version
repositories {
mavenCentral()
google()
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict", "-Xskip-metadata-version-check")
jvmTarget = "1.8"
}
}
}