@@ -18,24 +18,25 @@ plugins {
1818
1919apply from : " ${ rootDir} /gradle/dependencies.gradle"
2020
21- task dokkaJavadoc (type : org.jetbrains.dokka.gradle.DokkaTask ) {
22- outputFormat = " html"
23- outputDirectory = javadoc. destinationDir
24- enabled = JavaVersion . current(). isJava8()
25-
26- includeNonPublic = false
27- jdkVersion = 8
28-
29- externalDocumentationLink { url = new URL (" https://square.github.io/retrofit/2.x/retrofit/" ) }
30- externalDocumentationLink { url = new URL (" https://square.github.io/okhttp/3.x/okhttp/" ) }
31- externalDocumentationLink { url = new URL (" https://square.github.io/moshi/1.x/moshi/" ) }
21+ tasks. withType(org.jetbrains.dokka.gradle.DokkaTask ). configureEach {
22+ dokkaSourceSets {
23+ configureEach {
24+ sourceLink {
25+ localDirectory. set(file(" src/main/kotlin" ))
26+ remoteUrl. set(uri(" https://github.com/proxer/ProxerLibJava/tree/master/library/src/main/kotlin" ). toURL())
27+ }
3228
33- packageOptions {
34- prefix = " com.github.proxer.library.enums"
35- reportUndocumented = false
29+ externalDocumentationLink { url. set(new URL (" https://square.github.io/retrofit/2.x/retrofit/" )) }
30+ externalDocumentationLink { url. set(new URL (" https://square.github.io/okhttp/3.x/okhttp/" )) }
31+ externalDocumentationLink { url. set(new URL (" https://square.github.io/moshi/1.x/moshi/" )) }
32+ }
3633 }
3734}
3835
36+ tasks. dokkaJavadoc. configure {
37+ outputDirectory. set(javadoc. destinationDir)
38+ }
39+
3940task sourceJar (type : Jar ) {
4041 archiveClassifier = " sources"
4142
@@ -56,6 +57,12 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
5657 }
5758}
5859
60+ tasks. named(" dependencyUpdates" ). configure {
61+ rejectVersionIf {
62+ ! (it. candidate. version ==~ / ^[0-9,.v-]+(-r)?$/ )
63+ }
64+ }
65+
5966kapt {
6067 useBuildCache = true
6168}
@@ -84,6 +91,7 @@ jacocoTestReport {
8491
8592ktlint {
8693 disabledRules = [" import-ordering" ]
94+
8795 reporters {
8896 reporter " checkstyle"
8997 }
0 commit comments