io.github.gasches.archetypes:micronaut-service

Micronaut service app archetype

License

License

Categories

Categories

Micronaut Container Microservices
GroupId

GroupId

io.github.gasches.archetypes
ArtifactId

ArtifactId

micronaut-service
Last Version

Last Version

1.0.4
Release Date

Release Date

Type

Type

jar
Description

Description

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

Project URL

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

Source Code Management

https://github.com/gasches/micronaut-service-archetype

Download micronaut-service

How to add to project

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

Dependencies

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

Project Modules

There are no modules declared in this project.

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.0.4