Skip to content

Commit e83cf08

Browse files
committed
Merge branch '2.7.x'
2 parents f51310e + cbd1c66 commit e83cf08

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

buildSrc/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ dependencies {
6666
implementation 'io.spring.nohttp:nohttp-gradle:0.0.9'
6767
implementation 'net.sourceforge.htmlunit:htmlunit:2.37.0'
6868
implementation 'org.hidetake:gradle-ssh-plugin:2.10.1'
69-
implementation 'org.jfrog.buildinfo:build-info-extractor-gradle:4.24.20'
69+
implementation 'org.jfrog.buildinfo:build-info-extractor-gradle:4.29.0'
7070
implementation 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.7.1'
7171

7272
testImplementation platform('org.junit:junit-bom:5.8.1')

buildSrc/src/main/groovy/io/spring/gradle/convention/ArtifactoryPlugin.groovy

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package io.spring.gradle.convention
1818

1919
import org.gradle.api.Plugin
2020
import org.gradle.api.Project
21+
import org.gradle.api.publish.maven.plugins.MavenPublishPlugin
2122

2223
class ArtifactoryPlugin implements Plugin<Project> {
2324

@@ -37,8 +38,14 @@ class ArtifactoryPlugin implements Plugin<Project> {
3738
password = artifactoryPassword
3839
}
3940
}
40-
defaults {
41-
publications('mavenJava')
41+
}
42+
}
43+
project.plugins.withType(MavenPublishPlugin) {
44+
project.artifactory {
45+
publish {
46+
defaults {
47+
publications('mavenJava')
48+
}
4249
}
4350
}
4451
}

buildSrc/src/main/groovy/io/spring/gradle/convention/RootProjectPlugin.groovy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class RootProjectPlugin implements Plugin<Project> {
3232
pluginManager.apply(SchemaPlugin)
3333
pluginManager.apply(NoHttpPlugin)
3434
pluginManager.apply(SpringNexusPublishPlugin)
35+
pluginManager.apply(ArtifactoryPlugin)
3536
pluginManager.apply("org.sonarqube")
3637

3738
project.repositories.mavenCentral()

0 commit comments

Comments
 (0)