Skip to content

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

License

Notifications You must be signed in to change notification settings

manedev79/archetype-java-junit

Repository files navigation

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.10 \
                       -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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •