File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change
1
+ import java.net.URL
1
2
import org.jetbrains.dokka.DokkaConfiguration.Visibility.PUBLIC
2
3
import org.jetbrains.dokka.gradle.DokkaTask
3
4
@@ -11,6 +12,7 @@ plugins {
11
12
12
13
group = " com.github.gabrielfeo"
13
14
version = " 0.10.0"
15
+ val repoUrl = " https://github.com/gabrielfeo/gradle-enterprise-api-kotlin"
14
16
15
17
val downloadApiSpec by tasks.registering {
16
18
val geVersion = providers.gradleProperty(" gradle.enterprise.version" ).get()
@@ -75,6 +77,11 @@ java {
75
77
76
78
tasks.withType<DokkaTask >().configureEach {
77
79
dokkaSourceSets.all {
80
+ sourceLink {
81
+ localDirectory.set(file(" src/main/kotlin" ))
82
+ remoteUrl.set(URL (" $repoUrl /blob/$version /src/main/kotlin" ))
83
+ remoteLineSuffix.set(" #L" )
84
+ }
78
85
jdkVersion.set(8 )
79
86
suppressGeneratedFiles.set(false )
80
87
documentedVisibilities.set(setOf (PUBLIC ))
You can’t perform that action at this time.
0 commit comments