Skip to content

Commit

Permalink
Merge pull request #484 from catenax-ng/feature/CXRM-1835-include-fos…
Browse files Browse the repository at this point in the history
…s-files-in-executable-jar

feat(impl):[CXRM-1835] include foss files in jar
  • Loading branch information
mkanal authored Aug 21, 2023
2 parents efcac7c + 5db5bf5 commit 8bdc933
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ WORKDIR /app

COPY --chmod=755 --from=maven /build/irs-api/target/irs-api-*-exec.jar app.jar

COPY LICENSE LICENSE
COPY NOTICE.md NOTICE.md
COPY DEPENDENCIES DEPENDENCIES

USER ${UID}:${GID}

ENTRYPOINT ["java", "-Djava.util.logging.config.file=./logging.properties", "-jar", "app.jar"]
Expand Down
14 changes: 14 additions & 0 deletions irs-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,20 @@
</dependencies>

<build>
<resources>
<resource>
<directory>${project.basedir}/src/main/resources</directory>
</resource>
<resource>
<directory>${project.basedir}/..</directory>
<includes>
<include>LICENSE</include>
<include>NOTICE.md</include>
<include>DEPENDENCIES</include>
</includes>
<targetPath>META-INF/</targetPath>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
Expand Down

0 comments on commit 8bdc933

Please sign in to comment.