From 613ad6fb0b7d4a86ef2e0e87460959a92f8b7fe2 Mon Sep 17 00:00:00 2001 From: Slawomir Jaranowski Date: Sat, 5 Oct 2024 10:23:40 +0200 Subject: [PATCH] [ARCHETYPE-683] Add groovy-json to classpath --- archetype-common/pom.xml | 7 ++++++- .../main/resources/META-INF/archetype-post-generate.groovy | 2 ++ pom.xml | 7 +++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/archetype-common/pom.xml b/archetype-common/pom.xml index b3e84279..22966a5d 100644 --- a/archetype-common/pom.xml +++ b/archetype-common/pom.xml @@ -50,7 +50,12 @@ org.apache.groovy groovy - 4.0.23 + + + + org.apache.groovy + groovy-json + runtime org.apache.ivy diff --git a/maven-archetype-plugin/src/it/projects/ARCHETYPE-565_groovy-json/archetype/src/main/resources/META-INF/archetype-post-generate.groovy b/maven-archetype-plugin/src/it/projects/ARCHETYPE-565_groovy-json/archetype/src/main/resources/META-INF/archetype-post-generate.groovy index fdabd927..41b6e7b7 100644 --- a/maven-archetype-plugin/src/it/projects/ARCHETYPE-565_groovy-json/archetype/src/main/resources/META-INF/archetype-post-generate.groovy +++ b/maven-archetype-plugin/src/it/projects/ARCHETYPE-565_groovy-json/archetype/src/main/resources/META-INF/archetype-post-generate.groovy @@ -18,6 +18,8 @@ */ import java.nio.file.Files import java.nio.file.Paths +import groovy.json.JsonException // Should error on this line if test fails. + def p = Paths.get(request.getOutputDirectory(), request.getArtifactId(), 'test.txt') Files.createFile(p) diff --git a/pom.xml b/pom.xml index 2a66d3e0..daf95e7a 100644 --- a/pom.xml +++ b/pom.xml @@ -83,6 +83,13 @@ + + org.apache.groovy + groovy-bom + 4.0.23 + pom + import + org.apache.maven maven-compat