diff --git a/okio-bom/build.gradle.kts b/okio-bom/build.gradle.kts new file mode 100644 index 0000000000..8351df1158 --- /dev/null +++ b/okio-bom/build.gradle.kts @@ -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 { + publications.create("maven", MavenPublication::class) { + from(project.components.getByName("javaPlatform")) + } +} diff --git a/okio-fakefilesystem/build.gradle.kts b/okio-fakefilesystem/build.gradle.kts index 386bac2411..c1eb70a56e 100644 --- a/okio-fakefilesystem/build.gradle.kts +++ b/okio-fakefilesystem/build.gradle.kts @@ -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 { - publications.withType().named("kotlinMultiplatform").configure { - artifact(metadataJar) - } -} - configure { configure( KotlinMultiplatform(javadocJar = Dokka("dokkaGfm")) diff --git a/okio/build.gradle.kts b/okio/build.gradle.kts index af05e3bed5..7e8872756a 100644 --- a/okio/build.gradle.kts +++ b/okio/build.gradle.kts @@ -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 { - publications.withType().named("kotlinMultiplatform").configure { - artifact(metadataJar) - } -} - configure { configure( KotlinMultiplatform(javadocJar = Dokka("dokkaGfm")) diff --git a/settings.gradle.kts b/settings.gradle.kts index c5cd476b34..e9849afb0e 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -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")