Skip to content

Commit

Permalink
Merge pull request #2016 from usethesource/feat/better-shade-config
Browse files Browse the repository at this point in the history
Improved the licenses generated into our shaded jar
  • Loading branch information
jurgenvinju authored Aug 27, 2024
2 parents c56a6fd + 354e452 commit 0a7dcdb
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@
<rascal-maven.version>0.28.1</rascal-maven.version>
</properties>

<licenses>
<license>
<name>BSD-2-Clause</name>
<url>https://opensource.org/license/BSD-2-Clause</url>
<distribution>repo</distribution>
<!-- we cannot define multiple licenses in this maven block, as it would mean the user can choose either of the licenses -->
<comments>Note, some older files are still licensed under Eclipse v1</comments>
</license>
</licenses>


<build>
<sourceDirectory>src</sourceDirectory>
Expand All @@ -55,6 +65,9 @@
<include>rascal-DEPENDENCIES.txt</include>
</includes>
</resource>
<resource>
<directory>${project.build.directory}/generated-resources</directory>
</resource>
</resources>
<testSourceDirectory>test</testSourceDirectory>
<testResources>
Expand Down Expand Up @@ -268,6 +281,19 @@
<arguments>-Drascal.compile.skip -Drascal.tutor.skip -DskipTests</arguments>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>2.4.0</version>
<executions>
<execution>
<id>download-licenses</id>
<goals>
<goal>download-licenses</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
Expand All @@ -292,6 +318,11 @@
<resource>org/rascalmpl/uri/resolvers.config</resource>
<resource>io/usethesource/vallang/type/types.config </resource>
</transformer>
<transformer implementation="org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformer">
</transformer>
<transformer implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer">
<addHeader>false</addHeader>
</transformer>
</transformers>
<relocations>
<relocation>
Expand Down

0 comments on commit 0a7dcdb

Please sign in to comment.