Skip to content

Commit

Permalink
Fix the build for the Apple M1 CPU (#1865)
Browse files Browse the repository at this point in the history
* fix dependencies for Apple M1.

* Define node and npm versions in parent pom

Co-authored-by: Stephan Köninger <stephan.koeninger@codecentric.de>
  • Loading branch information
andreasfritz and SteKoe committed Nov 26, 2021
1 parent 0670a25 commit 38a73b9
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 11 deletions.
3 changes: 3 additions & 0 deletions pom.xml
Expand Up @@ -42,6 +42,7 @@
<findbugs-jsr305.version>3.0.2</findbugs-jsr305.version>
<awaitility.version>4.1.0</awaitility.version>
<testcontainers.version>1.16.0</testcontainers.version>
<jetty.version>9.4.44.v20210927</jetty.version>

<!-- plugin versions -->
<build-helper-maven-plugin.version>3.2.0</build-helper-maven-plugin.version>
Expand Down Expand Up @@ -69,6 +70,8 @@
<checkstyle.version>9.0</checkstyle.version>
<spring-javaformat-checkstyle.version>0.0.28</spring-javaformat-checkstyle.version>
<nexus-staging-maven-plugin.version>1.6.8</nexus-staging-maven-plugin.version>
<node.version>v15.14.0</node.version>
<npm.version>7.20.3</npm.version>
</properties>
<modules>
<module>spring-boot-admin-server</module>
Expand Down
5 changes: 5 additions & 0 deletions spring-boot-admin-build/pom.xml
Expand Up @@ -42,6 +42,11 @@
<artifactId>wiremock-jre8-standalone</artifactId>
<version>${wiremock.version}</version>
</dependency>
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock-jre8</artifactId>
<version>${wiremock.version}</version>
</dependency>
<dependency>
<groupId>com.hazelcast</groupId>
<artifactId>hazelcast</artifactId>
Expand Down
Expand Up @@ -41,8 +41,8 @@
<goal>install-node-and-npm</goal>
</goals>
<configuration>
<nodeVersion>v15.6.0</nodeVersion>
<npmVersion>7.4.0</npmVersion>
<nodeVersion>${node.version}</nodeVersion>
<npmVersion>${npm.version}</npmVersion>
</configuration>
</execution>
<execution>
Expand Down
Expand Up @@ -53,7 +53,6 @@ spring:
---
# see readme of spring-boot-admin-server-ui
spring:
profiles: dev
boot:
admin:
ui:
Expand All @@ -63,6 +62,9 @@ spring:
resource-locations: file:../../spring-boot-admin-server-ui/target/dist/
cache-templates: false
extension-resource-locations: file:../spring-boot-admin-sample-custom-ui/target/dist/
config:
activate:
on-profile: dev

---

Expand All @@ -78,13 +80,17 @@ spring:

---
spring:
profiles: insecure
config:
activate:
on-profile: insecure

info.tags.security: insecure

---
spring:
profiles: secure
config:
activate:
on-profile: secure
security:
user:
name: "user"
Expand Down
2 changes: 0 additions & 2 deletions spring-boot-admin-server-ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions spring-boot-admin-server-ui/pom.xml
Expand Up @@ -80,8 +80,8 @@
<goal>install-node-and-npm</goal>
</goals>
<configuration>
<nodeVersion>v15.14.0</nodeVersion>
<npmVersion>7.20.3</npmVersion>
<nodeVersion>${node.version}</nodeVersion>
<npmVersion>${npm.version}</npmVersion>
</configuration>
</execution>
<execution>
Expand Down
14 changes: 13 additions & 1 deletion spring-boot-admin-server/pom.xml
Expand Up @@ -129,7 +129,19 @@
</dependency>
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock-jre8-standalone</artifactId>
<artifactId>wiremock-jre8</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-alpn-server</artifactId>
<version>${jetty.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-alpn-openjdk8-server</artifactId>
<version>${jetty.version}</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Expand Up @@ -21,13 +21,13 @@
import com.github.tomakehurst.wiremock.WireMockServer;
import com.github.tomakehurst.wiremock.core.Options;
import com.github.tomakehurst.wiremock.http.Fault;
import org.eclipse.jetty.http.HttpStatus;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import reactor.test.StepVerifier;
import wiremock.org.eclipse.jetty.http.HttpStatus;

import de.codecentric.boot.admin.server.domain.entities.Instance;
import de.codecentric.boot.admin.server.domain.values.Endpoints;
Expand Down

0 comments on commit 38a73b9

Please sign in to comment.