@@ -10,9 +10,9 @@ description = "A higher-order function for retrying operations that may fail."
10
10
plugins {
11
11
`maven- publish`
12
12
signing
13
- kotlin(" jvm" ) version " 1.4.0 "
14
- id(" org.jetbrains.dokka" ) version " 0.10.1 "
15
- id(" com.github.ben-manes.versions" ) version " 0.29 .0"
13
+ kotlin(" jvm" ) version " 1.4.10 "
14
+ id(" org.jetbrains.dokka" ) version " 1.4.10 "
15
+ id(" com.github.ben-manes.versions" ) version " 0.33 .0"
16
16
id(" net.researchgate.release" ) version " 2.8.1"
17
17
}
18
18
@@ -25,7 +25,7 @@ dependencies {
25
25
implementation(kotlin(" stdlib" ))
26
26
implementation(" com.michael-bull.kotlin-result:kotlin-result:1.1.9" )
27
27
implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9" )
28
- testImplementation(" org.junit.jupiter:junit-jupiter:5.6.2 " )
28
+ testImplementation(" org.junit.jupiter:junit-jupiter:5.7.0 " )
29
29
testImplementation(" org.jetbrains.kotlinx:kotlinx-coroutines-test:1.3.9" )
30
30
testImplementation(" io.mockk:mockk:1.10.0" )
31
31
}
@@ -50,24 +50,20 @@ tasks.withType<Test> {
50
50
useJUnitPlatform()
51
51
}
52
52
53
- val dokka by tasks.existing(DokkaTask ::class ) {
54
- outputFormat = " javadoc"
55
- outputDirectory = " $buildDir /docs/javadoc"
56
- }
53
+ val dokkaJavadoc by tasks.existing(DokkaTask ::class )
57
54
58
55
val javadocJar by tasks.registering(Jar ::class ) {
59
56
group = LifecycleBasePlugin .BUILD_GROUP
60
57
description = " Assembles a jar archive containing the Javadoc API documentation."
61
58
archiveClassifier.set(" javadoc" )
62
- dependsOn(dokka)
63
- from(dokka.get().outputDirectory)
59
+ from(dokkaJavadoc)
64
60
}
65
61
66
62
val sourcesJar by tasks.registering(Jar ::class ) {
67
63
group = LifecycleBasePlugin .BUILD_GROUP
68
64
description = " Assembles a jar archive containing the main classes with sources."
69
65
archiveClassifier.set(" sources" )
70
- from(project.the< SourceSetContainer >().getByName( " main " ).allSource)
66
+ from(sourceSets.main.get( ).allSource)
71
67
}
72
68
73
69
publishing {
0 commit comments