Skip to content

Commit

Permalink
Exclude sba-server-cloud from bom and starter when cloud is excluded
Browse files Browse the repository at this point in the history
  • Loading branch information
joshiste committed May 16, 2018
1 parent c2514ec commit ecf99dd
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 9 deletions.
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@
<configuration>
<updatePomFile>true</updatePomFile>
<flattenMode>oss</flattenMode>
<embedBuildProfileDependencies>true</embedBuildProfileDependencies>
<pomElements>
<distributionManagement>remove</distributionManagement>
<repositories>remove</repositories>
</pomElements>
</configuration>
<executions>
<execution>
Expand Down
1 change: 1 addition & 0 deletions spring-boot-admin-build/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
<configuration>
<updatePomFile>true</updatePomFile>
<flattenMode>oss</flattenMode>
<embedBuildProfileDependencies>true</embedBuildProfileDependencies>
<pomElements>
<parent>expand</parent>
<distributionManagement>remove</distributionManagement>
Expand Down
24 changes: 19 additions & 5 deletions spring-boot-admin-dependencies/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@
<artifactId>spring-boot-admin-server-ui</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-server-cloud</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-client</artifactId>
Expand Down Expand Up @@ -90,4 +85,23 @@
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>include-cloud</id>
<activation>
<property>
<name>!excludeSpringCloud</name>
</property>
</activation>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-server-cloud</artifactId>
<version>${revision}</version>
</dependency>
</dependencies>
</dependencyManagement>
</profile>
</profiles>
</project>
23 changes: 19 additions & 4 deletions spring-boot-admin-starter-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,28 @@
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-server</artifactId>
</dependency>
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-server-cloud</artifactId>
</dependency>
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-server-ui</artifactId>
</dependency>
</dependencies>
<profiles>
<profile>
<id>include-cloud</id>
<activation>
<property>
<name>!excludeSpringCloud</name>
</property>
</activation>
<dependencies>
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-server-cloud</artifactId>
<!--fix for https://github.com/mojohaus/flatten-maven-plugin/issues/70 -->
<version>${revision}</version>
<scope>compile</scope>
</dependency>
</dependencies>
</profile>
</profiles>
</project>

0 comments on commit ecf99dd

Please sign in to comment.