-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
66 lines (57 loc) · 1.67 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*
* This file was generated by the Gradle 'init' task.
*
* This is a general purpose Gradle build.
* Learn how to create Gradle builds at https://guides.gradle.org/creating-new-gradle-builds
*/
apply from: rootProject.file("config.gradle")
buildscript {
// ext.jacoco_version = '0.8.6' // https://www.eclemma.org/jacoco/
repositories {
// maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
mavenCentral()
// maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21"
classpath 'info.solidsoft.gradle.pitest:gradle-pitest-plugin:1.5.1'
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.15.0"
}
}
allprojects {
repositories {
// maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
mavenCentral()
// jcenter()
}
apply plugin: 'java'
tasks.withType(JavaCompile) {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
options.encoding = "UTF-8"
}
apply plugin: "kotlin"
compileKotlin {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11
// freeCompilerArgs = ['-Xjsr305=strict']
// javaParameters = true
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11
// freeCompilerArgs = ['-Xjsr305=strict']
// javaParameters = true
}
}
kotlin {
experimental {
coroutines "enable"
}
}
}
// above gradle 3.+
clean {
delete rootProject.buildDir
}