Apply Artifactory Gradle plugin

Instead of relying on the CI server to apply and configure this plugin,
this commit does it directly in the Spring Framework build.
This allows us to take full control over which projects are published
and how.

See gh-23282
This commit is contained in:
Brian Clozel
2019-08-21 20:15:35 +02:00
parent 7902ae4c1f
commit 86c734785d
5 changed files with 6 additions and 12 deletions

View File

@@ -14,6 +14,7 @@ plugins {
id 'org.asciidoctor.convert' version '1.5.8'
id 'io.spring.nohttp' version '0.0.3.RELEASE'
id 'de.undercouch.download' version '4.0.0'
id "com.jfrog.artifactory" version '4.9.8' apply false
}
ext {

View File

@@ -1,4 +1,5 @@
apply plugin: "maven-publish"
apply plugin: 'com.jfrog.artifactory'
publishing {
publications {
@@ -37,4 +38,8 @@ publishing {
}
}
}
}
artifactoryPublish {
publications(publishing.publications.mavenJava)
}

View File

@@ -56,5 +56,3 @@ publishing {
}
}
}

View File

@@ -20,8 +20,3 @@ dependencies {
testCompile("org.hsqldb:hsqldb:${hsqldbVersion}")
testCompile("org.hibernate:hibernate-core:5.1.17.Final")
}
// Avoid publishing JAR to the artifact repository
if (pluginManager.hasPlugin("com.jfrog.artifactory")) {
artifactoryPublish.skip = true
}

View File

@@ -10,11 +10,6 @@ dependencies {
compile("org.jetbrains.kotlinx:kotlinx-coroutines-reactor")
}
// Avoid publishing JAR to the artifact repository
if (pluginManager.hasPlugin("com.jfrog.artifactory")) {
artifactoryPublish.skip = true
}
eclipse {
project {
buildCommand "org.jetbrains.kotlin.ui.kotlinBuilder"