From 0edd8b99be3138523df149dd5367f287cbd3976d Mon Sep 17 00:00:00 2001 From: Jonathan Shook Date: Fri, 20 May 2022 13:57:13 -0500 Subject: [PATCH] make accepting license updates easier --- mvn-defaults/pom.xml | 25 ++++++++++++++++++++++++- scripts/accept_licenses.sh | 8 ++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100755 scripts/accept_licenses.sh diff --git a/mvn-defaults/pom.xml b/mvn-defaults/pom.xml index 2c99682a0..c28108ef0 100644 --- a/mvn-defaults/pom.xml +++ b/mvn-defaults/pom.xml @@ -455,7 +455,7 @@ org.apache.maven.plugins maven-compiler-plugin - 3.8.1 + 3.9.0 true 17 @@ -596,9 +596,32 @@ **/generated/** true + Copyright (c) 2022 nosqlbench + + org.apache.maven.plugins + maven-enforcer-plugin + 3.0.0-M3 + + + enforce-java + + enforce + + + + + [17,) + + + + + + + + diff --git a/scripts/accept_licenses.sh b/scripts/accept_licenses.sh new file mode 100755 index 000000000..2800227b9 --- /dev/null +++ b/scripts/accept_licenses.sh @@ -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