From 3bfb209c4fa2890c826ff4d919ecf2b5ddec429e Mon Sep 17 00:00:00 2001 From: Vedran Pavic Date: Tue, 30 Jan 2018 19:14:29 +0100 Subject: [PATCH] Fix publishing --- build.gradle | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index fa49558..e5ea99b 100644 --- a/build.gradle +++ b/build.gradle @@ -9,9 +9,10 @@ buildscript { } } -apply plugin: 'io.spring.convention.bom' apply plugin: 'io.spring.convention.root' apply plugin: 'io.spring.convention.springdependencymangement' +apply plugin: 'io.spring.convention.maven' +apply plugin: 'io.spring.convention.artifactory' group = 'org.springframework.session' description = 'Spring Session Maven Bill of Materials (BOM)' @@ -83,5 +84,16 @@ def customizePom(pom, project) { } } +task deployArtifacts { + group = 'Deploy tasks' + description = 'Deploys the artifacts to either Artifactory or Maven Central' +} + +if (version.endsWith('-RELEASE')) { + deployArtifacts.dependsOn uploadArchives +} +else { + deployArtifacts.dependsOn artifactoryPublish +} + sonarqube.skipProject = true -mavenBom.enabled = false