Skip to content

Commit 71219fd

Browse files
authored
Add SourcesJar from JVM libraries (#905)
1 parent c81e6c6 commit 71219fd

5 files changed

Lines changed: 19 additions & 2 deletions

File tree

fuel-forge-jvm/build.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ kotlin {
88
explicitApi()
99
}
1010

11+
java {
12+
withSourcesJar()
13+
withJavadocJar()
14+
}
15+
1116
tasks.withType<JavaCompile> {
1217
sourceCompatibility = JavaVersion.VERSION_1_8.toString()
1318
targetCompatibility = JavaVersion.VERSION_1_8.toString()

fuel-jackson-jvm/build.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ kotlin {
88
explicitApi()
99
}
1010

11+
java {
12+
withSourcesJar()
13+
withJavadocJar()
14+
}
15+
1116
tasks.withType<JavaCompile> {
1217
sourceCompatibility = JavaVersion.VERSION_1_8.toString()
1318
targetCompatibility = JavaVersion.VERSION_1_8.toString()

fuel-moshi-jvm/build.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ kotlin {
99
explicitApi()
1010
}
1111

12+
java {
13+
withSourcesJar()
14+
withJavadocJar()
15+
}
16+
1217
tasks.withType<JavaCompile> {
1318
sourceCompatibility = JavaVersion.VERSION_1_8.toString()
1419
targetCompatibility = JavaVersion.VERSION_1_8.toString()

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ artifactUrl=https://github.com/kittinunf/fuel
1111
artifactScm=git@github.com:kittinunf/fuel.git
1212
artifactLicenseName=MIT License
1313
artifactLicenseUrl=http://www.opensource.org/licenses/mit-license.php
14-
artifactPublishVersion=3.0.0-alpha2
14+
artifactPublishVersion=3.0.0-alpha02
1515
artifactGroupId=com.github.kittinunf.fuel

plugins/src/main/kotlin/publication.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ publishing {
7272

7373
artifactId = project.name
7474

75-
artifact(javadocJar)
75+
if (project.name.substringAfterLast("-") != "jvm") {
76+
artifact(javadocJar)
77+
}
7678

7779
pom {
7880
name.set(artifactName)

0 commit comments

Comments
 (0)