Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 22, 2024. It is now read-only.

Commit 2e48648

Browse files
committed
Consistently add kotlin-eap repository and add custom source set for multiplatform
1 parent 476c169 commit 2e48648

File tree

7 files changed

+25
-2
lines changed

7 files changed

+25
-2
lines changed

‎gradle/dokka/dokka-customFormat-example/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ plugins {
88
repositories {
99
mavenCentral()
1010
jcenter()
11+
maven("https://dl.bintray.com/kotlin/kotlin-eap")
1112
maven("https://dl.bintray.com/kotlin/kotlin-dev")
1213
}
1314

‎gradle/dokka/dokka-library-publishing-example/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ plugins {
88
repositories {
99
mavenCentral()
1010
jcenter()
11+
maven("https://dl.bintray.com/kotlin/kotlin-eap")
1112
maven("https://dl.bintray.com/kotlin/kotlin-dev")
1213
}
1314

‎gradle/dokka/dokka-multimodule-example/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ subprojects {
22
repositories {
33
mavenCentral()
44
jcenter()
5+
maven("https://dl.bintray.com/kotlin/kotlin-eap")
56
maven("https://dl.bintray.com/kotlin/kotlin-dev")
67
}
78
}

‎gradle/dokka/dokka-multimodule-example/settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ pluginManagement {
66
repositories {
77
jcenter()
88
mavenCentral()
9-
maven("https://dl.bintray.com/kotlin/kotlin-dev")
109
maven("https://dl.bintray.com/kotlin/kotlin-eap")
10+
maven("https://dl.bintray.com/kotlin/kotlin-dev")
1111
}
1212
}
1313

‎gradle/dokka/dokka-multiplatform-example/build.gradle.kts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ plugins {
88
repositories {
99
jcenter()
1010
mavenCentral()
11+
maven("https://dl.bintray.com/kotlin/kotlin-eap")
1112
maven("https://dl.bintray.com/kotlin/kotlin-dev")
1213
}
1314

@@ -52,5 +53,13 @@ tasks.withType<DokkaTask> {
5253
dependsOn("commonMain")
5354
sourceRoot { path = "src/jvmMain/kotlin" }
5455
}
56+
57+
register("customSourceSet") {
58+
this.jdkVersion = 9
59+
this.displayName = "Custom JDK 10 Source Set"
60+
this.sourceRoot {
61+
this.path = "src/customJdk10/kotlin"
62+
}
63+
}
5564
}
5665
}

‎gradle/dokka/dokka-multiplatform-example/settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ pluginManagement {
22
repositories {
33
jcenter()
44
mavenCentral()
5-
maven("https://dl.bintray.com/kotlin/kotlin-dev")
65
maven("https://dl.bintray.com/kotlin/kotlin-eap")
6+
maven("https://dl.bintray.com/kotlin/kotlin-dev")
77
}
88
}
99
rootProject.name = "dokka-multiplatform-example"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package demo
2+
3+
/**
4+
* This class demonstrates custom dokka source sets
5+
*/
6+
class CustomSourceSetFile {
7+
/**
8+
* This function will not do anything
9+
*/
10+
fun thisIsAFunction() {}
11+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /