From 5af66afb02f5bf23d281dde583bd3c94ae97e194 Mon Sep 17 00:00:00 2001 From: Jesse Coultas Date: Fri, 8 Apr 2022 16:57:46 -0500 Subject: [PATCH 1/2] Update moveFiles to use *.jar so that all jars in the target are moved. --- .../java/gr/gousiosg/javacg/stat/support/RepoTool.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main/java/gr/gousiosg/javacg/stat/support/RepoTool.java b/src/main/java/gr/gousiosg/javacg/stat/support/RepoTool.java index 652e1785..0ada4a12 100644 --- a/src/main/java/gr/gousiosg/javacg/stat/support/RepoTool.java +++ b/src/main/java/gr/gousiosg/javacg/stat/support/RepoTool.java @@ -152,13 +152,7 @@ public static Optional obtainTool(String folderName){ private void moveJars() throws IOException { Path sourceDir = Paths.get(System.getProperty("user.dir"), getProjectDir(), "target"); Path targetDir = Paths.get(System.getProperty("user.dir"), "artifacts", "output"); - - // @todo may want to be able to override this in the yaml file on a project basis... - String depGlob = this.name + "*-with-dependencies.jar"; - String testGlob = this.name + "*-tests.jar"; - - moveFiles(sourceDir, targetDir, depGlob); - moveFiles(sourceDir, targetDir, testGlob); + moveFiles(sourceDir, targetDir, "*.jar"); } private void moveFiles(Path sourceDir, Path targetDir, String glob) throws IOException { From 92c79fc36bf5ec17648f9a15ef19613e3fdd4467 Mon Sep 17 00:00:00 2001 From: Jesse Coultas Date: Fri, 8 Apr 2022 17:43:00 -0500 Subject: [PATCH 2/2] Fixed patch file --- artifacts/configs/mph-table/mph-table.patch | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/artifacts/configs/mph-table/mph-table.patch b/artifacts/configs/mph-table/mph-table.patch index b004344a..a4a7dc76 100644 --- a/artifacts/configs/mph-table/mph-table.patch +++ b/artifacts/configs/mph-table/mph-table.patch @@ -28,27 +28,6 @@ index 65f0f80..508b290 100644 + + + org.apache.maven.plugins -+ maven-assembly-plugin -+ 3.3.0 -+ -+ -+ -+ jar-with-dependencies -+ -+ -+ -+ -+ -+ make-assembly -+ package -+ -+ single -+ -+ -+ -+ -+ -+ org.apache.maven.plugins + maven-jar-plugin + 3.2.0 +