From 1e1bfc5f1594833be2173d0d40fc5a157cac8616 Mon Sep 17 00:00:00 2001 From: miozune Date: Mon, 15 May 2023 14:41:15 +0900 Subject: [PATCH 1/2] Allow arbitrary classifier for dependency update --- .../retrofuturagradle/modutils/UpdateDependenciesTask.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/src/main/java/com/gtnewhorizons/retrofuturagradle/modutils/UpdateDependenciesTask.java b/plugin/src/main/java/com/gtnewhorizons/retrofuturagradle/modutils/UpdateDependenciesTask.java index 709b47c0..483b3a88 100644 --- a/plugin/src/main/java/com/gtnewhorizons/retrofuturagradle/modutils/UpdateDependenciesTask.java +++ b/plugin/src/main/java/com/gtnewhorizons/retrofuturagradle/modutils/UpdateDependenciesTask.java @@ -25,7 +25,7 @@ public class UpdateDependenciesTask extends DefaultTask { - private static final Pattern GTNH_DEPENDENCY = Pattern.compile("com\\.github\\.GTNewHorizons:(.+):(.+):dev"); + private static final Pattern GTNH_DEPENDENCY = Pattern.compile("com\\.github\\.GTNewHorizons:(.+):(.+):.+"); @Inject public UpdateDependenciesTask() { From 1d2d610484f84411d509f87858baa11e7ba24065 Mon Sep 17 00:00:00 2001 From: miozune Date: Mon, 15 May 2023 16:33:26 +0900 Subject: [PATCH 2/2] Allow not having classifier --- .../retrofuturagradle/modutils/UpdateDependenciesTask.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/src/main/java/com/gtnewhorizons/retrofuturagradle/modutils/UpdateDependenciesTask.java b/plugin/src/main/java/com/gtnewhorizons/retrofuturagradle/modutils/UpdateDependenciesTask.java index 483b3a88..9ddf3a16 100644 --- a/plugin/src/main/java/com/gtnewhorizons/retrofuturagradle/modutils/UpdateDependenciesTask.java +++ b/plugin/src/main/java/com/gtnewhorizons/retrofuturagradle/modutils/UpdateDependenciesTask.java @@ -25,7 +25,8 @@ public class UpdateDependenciesTask extends DefaultTask { - private static final Pattern GTNH_DEPENDENCY = Pattern.compile("com\\.github\\.GTNewHorizons:(.+):(.+):.+"); + private static final Pattern GTNH_DEPENDENCY = Pattern + .compile("com\\.github\\.GTNewHorizons:([^:]+):([^:'\"]+)(:[^:'\"]+)?"); @Inject public UpdateDependenciesTask() {