Skip to content

Commit 1f40b5d

Browse files
committed
- dokka 1.4.0
- metaspace fix
1 parent 44f1a66 commit 1f40b5d

File tree

3 files changed

+16
-23
lines changed

3 files changed

+16
-23
lines changed

build.gradle.kts

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77
java
88
kotlin("jvm") version "1.4.0"
99
`maven-publish` // Jitpack
10-
id("org.jetbrains.dokka") version "1.4.0-dev-62"
10+
id("org.jetbrains.dokka") version "1.4.0"
1111
}
1212

1313
val group = "com.github.kotlin_graphics"
@@ -18,7 +18,6 @@ repositories {
1818
mavenCentral()
1919
jcenter()
2020
maven("https://jitpack.io")
21-
maven("https://maven.pkg.jetbrains.space/kotlin/p/dokka/dev")
2221
}
2322

2423
dependencies {
@@ -38,16 +37,11 @@ java.modularity.inferModulePath.set(true)
3837
tasks {
3938

4039
dokkaHtml {
41-
dokkaSourceSets {
42-
configureEach {
43-
sourceLink {
44-
// Unix based directory relative path to the root of the project (where you execute gradle respectively).
45-
localDirectory.set(file("src/main/kotlin"))
46-
// URL showing where the source code can be accessed through the web browser
47-
remoteUrl.set(URL("https://github.com/kotlin-graphics/kotlin-unsigned/tree/master/src/main/kotlin"))
48-
// Suffix which is used to append the line number to the URL. Use #L for GitHub
49-
remoteLineSuffix.set("#L")
50-
}
40+
dokkaSourceSets.configureEach {
41+
sourceLink {
42+
localDirectory.set(file("src/main/kotlin"))
43+
remoteUrl.set(URL("https://github.com/kotlin-graphics/kotlin-unsigned/tree/master/src/main/kotlin"))
44+
remoteLineSuffix.set("#L")
5145
}
5246
}
5347
}
@@ -60,10 +54,8 @@ tasks {
6054
sourceCompatibility = "11"
6155
}
6256

63-
compileJava {
64-
// this is needed because we have a separate compile step in this example with the 'module-info.java' is in 'main/java' and the Kotlin code is in 'main/kotlin'
65-
options.compilerArgs = listOf("--patch-module", "$moduleName=${sourceSets.main.get().output.asPath}")
66-
}
57+
// this is needed because we have a separate compile step in this example with the 'module-info.java' is in 'main/java' and the Kotlin code is in 'main/kotlin'
58+
compileJava.get().options.compilerArgs = listOf("--patch-module", "$moduleName=${sourceSets.main.get().output.asPath}")
6759

6860
withType<Test> { useJUnitPlatform() }
6961
}

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
org.gradle.jvmargs=-XX:MaxMetaspaceSize=512m
1+
#org.gradle.jvmargs=-XX:MaxMetaspaceSize=512m
2+
org.gradle.daemon=false

settings.gradle.kts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
rootProject.name = "kotlin-unsigned"
22

3-
pluginManagement {
4-
repositories {
5-
gradlePluginPortal()
6-
maven("https://maven.pkg.jetbrains.space/kotlin/p/dokka/dev")
7-
}
8-
}
3+
//pluginManagement {
4+
// repositories {
5+
// gradlePluginPortal()
6+
// maven("https://maven.pkg.jetbrains.space/kotlin/p/dokka/dev")
7+
// }
8+
//}

0 commit comments

Comments
 (0)