Skip to content

Commit

Permalink
Adjust javadoc generation
Browse files Browse the repository at this point in the history
  • Loading branch information
gabfssilva committed Jan 22, 2024
1 parent a0d9ef1 commit a96d301
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Assembly
uses: gradle/gradle-build-action@v2
with:
arguments: jar sourcesJar javadocJar --parallel --stacktrace
arguments: assemble sourcesJar javadocJar --parallel --stacktrace

- name: Sign & publish to Maven Central
uses: gradle/gradle-build-action@v2
Expand All @@ -46,4 +46,4 @@ jobs:
RELEASER_NEXUS2_USERNAME: ${{ secrets.RELEASER_NEXUS2_USERNAME }}
RELEASER_NEXUS2_PASSWORD: ${{ secrets.RELEASER_NEXUS2_PASSWORD }}
with:
arguments: jar sourcesJar javadocJar signMavenPublication signJavadocJar publish --stacktrace
arguments: assemble sourcesJar javadocJar signMavenPublication signJavadocJar publish --stacktrace
27 changes: 17 additions & 10 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,13 @@ subprojects {
}
}

val javadocJar by tasks.registering(Jar::class) {
archiveClassifier.set("javadoc")
from(tasks.dokkaHtml)
dependsOn("dokkaHtml")
skipExamples()
}

publishing {
repositories {
maven {
Expand All @@ -155,15 +162,15 @@ subprojects {
artifactId = project.name
version = "${project.version}"

// artifact(tasks["jar"])
//
// artifact(tasks["sourcesJar"]) {
// classifier = "sources"
// }
//
// artifact(tasks["javadocJar"]) {
// classifier = "javadoc"
// }
// artifact(tasks["jvmJar"])

artifact(tasks["sourcesJar"]) {
classifier = "sources"
}

artifact(tasks["javadocJar"]) {
classifier = "javadoc"
}

pom {
name.set(project.name)
Expand Down Expand Up @@ -241,7 +248,7 @@ subprojects {
useInMemoryPgpKeys(signingKeyId, signingSecretKey, signingPassword)

sign(publishing.publications["maven"])
// sign(tasks["javadocJar"])
sign(tasks["javadocJar"])
}

tasks.withType<PublishToMavenRepository>().configureEach {
Expand Down
2 changes: 1 addition & 1 deletion libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
kotlin = "1.9.22"
dokka = "1.8.20"
dokka = "1.9.10"
aws-sdk = "2.23.2"
coroutines = "1.7.3"
slf4j = "1.7.36"
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ rootProject.name = "river"

include(
"core",
"connectors",
// "connectors",
"connectors:aws",
"connectors:amqp",
"connectors:apache:kafka",
Expand Down

0 comments on commit a96d301

Please sign in to comment.