Skip to content

Commit

Permalink
Merge branch 'main' into fix/improve-error-handling
Browse files Browse the repository at this point in the history
  • Loading branch information
takb authored Feb 19, 2024
2 parents b47ccb5 + 057625a commit 05f3e68
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 30 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
id: buildx
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
echo "HEALTH_WAIT_TIME=260" >> $GITHUB_ENV
fi
- name: Set up QEMU for ${{ matrix.platform }}
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
with:
platforms: ${{ matrix.platform }}
- name: Set up Docker Buildx
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/vulnerability-scanning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up QEMU for ${{ matrix.platform }}
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
with:
platforms: ${{ matrix.platform }}
- name: Set up Docker Buildx
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ COPY ors-engine /ors-core/ors-engine
COPY pom.xml /ors-core/pom.xml
COPY ors-report-aggregation /ors-core/ors-report-aggregation

# Build the project and ignore the report aggregation module as not needed for the API
RUN mvn package -DskipTests -pl '!ors-report-aggregation'
# Build the project and ignore the report aggregation module as not needed for the API build war
RUN mvn package -DskipTests -P buildWar

# build final image, just copying stuff inside
FROM amazoncorretto:17.0.7-alpine3.17 as publish
Expand Down
24 changes: 0 additions & 24 deletions ors-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,6 @@

<packaging>${packagingValue}</packaging>

<properties>
<!--
A default for packagingValue is needed, if profiles other than buildWar or buildFatJar are used, e.g. apitests.
The value is set/overridden in the profiles buildWar and buildFatJar, e.g.
mvn clean package -PbuildWar
-->
<packagingValue>jar</packagingValue>
</properties>

<build>
<finalName>ors</finalName>
<sourceDirectory>src/main/java</sourceDirectory>
Expand Down Expand Up @@ -290,21 +281,6 @@
</dependencies>

<profiles>
<profile>
<id>buildWar</id>
<properties>
<packagingValue>war</packagingValue>
</properties>
</profile>
<profile>
<id>buildFatJar</id>
<properties>
<packagingValue>jar</packagingValue>
</properties>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile>
<profile>
<id>apitests</id>
<build>
Expand Down
2 changes: 1 addition & 1 deletion ors-report-aggregation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<groupId>org.heigit.ors</groupId>
<artifactId>ors-api</artifactId>
<version>${project.version}</version>
<type>jar</type>
<type>${packagingValue}</type>
</dependency>
</dependencies>

Expand Down
24 changes: 24 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@
</modules>

<properties>
<!--
A default for packagingValue is needed, if profiles other than buildWar or buildFatJar are used, e.g. apitests.
The value is set/overridden in the profiles buildWar and buildFatJar, e.g.
mvn clean package -PbuildWar
-->
<packagingValue>jar</packagingValue>
<java.version>17</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
Expand Down Expand Up @@ -81,6 +87,24 @@
</repository>
</repositories>

<profiles>
<profile>
<id>buildWar</id>
<properties>
<packagingValue>war</packagingValue>
</properties>
</profile>
<profile>
<id>buildFatJar</id>
<properties>
<packagingValue>jar</packagingValue>
</properties>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile>
</profiles>

<dependencyManagement>
<dependencies>
<!-- As long as swagger-parser uses snakeyaml <2 it cannot be used. Too much vulnerabilities. -->
Expand Down

0 comments on commit 05f3e68

Please sign in to comment.