Updated copyright
This commit is contained in:
parent
02ee7eaf8b
commit
6e4307cb61
50 changed files with 551 additions and 283 deletions
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* SemverBuild.java
|
||||
*
|
||||
* Copyright (c) 2016-2023, Erik C. Thauvin (erik@thauvin.net)
|
||||
* Copyright (c) 2016-2024, Erik C. Thauvin (erik@thauvin.net)
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -50,6 +50,11 @@ import static rife.bld.dependencies.Scope.test;
|
|||
import static rife.bld.operations.JavadocOptions.DocLinkOption.NO_MISSING;
|
||||
|
||||
public class SemverBuild extends Project {
|
||||
final PmdOperation pmdOp = new PmdOperation()
|
||||
.fromProject(this)
|
||||
.failOnViolation(true)
|
||||
.ruleSets("config/pmd.xml");
|
||||
|
||||
public SemverBuild() {
|
||||
pkg = "net.thauvin.erik";
|
||||
name = "SemVer";
|
||||
|
@ -73,7 +78,6 @@ public class SemverBuild extends Project {
|
|||
|
||||
|
||||
javadocOperation().javadocOptions()
|
||||
.tag("created.on", "a", "Created on:")
|
||||
.windowTitle(name + ' ' + version.toString() + " API")
|
||||
.docLint(NO_MISSING);
|
||||
|
||||
|
@ -99,7 +103,7 @@ public class SemverBuild extends Project {
|
|||
.license(
|
||||
new PublishLicense()
|
||||
.name("The BSD 3-Clause License")
|
||||
.url("http://opensource.org/licenses/BSD-3-Clause")
|
||||
.url("https://opensource.org/licenses/BSD-3-Clause")
|
||||
)
|
||||
.scm(
|
||||
new PublishScm()
|
||||
|
@ -139,11 +143,12 @@ public class SemverBuild extends Project {
|
|||
|
||||
@BuildCommand(summary = "Runs PMD analysis")
|
||||
public void pmd() {
|
||||
new PmdOperation()
|
||||
.fromProject(this)
|
||||
.failOnViolation(true)
|
||||
.ruleSets("config/pmd.xml")
|
||||
.execute();
|
||||
pmdOp.execute();
|
||||
}
|
||||
|
||||
@BuildCommand(value = "pmd-cli", summary = "Runs PMD analysis (CLI)")
|
||||
public void pmdCli() {
|
||||
pmdOp.includeLineNumber(false).execute();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Constants.java
|
||||
*
|
||||
* Copyright (c) 2016-2023, Erik C. Thauvin (erik@thauvin.net)
|
||||
* Copyright (c) 2016-2024, Erik C. Thauvin (erik@thauvin.net)
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -36,7 +36,7 @@ package net.thauvin.erik.semver;
|
|||
* The <code>Constants</code> class holds the constant variables used throughout this project.
|
||||
*
|
||||
* @author <a href="mailto:erik@thauvin.net" target="_blank">Erik C. Thauvin</a>
|
||||
* @created.on 2016-01-13
|
||||
* @created 2016-01-13
|
||||
* @since 1.0
|
||||
*/
|
||||
@SuppressWarnings("PMD.DataClass")
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Version.java
|
||||
*
|
||||
* Copyright (c) 2016-2023, Erik C. Thauvin (erik@thauvin.net)
|
||||
* Copyright (c) 2016-2024, Erik C. Thauvin (erik@thauvin.net)
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -41,7 +41,7 @@ import java.lang.annotation.Target;
|
|||
* The <code>Version</code> class implements the annotation interface.
|
||||
*
|
||||
* @author <a href="mailto:erik@thauvin.net" target="_blank">Erik C. Thauvin</a>
|
||||
* @created.on 2016-01-13
|
||||
* @created 2016-01-13
|
||||
* @since 1.0
|
||||
*/
|
||||
@SuppressWarnings("SameReturnValue")
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* VersionInfo.java
|
||||
*
|
||||
* Copyright (c) 2016-2023, Erik C. Thauvin (erik@thauvin.net)
|
||||
* Copyright (c) 2016-2024, Erik C. Thauvin (erik@thauvin.net)
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -36,7 +36,7 @@ package net.thauvin.erik.semver;
|
|||
* The <code>VersionInfo</code> class is used to hold and retrieve the semantic version values.
|
||||
*
|
||||
* @author <a href="mailto:erik@thauvin.net" target="_blank">Erik C. Thauvin</a>
|
||||
* @created.on 2016-01-16
|
||||
* @created 2016-01-16
|
||||
* @since 1.0
|
||||
*/
|
||||
@SuppressWarnings("PMD.DataClass")
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* VersionProcessor.java
|
||||
*
|
||||
* Copyright (c) 2016-2023, Erik C. Thauvin (erik@thauvin.net)
|
||||
* Copyright (c) 2016-2024, Erik C. Thauvin (erik@thauvin.net)
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -55,7 +55,7 @@ import java.util.Set;
|
|||
* The <code>VersionProcessor</code> class implements a semantic version annotation processor.
|
||||
*
|
||||
* @author <a href="mailto:erik@thauvin.net" target="_blank">Erik C. Thauvin</a>
|
||||
* @created.on 2016-01-13
|
||||
* @created 2016-01-13
|
||||
* @since 1.0
|
||||
*/
|
||||
@SuppressWarnings({"PMD.GuardLogStatement", "PMD.BeanMembersShouldSerialize"})
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* ConstantsTest.java
|
||||
*
|
||||
* Copyright (c) 2016-2023, Erik C. Thauvin (erik@thauvin.net)
|
||||
* Copyright (c) 2016-2024, Erik C. Thauvin (erik@thauvin.net)
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -45,7 +45,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
|||
* The <code>ConstantsTest</code> class.
|
||||
*
|
||||
* @author <a href="https://erik.thauvin.net/" target="_blank">Erik C. Thauvin</a>
|
||||
* @created.on 2019-04-14
|
||||
* @created 2019-04-14
|
||||
* @since 1.0
|
||||
*/
|
||||
class ConstantsTest {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* VersionInfoTest.java
|
||||
*
|
||||
* Copyright (c) 2016-2023, Erik C. Thauvin (erik@thauvin.net)
|
||||
* Copyright (c) 2016-2024, Erik C. Thauvin (erik@thauvin.net)
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -43,7 +43,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
|||
* The <code>VersionInfoTest</code> class.
|
||||
*
|
||||
* @author <a href="mailto:erik@thauvin.net">Erik C. Thauvin</a>
|
||||
* @created.on 2016-02-03
|
||||
* @created 2016-02-03
|
||||
* @since 1.0
|
||||
*/
|
||||
class VersionInfoTest {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* VersionProcessorTest.java
|
||||
*
|
||||
* Copyright (c) 2016-2023, Erik C. Thauvin (erik@thauvin.net)
|
||||
* Copyright (c) 2016-2024, Erik C. Thauvin (erik@thauvin.net)
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -48,7 +48,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
|||
* The <code>VersionProcessorTest</code> class.
|
||||
*
|
||||
* @author <a href="https://erik.thauvin.net/" target="_blank">Erik C. Thauvin</a>
|
||||
* @created.on 2019-04-02
|
||||
* @created 2019-04-02
|
||||
* @since 1.2.0
|
||||
*/
|
||||
class VersionProcessorTest {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* VersionTest.java
|
||||
*
|
||||
* Copyright (c) 2016-2023, Erik C. Thauvin (erik@thauvin.net)
|
||||
* Copyright (c) 2016-2024, Erik C. Thauvin (erik@thauvin.net)
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -38,7 +38,7 @@ import java.lang.annotation.Annotation;
|
|||
* The <code>VersionTest</code> class.
|
||||
*
|
||||
* @author <a href="https://erik.thauvin.net/" target="_blank">Erik C. Thauvin</a>
|
||||
* @created.on 2019-04-02
|
||||
* @created 2019-04-02
|
||||
* @since 1.2.0
|
||||
*/
|
||||
@SuppressWarnings({"ClassExplicitlyAnnotation", "SameReturnValue", "java:S2187", "PMD.TestClassWithoutTestCases"})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue