Releases: opencastsoftware/gradle-convention-plugins
0.1.4
Changed
- Tweaked the import order to make it closer to IntelliJ's default, by removing the newline between the
javax
andjava
import groups - Excluded generated code in Gradle's
build/
directories from Java formatting - Only format top level
.gradle.kts
files by default, i.e.*.gradle.kts
rather than**/*.gradle.kts
0.1.3
Changed
This release updates numerous dependency versions: most notably it updates the gradle-maven-publish-plugin
to version 0.25.1 to fix a problem which occurred when using it with the 1.x series of the gradle-plugin-publish-plugin
.
It also includes a tweak to the copyright header text in order to make it more universal, following the recommendations in How and why to properly write copyright statements in your code.
0.1.2
Removed
This release removes the addition of copyright headers to Gradle Kotlin DSL files, since it doesn't work very well.
The LicenseHeaderStep from Spotless requires a regex in order to determine the location of the header in the file, and since Gradle build files can have declarations in essentially any order, coming up with a general regex is pretty hard.
0.1.1
Added
Added Spotless configuration for Gradle Kotlin DSL files and Java source code.
This is currently configured to add Apache 2.0 license headers to source files, sort and remove unused imports, normalise indentation to spaces and trim trailing whitespace.
No Java code formatting is enforced as yet, but Gradle Kotlin DSL files are formatted using ktfmt.
0.1.0
Initial release containing configuration for publishing to Sonatype, git versioning and code coverage via Jacoco.