Skip to content

Commit

Permalink
Publish a BOM for Okio (#1054)
Browse files Browse the repository at this point in the history
Closes: #1044
  • Loading branch information
swankjesse authored Oct 27, 2021
1 parent f1aef77 commit c9388b3
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 16 deletions.
20 changes: 20 additions & 0 deletions okio-bom/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
plugins {
id("com.vanniktech.maven.publish.base")
id("java-platform")
}

dependencies {
constraints {
api(project(":okio"))
api(project(":okio-fakefilesystem"))
if (kmpJsEnabled) {
api(project(":okio-nodefilesystem"))
}
}
}

extensions.configure<PublishingExtension> {
publications.create("maven", MavenPublication::class) {
from(project.components.getByName("javaPlatform"))
}
}
8 changes: 0 additions & 8 deletions okio-fakefilesystem/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,6 @@ dependencies {
signature(deps.animalSniffer.javaSignature)
}

// https://github.com/vanniktech/gradle-maven-publish-plugin/issues/301
val metadataJar by tasks.getting(Jar::class)
configure<PublishingExtension> {
publications.withType<MavenPublication>().named("kotlinMultiplatform").configure {
artifact(metadataJar)
}
}

configure<MavenPublishBaseExtension> {
configure(
KotlinMultiplatform(javadocJar = Dokka("dokkaGfm"))
Expand Down
8 changes: 0 additions & 8 deletions okio/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,6 @@ dependencies {
signature(deps.animalSniffer.javaSignature)
}

// https://github.com/vanniktech/gradle-maven-publish-plugin/issues/301
val metadataJar by tasks.getting(Jar::class)
configure<PublishingExtension> {
publications.withType<MavenPublication>().named("kotlinMultiplatform").configure {
artifact(metadataJar)
}
}

configure<MavenPublishBaseExtension> {
configure(
KotlinMultiplatform(javadocJar = Dokka("dokkaGfm"))
Expand Down
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ rootProject.name = "okio-parent"
includeBuild("build-support")

include(":okio")
include(":okio-bom")
include(":okio-fakefilesystem")
if (System.getProperty("kjs", "true").toBoolean()) {
include(":okio-nodefilesystem")
Expand Down

0 comments on commit c9388b3

Please sign in to comment.