Skip to content

Commit

Permalink
Now you have copyright check if and only if -Pskip-copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
Martijn Dirkse committed Oct 1, 2024
1 parent f44e77f commit 21cd65e
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,26 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.glassfish.copyright</groupId>
<artifactId>glassfish-copyright-maven-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>Check-CopyRight-Notice</id>
<goals>
<goal>copyright</goal><!-- Checks for Copyright notices -->
<goal>check</goal><!-- Fails the build -->
</goals>
<phase>process-sources</phase>
</execution>
</executions>
<configuration>
<excludeFile>${ibis.ladybug.rootdir}${file.separator}copyrightExcludeFile.txt</excludeFile>
<useDash>true</useDash>
<templateFile>${ibis.ladybug.rootdir}/copyrightTemplateFile.txt</templateFile>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
Expand Down Expand Up @@ -504,12 +524,6 @@
<profiles>
<profile>
<id>skip-copyright</id>
<activation>
<property>
<name>!maven.skip.copyright</name>
<value>!true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
Expand Down

0 comments on commit 21cd65e

Please sign in to comment.