manedev79 / archetype-java-junit

Maven archetype with recent java version, JUnit5, assertj and git repository in place.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

archetype-java-junit

Build Status

Maven archetype with recent java version, JUnit5, assertj and git repository in place.

Includes:

  • Java version of your choice, e.g. 21
  • JUnit5
  • assertj

A git repo will be initialized for the created project.
There is a .gitignore file with defaults for Maven, IntelliJ IDEA and VSCode.

Usage

mvn archetype:generate -DarchetypeGroupId=io.github.manedev79 \
                       -DarchetypeArtifactId=archetype-java-junit \
                       -DarchetypeVersion=1.0.9 \
                       -DjavaVersion=21 \
                       -DgitInit=true

Parameters

javaVersion

The Java version to use in the created project.
Possible values: Any valid Java version. Example: javaVersion=21

gitInit

Whether to initialize a git repository in the created project or not.
Possible values: true or false.

Development Setup

Prerequisites

  • Requires Java 21.
  • Optional: sdkman for switching JDK
    • Use sdk env to switch to JDK specified in .sdkmanrc.

Install locally

mvn install

About

Maven archetype with recent java version, JUnit5, assertj and git repository in place.

License:MIT License


Languages

Language:Shell 94.4%Language:Java 3.4%Language:Groovy 2.3%