@@ -20,27 +20,27 @@ dokka {
2020 path = kotlin. sourceSets. commonMain. kotlin. srcDirs[0 ]
2121 platforms = [" Common" ]
2222 }
23- // if (kotlin.sourceSets.getNames().contains("jvmMain")) {
24- // sourceRoot {
25- // // assuming there is only a single source dir...
26- // path = kotlin.sourceSets.jvmMain.kotlin.srcDirs[0]
27- // platforms = ["JVM"]
28- // }
29- // }
30- // if (kotlin.sourceSets.getNames().contains("jsMain")) {
31- // sourceRoot {
32- // // assuming there is only a single source dir...
33- // path = kotlin.sourceSets.jsMain.kotlin.srcDirs[0]
34- // platforms = ["js"]
35- // }
36- // }
37- // if (kotlin.sourceSets.getNames().contains("nativeMain")) {
38- // sourceRoot {
39- // // assuming there is only a single source dir...
40- // path = kotlin.sourceSets.nativeMain.kotlin.srcDirs[0]
41- // platforms = ["native"]
42- // }
43- // }
23+ if (kotlin. sourceSets. getNames(). contains(" jvmMain" )) {
24+ sourceRoot {
25+ // assuming there is only a single source dir...
26+ path = kotlin. sourceSets. jvmMain. kotlin. srcDirs[0 ]
27+ platforms = [" JVM" ]
28+ }
29+ }
30+ if (kotlin. sourceSets. getNames(). contains(" jsMain" )) {
31+ sourceRoot {
32+ // assuming there is only a single source dir...
33+ path = kotlin. sourceSets. jsMain. kotlin. srcDirs[0 ]
34+ platforms = [" js" ]
35+ }
36+ }
37+ if (kotlin. sourceSets. getNames(). contains(" nativeMain" )) {
38+ sourceRoot {
39+ // assuming there is only a single source dir...
40+ path = kotlin. sourceSets. nativeMain. kotlin. srcDirs[0 ]
41+ platforms = [" native" ]
42+ }
43+ }
4444}
4545
4646def isReleaseBuild () {
@@ -76,10 +76,10 @@ task javadocsJar(type: Jar, dependsOn: dokka) {
7676
7777signing {
7878 required { isReleaseBuild() /* && gradle.taskGraph.hasTask("uploadArchives") */ }
79- // def signingKey = findProperty("GPG_SECRET") ?: System.getenv('GPG_SECRET') ?: ""
80- // def signingPassword = findProperty("GPG_SIGNING_PASSWORD") ?: System.getenv('GPG_SIGNING_PASSWORD') ?: ""
81- // useInMemoryPgpKeys(signingKey, signingPassword)
82- // sign(publishing.publications)
79+ def signingKey = findProperty(" GPG_SECRET" ) ?: System . getenv(' GPG_SECRET' ) ?: " "
80+ def signingPassword = findProperty(" GPG_SIGNING_PASSWORD" ) ?: System . getenv(' GPG_SIGNING_PASSWORD' ) ?: " "
81+ useInMemoryPgpKeys(signingKey, signingPassword)
82+ sign(publishing. publications)
8383}
8484
8585publishing {
0 commit comments