Skip to content

Commit

Permalink
Fix wire-reflector metadata stuff for publishing and uploadArchives (s…
Browse files Browse the repository at this point in the history
  • Loading branch information
oldergod authored Apr 8, 2021
1 parent a7d669d commit b3e0903
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions wire-library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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' &&
Expand Down
20 changes: 20 additions & 0 deletions wire-library/wire-reflector/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
}
}

0 comments on commit b3e0903

Please sign in to comment.