1
- import org.jetbrains.dokka.gradle.DokkaTask
2
1
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
3
2
4
3
plugins {
5
- kotlin(" jvm" ) version " 1.3.72 "
4
+ kotlin(" jvm" ) version " 1.4.0 "
6
5
`java- library`
7
6
`maven- publish`
8
7
9
- id(" org.jmailen.kotlinter" ) version " 2.4.1 "
10
- id(" org.jetbrains.dokka" ) version " 0.10.1 "
8
+ id(" org.jmailen.kotlinter" ) version " 3.0.2 "
9
+ id(" org.jetbrains.dokka" ) version " 1.4.0 "
11
10
}
12
11
13
12
group = " com.lapanthere"
@@ -17,13 +16,13 @@ repositories {
17
16
}
18
17
19
18
dependencies {
20
- val kotlinVersion = " 1.3.72 "
19
+ val kotlinVersion = " 1.4.0 "
21
20
implementation(kotlin(" stdlib-jdk8" , kotlinVersion))
22
21
23
22
implementation(kotlin(" test" , kotlinVersion))
24
23
implementation(kotlin(" test-junit" , kotlinVersion))
25
24
26
- val coroutineVersion = " 1.3.8 "
25
+ val coroutineVersion = " 1.3.9 "
27
26
implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutineVersion " )
28
27
implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:$coroutineVersion " )
29
28
testImplementation(" org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutineVersion " )
@@ -40,16 +39,12 @@ tasks.register<Jar>("sourcesJar") {
40
39
from(sourceSets.main.get().allSource)
41
40
}
42
41
43
- tasks.named<KotlinCompile >(" compileKotlin" ) {
44
- kotlinOptions.freeCompilerArgs = listOf (" -Xexplicit-api=strict" )
45
- }
46
-
47
42
tasks.withType<KotlinCompile > {
48
43
kotlinOptions.jvmTarget = " 1.8"
49
44
}
50
45
51
- tasks.withType< DokkaTask > {
52
- outputFormat = " gfm "
46
+ kotlin {
47
+ explicitApi()
53
48
}
54
49
55
50
kotlinter {
0 commit comments