Skip to content

Commit

Permalink
[ARCHETYPE-679] Add additional modules for groovy
Browse files Browse the repository at this point in the history
- groovy-templates
- groovy-xml
- groovy-yaml
  • Loading branch information
slawekjaranowski committed Oct 5, 2024
1 parent e0701d2 commit 1f870f7
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 5 deletions.
16 changes: 16 additions & 0 deletions archetype-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,22 @@
<artifactId>groovy-json</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.groovy</groupId>
<artifactId>groovy-templates</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.groovy</groupId>
<artifactId>groovy-xml</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.groovy</groupId>
<artifactId>groovy-yaml</artifactId>
<scope>runtime</scope>
</dependency>
<!-- /additional groovy modules -->
<dependency>
<groupId>org.apache.ivy</groupId>
<artifactId>ivy</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ under the License.

<parent>
<groupId>org.apache.maven.plugins.archetype.its</groupId>
<artifactId>archetype565-parent</artifactId>
<artifactId>archetype679-parent</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>archetype565-archetype</artifactId>
<artifactId>archetype679-archetype</artifactId>
<packaging>maven-archetype</packaging>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@
*/
import java.nio.file.Files
import java.nio.file.Paths
import groovy.json.JsonException // Should error on this line if test fails.

// imports for groovy additional modules should not fail test

import groovy.json.JsonSlurper
import groovy.text.SimpleTemplateEngine
import groovy.xml.XmlSlurper
import groovy.yaml.YamlSlurper


def p = Paths.get(request.getOutputDirectory(), request.getArtifactId(), 'test.txt')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ under the License.
<modelVersion>4.0.0</modelVersion>

<groupId>org.apache.maven.plugins.archetype.its</groupId>
<artifactId>archetype565-parent</artifactId>
<artifactId>archetype679-parent</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# under the License.

archetypeGroupId=org.apache.maven.plugins.archetype.its
archetypeArtifactId=archetype565-archetype
archetypeArtifactId=archetype679-archetype
archetypeVersion=1.0-SNAPSHOT

groupId=com.company
Expand Down

0 comments on commit 1f870f7

Please sign in to comment.