diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 22b2828..9af7254 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -68,7 +68,7 @@ jobs: # Android: Publishes to Artifactory - name: "Publish to artifactory" - run: ./gradlew assemble --no-configuration-cache && ./gradlew publish --no-configuration-cache --stacktrace + run: ./gradlew javadocJar assemble --no-configuration-cache && ./gradlew publish --no-configuration-cache --stacktrace # iOS: Build and publish xcframeworks to the GitHub release - name: "Build xcframework" diff --git a/build.gradle.kts b/build.gradle.kts index 0a9c2c5..e99dac2 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -67,25 +67,20 @@ subprojects { remoteLineSuffix.set("#lines-") } } - - val nativeMain by getting { - sourceLink { - // Unix based directory relative path to the root of the project (where you execute gradle respectively). - localDirectory.set(file("src/nativeMain/kotlin")) - - // URL showing where the source code can be accessed through the web browser - remoteUrl.set(URL("${srcUrl}src/main/src/nativeMain/kotlin")) - - // Suffix which is used to append the line number to the URL. Use #L for GitHub - remoteLineSuffix.set("#lines-") - } - } } } + val dokkaHtml by project.tasks.getting(org.jetbrains.dokka.gradle.DokkaTask::class) + val javadocJar: TaskProvider by project.tasks.registering(Jar::class) { + dependsOn(dokkaHtml) + archiveClassifier.set("javadoc") + from(dokkaHtml.outputDirectory) + } + publishing { publications { publications.withType { + artifact(javadocJar) pom { name.set(project.name) description.set(project.ext.get("pomDescription") as String) diff --git a/version.properties b/version.properties index 6c603f8..91e9929 100644 --- a/version.properties +++ b/version.properties @@ -1 +1 @@ -projectVersion=1.1.5 +projectVersion=1.1.7