From 07930a8beaf2efb825640514dac32e75f6f9aa54 Mon Sep 17 00:00:00 2001
From: austek <13117393+austek@users.noreply.github.com>
Date: Wed, 30 Jul 2025 10:07:29 +0100
Subject: [PATCH] Add spotless plugin
---
.checkstyle | 11 -
config/checkstyle.xml | 202 ----------
config/java-license-header | 12 +
pom.xml | 792 ++++++++++++++++++++-----------------
4 files changed, 436 insertions(+), 581 deletions(-)
delete mode 100644 .checkstyle
delete mode 100644 config/checkstyle.xml
create mode 100644 config/java-license-header
diff --git a/.checkstyle b/.checkstyle
deleted file mode 100644
index dda6cd65..00000000
--- a/.checkstyle
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/config/checkstyle.xml b/config/checkstyle.xml
deleted file mode 100644
index b48478df..00000000
--- a/config/checkstyle.xml
+++ /dev/null
@@ -1,202 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/config/java-license-header b/config/java-license-header
new file mode 100644
index 00000000..c30daf32
--- /dev/null
+++ b/config/java-license-header
@@ -0,0 +1,12 @@
+/*
+ * Copyright $YEAR jmrozanec
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * https://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
diff --git a/pom.xml b/pom.xml
index 1031125f..ce867dc7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,397 +1,453 @@
-
- 4.0.0
+
+
+ 4.0.0
-
- org.sonatype.oss
- oss-parent
- 9
-
+
+ org.sonatype.oss
+ oss-parent
+ 9
+
- com.cronutils
- cron-utils
- 9.2.2-SNAPSHOT
+ com.cronutils
+ cron-utils
+ 9.2.2-SNAPSHOT
- cron-utils
- A Java library to parse, migrate and validate crons as well as describe them in human readable
- language
-
- http://cron-parser.com/
+ cron-utils
+ A Java library to parse, migrate and validate crons as well as describe them in human readable
+ language
+ http://cron-parser.com/
-
-
- Apache 2.0
- http://www.apache.org/licenses/LICENSE-2.0.html
- repo
-
-
+
+
+ Apache 2.0
+ http://www.apache.org/licenses/LICENSE-2.0.html
+ repo
+
+
-
-
- jmrozanec
- https://github.com/jmrozanec
-
-
+
+
+ jmrozanec
+ https://github.com/jmrozanec
+
+
-
- https://github.com/jmrozanec/cron-utils/issues
- GitHub Issues
-
+
+ scm:git:git@github.com:jmrozanec/cron-utils.git
+ scm:git:git@github.com:jmrozanec/cron-utils.git
+ HEAD
+ https://github.com/jmrozanec/cron-utils
+
-
- https://github.com/jmrozanec/cron-utils
- scm:git:git@github.com:jmrozanec/cron-utils.git
- scm:git:git@github.com:jmrozanec/cron-utils.git
- HEAD
-
+
+ GitHub Issues
+ https://github.com/jmrozanec/cron-utils/issues
+
-
-
- ossrh
- Release Repository
- https://oss.sonatype.org/service/local/staging/deploy/maven2/
-
-
- ossrh
- Snapshots Repository
- https://oss.sonatype.org/content/repositories/snapshots/
-
-
+
+
+ ossrh
+ Release Repository
+ https://oss.sonatype.org/service/local/staging/deploy/maven2/
+
+
+ ossrh
+ Snapshots Repository
+ https://oss.sonatype.org/content/repositories/snapshots/
+
+
-
- 2.0.17
- 5.13.4
- 5.2.0
- 1.17.6
+
+ 2.0.17
+ 5.13.4
+ 5.2.0
+ 1.17.6
- github
- UTF-8
- https://sonarqube.com
- jmrozanec-github
-
+ github
+ UTF-8
+ https://sonarqube.com
+ jmrozanec-github
+
+
-
- org.slf4j
- slf4j-api
- ${slf4j.version}
-
-
- jakarta.validation
- jakarta.validation-api
- 3.1.1
- provided
-
+
+ net.bytebuddy
+ byte-buddy
+ ${byte-buddy.version}
+
+
+ net.bytebuddy
+ byte-buddy-agent
+ ${byte-buddy.version}
+
+
+
-
-
- org.slf4j
- slf4j-simple
- ${slf4j.version}
- test
-
-
- org.junit.jupiter
- junit-jupiter
- ${junit.version}
- test
-
-
- org.mockito
- mockito-inline
- ${mockito.version}
- test
-
-
- org.quartz-scheduler
- quartz
- 2.5.0
- test
-
-
- org.hibernate.validator
- hibernate-validator
- 9.0.1.Final
- test
-
-
- org.springframework
- spring-context
- 6.2.9
- test
-
+
+
+ org.slf4j
+ slf4j-api
+ ${slf4j.version}
+
+
+ jakarta.validation
+ jakarta.validation-api
+ 3.1.1
+ provided
+
+
+
+ org.slf4j
+ slf4j-simple
+ ${slf4j.version}
+ test
+
+
+ org.junit.jupiter
+ junit-jupiter
+ ${junit.version}
+ test
+
+
+ org.mockito
+ mockito-inline
+ ${mockito.version}
+ test
+
+
+ org.quartz-scheduler
+ quartz
+ 2.5.0
+ test
+
+
+ org.hibernate.validator
+ hibernate-validator
+ 9.0.1.Final
+ test
+
+
+ org.springframework
+ spring-context
+ 6.2.9
+ test
+
-
- jakarta.el
- jakarta.el-api
- 6.0.1
- provided
-
-
- org.glassfish
- jakarta.el
- 4.0.2
- provided
-
-
- org.projectlombok
- lombok
- 1.18.38
- provided
-
-
+
+ jakarta.el
+ jakarta.el-api
+ 6.0.1
+ provided
+
+
+ org.glassfish
+ jakarta.el
+ 4.0.2
+ provided
+
+
+ org.projectlombok
+ lombok
+ 1.18.38
+ provided
+
+
-
-
-
- net.bytebuddy
- byte-buddy
- ${byte-buddy.version}
-
-
- net.bytebuddy
- byte-buddy-agent
- ${byte-buddy.version}
-
-
-
+
+
+
+ org.apache.maven.plugins
+ maven-checkstyle-plugin
+ 3.6.0
+
+ config/checkstyle.xml
+
+
+
+ com.diffplug.spotless
+ spotless-maven-plugin
+ 2.46.1
+
+ origin/master
+
+
+
+ .gitattributes
+ .gitignore
+
+
+
+
+ true
+ 4
+
+
+
+
+
+
+
+
+
+
+
+ ${project.basedir}/config/java-license-header
+
+
+
+
+
+
+
+ **/*.yaml
+ **/*.yml
+
+
+
+
+
+
+ **/*.md
+
-
-
-
- org.apache.maven.plugins
- maven-checkstyle-plugin
- 3.6.0
-
- config/checkstyle.xml
-
-
-
- org.apache.maven.plugins
- maven-compiler-plugin
- 3.14.0
-
- 17
- 17
-
-
-
- org.apache.maven.plugins
- maven-assembly-plugin
- 3.7.1
-
-
-
-
-
-
-
- jar-with-dependencies
-
-
-
-
- org.apache.maven.plugins
- maven-source-plugin
- 3.3.1
-
-
- attach-sources
-
- jar
-
-
-
-
-
- org.apache.maven.plugins
- maven-clean-plugin
- 3.5.0
-
-
- org.apache.maven.plugins
- maven-install-plugin
- 3.1.4
-
-
- org.apache.maven.plugins
- maven-jar-plugin
- 3.4.2
-
-
- ${project.build.outputDirectory}/META-INF/MANIFEST.MF
-
- true
-
-
-
- com.cronutils
-
-
-
-
-
- org.apache.maven.plugins
- maven-resources-plugin
- 3.3.1
-
-
- org.apache.maven.plugins
- maven-javadoc-plugin
- 3.11.2
-
-
- attach-javadocs
-
- jar
-
-
-
-
-
+
+
+
+ jar-with-dependencies
+
+
+
+
+ org.apache.maven.plugins
+ maven-source-plugin
+ 3.3.1
+
+
+ attach-sources
+
+ jar
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-clean-plugin
+ 3.5.0
+
+
+ org.apache.maven.plugins
+ maven-install-plugin
+ 3.1.4
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+ 3.4.2
+
+
+ ${project.build.outputDirectory}/META-INF/MANIFEST.MF
+
+ true
+
+
+
+ com.cronutils
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-resources-plugin
+ 3.3.1
+
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+ 3.11.2
+
+
+ attach-javadocs
+
+ jar
+
+
+
+
+
-
- org.apache.maven.plugins
- maven-surefire-plugin
- 3.5.3
-
- -Dnet.bytebuddy.experimental=true
-
-
-
- org.apache.maven.plugins
- maven-deploy-plugin
- 3.1.4
-
-
- org.sonatype.plugins
- nexus-staging-maven-plugin
- 1.7.0
- true
-
- ossrh
- https://oss.sonatype.org/
- true
-
-
-
- org.codehaus.mojo
- findbugs-maven-plugin
- 3.0.5
-
-
- org.codehaus.mojo
- clirr-maven-plugin
- 2.8
-
-
- org.codehaus.mojo
- versions-maven-plugin
- 2.18.0
-
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+ 3.5.3
+
+ -Dnet.bytebuddy.experimental=true
+
+
+
+ org.apache.maven.plugins
+ maven-deploy-plugin
+ 3.1.4
+
+
+ org.sonatype.plugins
+ nexus-staging-maven-plugin
+ 1.7.0
+ true
+
+ ossrh
+ https://oss.sonatype.org/
+ true
+
+
+
+ org.codehaus.mojo
+ findbugs-maven-plugin
+ 3.0.5
+
+
+ org.codehaus.mojo
+ clirr-maven-plugin
+ 2.8
+
+
+ org.codehaus.mojo
+ versions-maven-plugin
+ 2.18.0
+
-
-
- org.jacoco
- jacoco-maven-plugin
- 0.8.13
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.13
-
-
- jacoco-initialize
-
- prepare-agent
-
-
-
- jacoco-site
- package
-
- report
-
-
-
-
+
+
+ jacoco-initialize
+
+ prepare-agent
+
+
+
+ jacoco-site
+
+ report
+
+ package
+
+
+
+
+ org.apache.felix
+ maven-bundle-plugin
+ 6.0.0
+
+
+ bundle-manifest
+
+ manifest
+
+ process-classes
+
+
+
+
-
- org.apache.felix
- maven-bundle-plugin
- 6.0.0
-
-
- bundle-manifest
- process-classes
-
- manifest
-
-
-
-
-
-
-
-
-
- org.apache.maven.wagon
- wagon-webdav
- 1.0-beta-2
-
-
-
+
+
+
+ org.apache.maven.wagon
+ wagon-webdav
+ 1.0-beta-2
+
+
+
-
-
- release-sign-artifacts
-
-
- performRelease
- true
-
-
-
-
-
- org.apache.maven.plugins
- maven-gpg-plugin
- 3.2.8
-
-
- sign-artifacts
- verify
-
- sign
-
-
-
-
-
-
-
+
+
+ release-sign-artifacts
+
+
+ performRelease
+ true
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-gpg-plugin
+ 3.2.8
+
+
+ sign-artifacts
+
+ sign
+
+ verify
+
+
+
+
+
+
-
-
- travis
-
-
- env.TRAVIS
- true
-
-
-
-
-
- org.eluder.coveralls
- coveralls-maven-plugin
- 4.3.0
-
-
-
-
-
+
+
+ travis
+
+
+ env.TRAVIS
+ true
+
+
+
+
+
+ org.eluder.coveralls
+ coveralls-maven-plugin
+ 4.3.0
+
+
+
+
+