From b3e09032aa1a6d15bc3e44162c6d7807ffab0d39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Quenaudon?= Date: Thu, 8 Apr 2021 18:53:49 -0400 Subject: [PATCH] Fix wire-reflector metadata stuff for publishing and uploadArchives (#1933) --- wire-library/build.gradle | 1 + wire-library/wire-reflector/build.gradle | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/wire-library/build.gradle b/wire-library/build.gradle index 7b76f8f28a..88e3f05e62 100644 --- a/wire-library/build.gradle +++ b/wire-library/build.gradle @@ -66,6 +66,7 @@ subprojects { project -> // TODO this should use plugins.withId first rather than names if (project.name != 'wire-runtime' && project.name != 'wire-kotlin-serialization' && + project.name != 'wire-reflector' && project.name != 'wire-schema' && project.name != 'sample' && project.name != 'wire-codegen-sample' && diff --git a/wire-library/wire-reflector/build.gradle b/wire-library/wire-reflector/build.gradle index 0349d9fdf1..689c57ebe9 100644 --- a/wire-library/wire-reflector/build.gradle +++ b/wire-library/wire-reflector/build.gradle @@ -51,3 +51,23 @@ task generateReflectionProtos(type: JavaExec) { compileKotlinJvm { dependsOn generateReflectionProtos } + +jar { + manifest { + attributes('Automatic-Module-Name': 'wire-reflector') + } +} + +apply from: "$rootDir/gradle/gradle-mvn-mpp-push.gradle" + +publishing { + // Use default artifact name for the JVM target + publications { + kotlinMultiplatform { + artifactId = 'wire-reflector-multiplatform' + } + jvm { + artifactId = 'wire-reflector' + } + } +}