diff --git a/.drone.yml b/.drone.yml index 9ef64de..bc26d63 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,7 +4,7 @@ name: default steps: - name: test - image: maven:3-openjdk-18 + image: maven:3-openjdk-17 commands: - mvn -B -DskipTests clean package - mvn test -B @@ -23,7 +23,7 @@ steps: path: /builds - name: emerge-legacy-artifact - image: maven:3-jdk-11 + image: maven:3-openjdk-17 commands: - . ./.make_legacy - mvn -B -DskipTests clean package diff --git a/.make_legacy b/.make_legacy index f0f75ee..e907c26 100644 --- a/.make_legacy +++ b/.make_legacy @@ -1,3 +1,4 @@ sed -z -i -e 's/org.usb4java<\/groupId>\n\s*usb4java<\/artifactId>\s*1.3.0<\/version>/org.usb4java<\/groupId>\nusb4java<\/artifactId>\n1.2.0<\/version>/g' pom.xml sed -z -i -e 's/${project.artifactId}-${project.version}-${maven.build.timestamp}<\/finalName>/${project.artifactId}-${project.version}-legacy-${maven.build.timestamp}<\/finalName>/g' pom.xml sed -z -i -e 's/target\/NS-USBloader-${project.version}-${maven.build.timestamp}.exe<\/outfile>/target\/NS-USBloader-${project.version}-legacy-${maven.build.timestamp}.exe<\/outfile>/g' pom.xml +sed -z -i -e 's/target\/${project.artifactId}-${project.version}-${maven.build.timestamp}.jar<\/jar>/target\/${project.artifactId}-${project.version}-legacy-${maven.build.timestamp}.jar<\/jar>/g' pom.xml