Skip to content

Commit 9a89039

Browse files
committed
Provide a marker artifact for Boot's Gradle plugin
Closes spring-projectsgh-18514
1 parent 61a914f commit 9a89039

File tree

6 files changed

+49
-28
lines changed

6 files changed

+49
-28
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
<parent>
6+
<groupId>org.springframework.boot</groupId>
7+
<artifactId>spring-boot-tools</artifactId>
8+
<version>${revision}</version>
9+
</parent>
10+
<artifactId>org.springframework.boot.gradle.plugin</artifactId>
11+
<packaging>pom</packaging>
12+
<name>Spring Boot Gradle Plugin Marker Artifact</name>
13+
<description>Spring Boot Gradle Plugin Marker Artifact</description>
14+
<properties>
15+
<main.basedir>${basedir}/../../..</main.basedir>
16+
</properties>
17+
<scm>
18+
<url>${git.url}</url>
19+
<connection>${git.connection}</connection>
20+
<developerConnection>${git.developerConnection}</developerConnection>
21+
</scm>
22+
<dependencies>
23+
<dependency>
24+
<groupId>org.springframework.boot</groupId>
25+
<artifactId>spring-boot-gradle-plugin</artifactId>
26+
<version>${project.version}</version>
27+
</dependency>
28+
</dependencies>
29+
<build>
30+
<plugins>
31+
<plugin>
32+
<groupId>org.codehaus.mojo</groupId>
33+
<artifactId>build-helper-maven-plugin</artifactId>
34+
<executions>
35+
<execution>
36+
<id>regex-property</id>
37+
<goals>
38+
<goal>regex-property</goal>
39+
</goals>
40+
<configuration>
41+
<failIfNoMatch>false</failIfNoMatch>
42+
</configuration>
43+
</execution>
44+
</executions>
45+
</plugin>
46+
</plugins>
47+
</build>
48+
</project>

spring-boot-project/spring-boot-tools/pom.xml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
<developerConnection>${git.developerConnection}</developerConnection>
2121
</scm>
2222
<modules>
23+
<module>org.springframework.boot.gradle.plugin</module>
2324
<module>spring-boot-antlib</module>
2425
<module>spring-boot-autoconfigure-processor</module>
2526
<module>spring-boot-configuration-docs</module>

spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/gradle/getting-started/milestone-settings.gradle

-7
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,4 @@ pluginManagement {
33
maven { url 'https://repo.spring.io/milestone' }
44
gradlePluginPortal()
55
}
6-
resolutionStrategy {
7-
eachPlugin {
8-
if (requested.id.id == 'org.springframework.boot') {
9-
useModule "org.springframework.boot:spring-boot-gradle-plugin:${requested.version}"
10-
}
11-
}
12-
}
136
}

spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/gradle/getting-started/milestone-settings.gradle.kts

-7
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,4 @@ pluginManagement {
33
maven { url = uri("https://repo.spring.io/milestone") }
44
gradlePluginPortal()
55
}
6-
resolutionStrategy {
7-
eachPlugin {
8-
if (requested.id.id == "org.springframework.boot") {
9-
useModule("org.springframework.boot:spring-boot-gradle-plugin:${requested.version}")
10-
}
11-
}
12-
}
136
}

spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/gradle/getting-started/snapshot-settings.gradle

-7
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,4 @@ pluginManagement {
44
maven { url 'https://repo.spring.io/snapshot' }
55
gradlePluginPortal()
66
}
7-
resolutionStrategy {
8-
eachPlugin {
9-
if (requested.id.id == 'org.springframework.boot') {
10-
useModule "org.springframework.boot:spring-boot-gradle-plugin:${requested.version}"
11-
}
12-
}
13-
}
147
}

spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/gradle/getting-started/snapshot-settings.gradle.kts

-7
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,4 @@ pluginManagement {
44
maven { url = uri("https://repo.spring.io/snapshot") }
55
gradlePluginPortal()
66
}
7-
resolutionStrategy {
8-
eachPlugin {
9-
if (requested.id.id == "org.springframework.boot") {
10-
useModule("org.springframework.boot:spring-boot-gradle-plugin:${requested.version}")
11-
}
12-
}
13-
}
147
}

0 commit comments

Comments
 (0)