Commit ecf99dd6 by Johannes Edmeier

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

parent c2514ec9
......@@ -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>
......
......@@ -69,6 +69,7 @@
<configuration>
<updatePomFile>true</updatePomFile>
<flattenMode>oss</flattenMode>
<embedBuildProfileDependencies>true</embedBuildProfileDependencies>
<pomElements>
<parent>expand</parent>
<distributionManagement>remove</distributionManagement>
......
......@@ -42,11 +42,6 @@
</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>
<version>${revision}</version>
</dependency>
......@@ -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>
......@@ -34,11 +34,26 @@
</dependency>
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-server-cloud</artifactId>
<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-ui</artifactId>
<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>
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