Skip to content

Commit

Permalink
Add SourcesJar from JVM libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
kittinunf committed May 19, 2024
1 parent c81e6c6 commit 0970fac
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 2 deletions.
5 changes: 5 additions & 0 deletions fuel-forge-jvm/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ kotlin {
explicitApi()
}

java {
withSourcesJar()
withJavadocJar()
}

tasks.withType<JavaCompile> {
sourceCompatibility = JavaVersion.VERSION_1_8.toString()
targetCompatibility = JavaVersion.VERSION_1_8.toString()
Expand Down
5 changes: 5 additions & 0 deletions fuel-jackson-jvm/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ kotlin {
explicitApi()
}

java {
withSourcesJar()
withJavadocJar()
}

tasks.withType<JavaCompile> {
sourceCompatibility = JavaVersion.VERSION_1_8.toString()
targetCompatibility = JavaVersion.VERSION_1_8.toString()
Expand Down
5 changes: 5 additions & 0 deletions fuel-moshi-jvm/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ kotlin {
explicitApi()
}

java {
withSourcesJar()
withJavadocJar()
}

tasks.withType<JavaCompile> {
sourceCompatibility = JavaVersion.VERSION_1_8.toString()
targetCompatibility = JavaVersion.VERSION_1_8.toString()
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ artifactUrl=https://github.com/kittinunf/fuel
artifactScm=[email protected]:kittinunf/fuel.git
artifactLicenseName=MIT License
artifactLicenseUrl=http://www.opensource.org/licenses/mit-license.php
artifactPublishVersion=3.0.0-alpha2
artifactPublishVersion=3.0.0-alpha02
artifactGroupId=com.github.kittinunf.fuel
4 changes: 3 additions & 1 deletion plugins/src/main/kotlin/publication.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ publishing {

artifactId = project.name

artifact(javadocJar)
if (project.name.substringAfterLast("-") != "jvm") {
artifact(javadocJar)
}

pom {
name.set(artifactName)
Expand Down

0 comments on commit 0970fac

Please sign in to comment.