mhalbritter / java-gradle-skeleton

Starting point for Java & Gradle projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gradle & Java skeleton

This repository contains a starting point for Java projects.

It configures the compiler to use UTF-8, Java 17, and enables reflection on parameters. It also shows deprecated APIs and fails on warnings. It contains the Gradle wrapper.

It includes SLF4J as logging API, logback (with ISO8601 timestamps) as logging backend, JUnit 5 for testing, and AssertJ for test assertions.

It applies the Gradle application plugin so that a runnable distribution is created.

How to use

Download the latest version here, unzip it, change group and rootProject.name in settings.gradle and start hacking.

If you're changing the main class (rename the class or move the package), make sure to update mainClass property in the application block in the build.gradle.

Building

Run ./gradlew build and check the build folder.

Distributing your project

Copy the ZIP or TAR file from the build/distributions folder.

License

Licensed under CC0 - do whatever you want with it.

About

Starting point for Java & Gradle projects


Languages

Language:Java 100.0%