Skip to content

Commit

Permalink
chore: Include License in Release JAR Files (#101)
Browse files Browse the repository at this point in the history
* Add license to JAR files

* Fix project root dir

* Formatting

---------

Co-authored-by: SAP Cloud SDK Bot <[email protected]>
  • Loading branch information
MatKuhr and bot-sdk-js authored Oct 17, 2024
1 parent 741e9ac commit f5d0795
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 2 deletions.
3 changes: 3 additions & 0 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
<organizationUrl>https://www.sap.com</organizationUrl>
</developer>
</developers>
<properties>
<project.rootdir>${project.basedir}/../</project.rootdir>
</properties>

<dependencies>
<!-- scope "compile" -->
Expand Down
4 changes: 3 additions & 1 deletion foundation-models/openai/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
<organizationUrl>https://www.sap.com</organizationUrl>
</developer>
</developers>

<properties>
<project.rootdir>${project.basedir}/../../</project.rootdir>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
Expand Down
3 changes: 3 additions & 0 deletions orchestration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
<organizationUrl>https://www.sap.com</organizationUrl>
</developer>
</developers>
<properties>
<project.rootdir>${project.basedir}/../</project.rootdir>
</properties>

<dependencies>
<!-- scope "compile" -->
Expand Down
18 changes: 18 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,19 @@
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>${project.basedir}/src/main/resources</directory>
</resource>
<!-- include LICENSE in all jar files -->
<resource>
<filtering>false</filtering>
<directory>${project.rootdir}</directory>
<includes>
<include>LICENSE</include>
</includes>
</resource>
</resources>
<pluginManagement>
<plugins>
<plugin>
Expand Down Expand Up @@ -449,6 +462,11 @@ https://gitbox.apache.org/repos/asf?p=maven-pmd-plugin.git;a=blob_plain;f=src/ma
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.3.1</version>
</plugin>
</plugins>
</build>
<profiles>
Expand Down
2 changes: 1 addition & 1 deletion sample-code/spring-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
<organizationUrl>https://www.sap.com</organizationUrl>
</developer>
</developers>

<properties>
<project.rootdir>${project.basedir}/../../</project.rootdir>
<spring-boot.version>3.3.4</spring-boot.version>
<logback.version>1.5.10</logback.version>
<cf-logging.version>3.8.4</cf-logging.version>
Expand Down

0 comments on commit f5d0795

Please sign in to comment.