Browse Source

Remove artifactory plugin from build

Backport of gh-22490

See gh-26659
pull/27107/head
Stephane Nicoll 4 years ago
parent
commit
5291c5b233
  1. 1
      build.gradle
  2. 15
      gradle/publications.gradle

1
build.gradle

@ -10,7 +10,6 @@ plugins { @@ -10,7 +10,6 @@ plugins {
id "io.freefair.aspectj" version '4.1.6' apply false
id "com.github.ben-manes.versions" version '0.28.0'
id 'com.gradle.build-scan' version '3.2'
id "com.jfrog.artifactory" version '4.12.0' apply false
}
apply from: "$rootDir/gradle/build-scan-user-data.gradle"

15
gradle/publications.gradle

@ -1,5 +1,4 @@ @@ -1,5 +1,4 @@
apply plugin: "maven-publish"
apply plugin: 'com.jfrog.artifactory'
publishing {
publications {
@ -50,6 +49,16 @@ publishing { @@ -50,6 +49,16 @@ publishing {
}
}
artifactoryPublish {
publications(publishing.publications.mavenJava)
configureDeploymentRepository(project)
void configureDeploymentRepository(Project project) {
project.plugins.withType(MavenPublishPlugin.class).all {
PublishingExtension publishing = project.getExtensions().getByType(PublishingExtension.class);
if (project.hasProperty("deploymentRepository")) {
publishing.repositories.maven {
it.url = project.property("deploymentRepository")
it.name = "deployment"
}
}
}
}
Loading…
Cancel
Save