You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sj...@apache.org on 2024/10/05 08:24:05 UTC
(maven-archetype) branch ARCHETYPE-683 created (now 613ad6fb)
This is an automated email from the ASF dual-hosted git repository.
sjaranowski pushed a change to branch ARCHETYPE-683
in repository https://gitbox.apache.org/repos/asf/maven-archetype.git
at 613ad6fb [ARCHETYPE-683] Add groovy-json to classpath
This branch includes the following new commits:
new 613ad6fb [ARCHETYPE-683] Add groovy-json to classpath
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(maven-archetype) 01/01: [ARCHETYPE-683] Add groovy-json to classpath
Posted by sj...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
sjaranowski pushed a commit to branch ARCHETYPE-683
in repository https://gitbox.apache.org/repos/asf/maven-archetype.git
commit 613ad6fb0b7d4a86ef2e0e87460959a92f8b7fe2
Author: Slawomir Jaranowski <s....@gmail.com>
AuthorDate: Sat Oct 5 10:23:40 2024 +0200
[ARCHETYPE-683] Add groovy-json to classpath
---
archetype-common/pom.xml | 7 ++++++-
.../src/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 @@
<dependency>
<groupId>org.apache.groovy</groupId>
<artifactId>groovy</artifactId>
- <version>4.0.23</version>
+ </dependency>
+ <!-- additional groovy modules -->
+ <dependency>
+ <groupId>org.apache.groovy</groupId>
+ <artifactId>groovy-json</artifactId>
+ <scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.ivy</groupId>
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 @@
<dependencyManagement>
<dependencies>
+ <dependency>
+ <groupId>org.apache.groovy</groupId>
+ <artifactId>groovy-bom</artifactId>
+ <version>4.0.23</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-compat</artifactId>