Java Conventions
The no.conta.java-conventions plugin configures compilation
and common dependencies for main and test.
The no.conta.test-output-conventions plugin adds parameters
that more output when running tests.
Configure
plugins {
id 'no.conta.java-conventions'
id 'no.conta.test-output-conventions'
}
lombokVersion=1.18.20
# junitVersion=5.12.2
Configurable properties
The plugin reads the following properties from gradle.properties.
All have sensible defaults and are optional.
| Property | Default | Description |
|---|---|---|
|
|
Groovy version for test compilation |
|
|
Spock BOM version |
|
|
JUnit BOM version (provides |
|
|
ByteBuddy version for class mocking |
|
|
Objenesis version for no-arg constructor mocking |
|
(not set) |
Set to enable Lombok compile-time processing |
|
(not set) |
Set to add Logback to test runtime |
Properties marked (not set) are opt-in: the dependency is only added when the property is present.