diff --git a/fuel-forge-jvm/build.gradle.kts b/fuel-forge-jvm/build.gradle.kts index d4720ef0..98cc26f7 100644 --- a/fuel-forge-jvm/build.gradle.kts +++ b/fuel-forge-jvm/build.gradle.kts @@ -8,6 +8,11 @@ kotlin { explicitApi() } +java { + withSourcesJar() + withJavadocJar() +} + tasks.withType { sourceCompatibility = JavaVersion.VERSION_1_8.toString() targetCompatibility = JavaVersion.VERSION_1_8.toString() diff --git a/fuel-jackson-jvm/build.gradle.kts b/fuel-jackson-jvm/build.gradle.kts index 392b8a87..5feac047 100644 --- a/fuel-jackson-jvm/build.gradle.kts +++ b/fuel-jackson-jvm/build.gradle.kts @@ -8,6 +8,11 @@ kotlin { explicitApi() } +java { + withSourcesJar() + withJavadocJar() +} + tasks.withType { sourceCompatibility = JavaVersion.VERSION_1_8.toString() targetCompatibility = JavaVersion.VERSION_1_8.toString() diff --git a/fuel-moshi-jvm/build.gradle.kts b/fuel-moshi-jvm/build.gradle.kts index 1c2fa72c..86ced0a3 100644 --- a/fuel-moshi-jvm/build.gradle.kts +++ b/fuel-moshi-jvm/build.gradle.kts @@ -9,6 +9,11 @@ kotlin { explicitApi() } +java { + withSourcesJar() + withJavadocJar() +} + tasks.withType { sourceCompatibility = JavaVersion.VERSION_1_8.toString() targetCompatibility = JavaVersion.VERSION_1_8.toString() diff --git a/gradle.properties b/gradle.properties index 0e7322b8..da926917 100644 --- a/gradle.properties +++ b/gradle.properties @@ -11,5 +11,5 @@ artifactUrl=https://github.com/kittinunf/fuel artifactScm=git@github.com: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 diff --git a/plugins/src/main/kotlin/publication.gradle.kts b/plugins/src/main/kotlin/publication.gradle.kts index ffa8fd93..818f6124 100644 --- a/plugins/src/main/kotlin/publication.gradle.kts +++ b/plugins/src/main/kotlin/publication.gradle.kts @@ -72,7 +72,9 @@ publishing { artifactId = project.name - artifact(javadocJar) + if (project.name.substringAfterLast("-") != "jvm") { + artifact(javadocJar) + } pom { name.set(artifactName)