@@ -10,9 +10,9 @@ description = "A higher-order function for retrying operations that may fail."
1010plugins {
1111 `maven- publish`
1212 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"
1616 id(" net.researchgate.release" ) version " 2.8.1"
1717}
1818
@@ -25,7 +25,7 @@ dependencies {
2525 implementation(kotlin(" stdlib" ))
2626 implementation(" com.michael-bull.kotlin-result:kotlin-result:1.1.9" )
2727 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 " )
2929 testImplementation(" org.jetbrains.kotlinx:kotlinx-coroutines-test:1.3.9" )
3030 testImplementation(" io.mockk:mockk:1.10.0" )
3131}
@@ -50,24 +50,20 @@ tasks.withType<Test> {
5050 useJUnitPlatform()
5151}
5252
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 )
5754
5855val javadocJar by tasks.registering(Jar ::class ) {
5956 group = LifecycleBasePlugin .BUILD_GROUP
6057 description = " Assembles a jar archive containing the Javadoc API documentation."
6158 archiveClassifier.set(" javadoc" )
62- dependsOn(dokka)
63- from(dokka.get().outputDirectory)
59+ from(dokkaJavadoc)
6460}
6561
6662val sourcesJar by tasks.registering(Jar ::class ) {
6763 group = LifecycleBasePlugin .BUILD_GROUP
6864 description = " Assembles a jar archive containing the main classes with sources."
6965 archiveClassifier.set(" sources" )
70- from(project.the< SourceSetContainer >().getByName( " main " ).allSource)
66+ from(sourceSets.main.get( ).allSource)
7167}
7268
7369publishing {
0 commit comments