From debd2de42e0f5506ea0af5807f2013dad30989cd Mon Sep 17 00:00:00 2001 From: Sebastian Hartte Date: Tue, 18 Aug 2020 20:12:09 +0200 Subject: [PATCH] Fix Maven publication. --- build.gradle | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/build.gradle b/build.gradle index 6702786a8..0b0aa170c 100644 --- a/build.gradle +++ b/build.gradle @@ -180,11 +180,14 @@ processResources { apply from: 'gradle/scripts/artifacts.gradle' apply from: 'gradle/scripts/curseforge.gradle' -if (!version.endsWith("-SNAPSHOT")) { - publishing { +// configure the maven publication +publishing { + if (!version.endsWith("-SNAPSHOT")) { publications { - mavenJava(MavenPublication) { + maven(MavenPublication) { + groupId = project.group artifactId = 'appliedenergistics2-fabric' + version = project.version // add all the jars that should be included when publishing to maven artifact(remapJar) { @@ -193,14 +196,11 @@ if (!version.endsWith("-SNAPSHOT")) { artifact(sourcesJar) { builtBy remapSourcesJar } + artifact javadocJar + artifact apiJar } } } -} - -// configure the maven publication -publishing { - // select the repositories you want to publish to repositories { maven { credentials {