make accepting license updates easier

This commit is contained in:
Jonathan Shook 2022-05-20 13:57:13 -05:00
parent 124c92256f
commit 0edd8b99be
2 changed files with 32 additions and 1 deletions

View File

@ -455,7 +455,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version> <version>3.9.0</version>
<configuration> <configuration>
<debug>true</debug> <debug>true</debug>
<target>17</target> <target>17</target>
@ -596,9 +596,32 @@
<exclude>**/generated/**</exclude> <exclude>**/generated/**</exclude>
</excludes> </excludes>
<addLicenseHeaders>true</addLicenseHeaders> <addLicenseHeaders>true</addLicenseHeaders>
<copyrightMessage>Copyright (c) 2022 nosqlbench</copyrightMessage>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0-M3</version>
<executions>
<execution>
<id>enforce-java</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireJavaVersion>
<version>[17,)</version>
</requireJavaVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins> </plugins>
<pluginManagement> <pluginManagement>

8
scripts/accept_licenses.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
find . -type f -name '*.java.new' | \
while read newname
do
original=${newname%%.new}
mv $newname $original
printf "moved %s to %s\n" "${newname}" "${original}"
done