generated from johnsonlee/gradle-kotlin-dsl-template
-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle.kts
36 lines (29 loc) · 900 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
import org.gradle.api.Project.DEFAULT_VERSION
buildscript {
repositories {
mavenCentral()
google()
gradlePluginPortal()
}
dependencies {
classpath("com.android.tools.build:gradle:4.0.0")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${embeddedKotlinVersion}")
classpath("io.johnsonlee:sonatype-publish-plugin:1.6.2")
}
}
group = "io.johnsonlee.codegen"
version = project.properties["version"]?.takeIf { it != DEFAULT_VERSION } ?: "1.0.0-SNAPSHOT"
allprojects {
group = rootProject.group
version = rootProject.version
repositories {
mavenCentral()
google()
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict", "-Xskip-metadata-version-check")
jvmTarget = "1.8"
}
}
}