Skip to content

Commit

Permalink
Fix Maven Publishing (#31)
Browse files Browse the repository at this point in the history
* maven publish fix

* cleanup

* minor refactoring

* lol
  • Loading branch information
rooeque authored and tomnis committed Dec 4, 2019
1 parent 2ba8aef commit c1ec689
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build.gradle
Expand Up @@ -256,6 +256,12 @@ static boolean isSnapshot(String inferredVersion) {
inferredVersion.endsWith("-SNAPSHOT") || inferredVersion.contains("-dev.") || inferredVersion.contains(".dev.")
}

// sonatype doesn't support gradle module metadata (gradle 6 auto feature) yet
// see https://discuss.gradle.org/t/unable-to-publish-artifact-to-mavencentral/33727
tasks.withType(GenerateModuleMetadata) {
enabled = false
}

publishing {
publications {
mavenJava(MavenPublication) {
Expand All @@ -267,7 +273,7 @@ publishing {
artifact scaladocJar
pom {
name = 'warp-core'
description = 'A library for scientific performance testing.'
project.description = 'A library for scientific performance testing.'
url = 'https://workday.github.io/warp-core/'
licenses {
license {
Expand Down

0 comments on commit c1ec689

Please sign in to comment.