-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
48 lines (42 loc) · 1.1 KB
/
build.gradle
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
buildscript {
ext.kotlin_version = '1.3.41'
repositories {
jcenter()
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jlleitschuh.gradle:ktlint-gradle:9.4.1"
}
}
plugins {
id "io.gitlab.arturbosch.detekt" version "1.16.0"
}
allprojects {
repositories {
jcenter()
mavenCentral()
}
}
subprojects {
apply plugin: 'java-library'
apply plugin: 'kotlin'
apply plugin: 'maven'
apply from: '../dependencies.gradle'
apply from: '../gradle/maven_publish.gradle'
apply from: rootProject.file('quality/ktlint.gradle')
apply from: rootProject.file('quality/detekt.gradle')
group = GROUP
version = VERSION_NAME
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
// Set JVM target to 1.8
jvmTarget = "1.8"
}
}
}
wrapper {
gradleVersion = '6.8'
distributionUrl = distributionUrl.replace("bin", "all")
}