Commit ecf99dd6 by Johannes Edmeier

Exclude sba-server-cloud from bom and starter when cloud is excluded

parent c2514ec9
...@@ -168,6 +168,11 @@ ...@@ -168,6 +168,11 @@
<configuration> <configuration>
<updatePomFile>true</updatePomFile> <updatePomFile>true</updatePomFile>
<flattenMode>oss</flattenMode> <flattenMode>oss</flattenMode>
<embedBuildProfileDependencies>true</embedBuildProfileDependencies>
<pomElements>
<distributionManagement>remove</distributionManagement>
<repositories>remove</repositories>
</pomElements>
</configuration> </configuration>
<executions> <executions>
<execution> <execution>
......
...@@ -69,6 +69,7 @@ ...@@ -69,6 +69,7 @@
<configuration> <configuration>
<updatePomFile>true</updatePomFile> <updatePomFile>true</updatePomFile>
<flattenMode>oss</flattenMode> <flattenMode>oss</flattenMode>
<embedBuildProfileDependencies>true</embedBuildProfileDependencies>
<pomElements> <pomElements>
<parent>expand</parent> <parent>expand</parent>
<distributionManagement>remove</distributionManagement> <distributionManagement>remove</distributionManagement>
......
...@@ -42,11 +42,6 @@ ...@@ -42,11 +42,6 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>de.codecentric</groupId> <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> <artifactId>spring-boot-admin-client</artifactId>
<version>${revision}</version> <version>${revision}</version>
</dependency> </dependency>
...@@ -90,4 +85,23 @@ ...@@ -90,4 +85,23 @@
</plugin> </plugin>
</plugins> </plugins>
</build> </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> </project>
...@@ -34,11 +34,26 @@ ...@@ -34,11 +34,26 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>de.codecentric</groupId> <groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-server-cloud</artifactId>
</dependency>
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-server-ui</artifactId> <artifactId>spring-boot-admin-server-ui</artifactId>
</dependency> </dependency>
</dependencies> </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> </project>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment