cc.gasches.archetypes:micronaut-archetypes

Micronaut service app archetype

License

License

Categories

Categories

Micronaut Container Microservices
GroupId

GroupId

cc.gasches.archetypes
ArtifactId

ArtifactId

micronaut-archetypes
Last Version

Last Version

1.1.0.M2-1
Release Date

Release Date

Type

Type

pom
Description

Description

cc.gasches.archetypes:micronaut-archetypes
Micronaut service app archetype
Project URL

Project URL

https://github.com/gasches/micronaut-archetypes
Source Code Management

Source Code Management

https://github.com/gasches/micronaut-archetypes

Download micronaut-archetypes

How to add to project

<!-- https://jarcasting.com/artifacts/cc.gasches.archetypes/micronaut-archetypes/ -->
<dependency>
    <groupId>cc.gasches.archetypes</groupId>
    <artifactId>micronaut-archetypes</artifactId>
    <version>1.1.0.M2-1</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/cc.gasches.archetypes/micronaut-archetypes/
implementation 'cc.gasches.archetypes:micronaut-archetypes:1.1.0.M2-1'
// https://jarcasting.com/artifacts/cc.gasches.archetypes/micronaut-archetypes/
implementation ("cc.gasches.archetypes:micronaut-archetypes:1.1.0.M2-1")
'cc.gasches.archetypes:micronaut-archetypes:pom:1.1.0.M2-1'
<dependency org="cc.gasches.archetypes" name="micronaut-archetypes" rev="1.1.0.M2-1">
  <artifact name="micronaut-archetypes" type="pom" />
</dependency>
@Grapes(
@Grab(group='cc.gasches.archetypes', module='micronaut-archetypes', version='1.1.0.M2-1')
)
libraryDependencies += "cc.gasches.archetypes" % "micronaut-archetypes" % "1.1.0.M2-1"
[cc.gasches.archetypes/micronaut-archetypes "1.1.0.M2-1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • micronaut-java-service
  • micronaut-java-cli
  • micronaut-java-function-aws
  • micronaut-kotlin-service
  • micronaut-kotlin-cli
  • micronaut-groovy-service
  • micronaut-groovy-cli

Micronaut Maven Archetypes

Summary

Maven Archetypes For Micronaut Framework.

To see available archetypes and pick one to instantiate:

mvn archetype:generate -Dfilter=cc.gasches.archetypes:micronaut

Prerequisites

  • JDK 8 (or higher)
  • Maven 3

Create Service

Java:

mvn archetype:generate \
    -DinteractiveMode=false \
    -DarchetypeGroupId=cc.gasches.archetypes \
    -DarchetypeArtifactId=micronaut-java-service \
    -DarchetypeVersion=1.1.0.M2-1 \
    -DgroupId=com.example \
    -DartifactId=micronaut-example \
    -Dpackage=com.example.micronaut \
    -DbuildTool=maven

Note: Available buildTool options: gradle, maven (default). This property is used only for Dockerfile conditional templating.

Kotlin:

mvn archetype:generate \
    -DinteractiveMode=false \
    -DarchetypeGroupId=cc.gasches.archetypes \
    -DarchetypeArtifactId=micronaut-kotlin-service \
    -DarchetypeVersion=1.1.0.M2-1 \
    -DgroupId=com.example \
    -DartifactId=micronaut-example \
    -Dpackage=com.example.micronaut \
    -DbuildTool=maven

Groovy:

mvn archetype:generate \
    -DinteractiveMode=false \
    -DarchetypeGroupId=cc.gasches.archetypes \
    -DarchetypeArtifactId=micronaut-groovy-service \
    -DarchetypeVersion=1.1.0.M2-1 \
    -DgroupId=com.example \
    -DartifactId=micronaut-example \
    -Dpackage=com.example.micronaut \
    -DbuildTool=maven

Create CLI Application

Java:

mvn archetype:generate \
    -DinteractiveMode=false \
    -DarchetypeGroupId=cc.gasches.archetypes \
    -DarchetypeArtifactId=micronaut-java-cli \
    -DarchetypeVersion=1.1.0.M2-1 \
    -DgroupId=com.example \
    -DartifactId=micronaut-example \
    -Dpackage=com.example.micronaut

Kotlin:

mvn archetype:generate \
    -DinteractiveMode=false \
    -DarchetypeGroupId=cc.gasches.archetypes \
    -DarchetypeArtifactId=micronaut-kotlin-cli \
    -DarchetypeVersion=1.1.0.M2-1 \
    -DgroupId=com.example \
    -DartifactId=micronaut-example \
    -Dpackage=com.example.micronaut

Groovy:

mvn archetype:generate \
    -DinteractiveMode=false \
    -DarchetypeGroupId=cc.gasches.archetypes \
    -DarchetypeArtifactId=micronaut-groovy-cli \
    -DarchetypeVersion=1.1.0.M2-1 \
    -DgroupId=com.example \
    -DartifactId=micronaut-example \
    -Dpackage=com.example.micronaut

Create AWS Function

Java:

mvn archetype:generate \
    -DinteractiveMode=false \
    -DarchetypeGroupId=cc.gasches.archetypes \
    -DarchetypeArtifactId=micronaut-java-function-aws \
    -DarchetypeVersion=1.1.0.M2-1 \
    -DgroupId=com.example \
    -DartifactId=micronaut-example \
    -Dpackage=com.example.micronaut

Run Created Application

Maven:

./mvnw package exec:exec

Gradle:

./gradlew run

Versions

Version
1.1.0.M2-1
1.1.0.M2