From 6e4307cb61bf376ebf27d3420bd93f7c3ae2d26c Mon Sep 17 00:00:00 2001
From: "Erik C. Thauvin"
Date: Mon, 29 Apr 2024 15:09:44 -0700
Subject: [PATCH] Updated copyright
---
.idea/app.iml | 3 +-
.idea/copyright/profiles_settings.xml | 6 +-
.idea/inspectionProfiles/Project_Default.xml | 3 +-
.idea/intellij-javadocs-4.0.1.xml | 204 ++++++++++++++++++
.idea/kotlinc.xml | 6 -
.idea/libraries/bld.xml | 2 +-
.idea/libraries/compile.xml | 4 +
.idea/libraries/test.xml | 4 +
.idea/misc.xml | 18 --
.idea/modules.xml | 2 +-
.idea/modules/examples-java.main.iml | 8 -
.idea/runConfigurations/Run Tests.xml | 8 +-
.idea/scopes/Source_Code.xml | 3 -
LICENSE.txt | 2 +-
docs/README.html | 25 ++-
examples/java/bld/.idea/.name | 1 +
.../bld/.idea/intellij-javadocs-4.0.1.xml | 204 ++++++++++++++++++
examples/java/bld/lib/bld/bld-wrapper.jar | Bin 27319 -> 27319 bytes
examples/java/gradle/.idea/.name | 2 +-
examples/java/gradle/.idea/compiler.xml | 13 +-
.../java/gradle/.idea}/jarRepositories.xml | 0
examples/java/gradle/.idea/misc.xml | 9 +-
examples/java/gradle/.idea/modules.xml | 4 +-
.../gradle/.idea/modules/examples-java.iml | 13 --
.../.idea/modules/examples-java.main.iml | 8 +
.../.idea/modules/examples-java_main.iml | 18 --
.../.idea/modules/examples-java_test.iml | 15 --
examples/java/gradle/.idea/vcs.xml | 1 +
.../java/com/example/ExampleVersion.java | 2 +-
.../java/com/example/GeneratedVersion.java | 2 +-
examples/kotlin/.idea/.name | 2 +-
examples/kotlin/.idea/compiler.xml | 2 +-
examples/kotlin/.idea/jarRepositories.xml | 30 +++
examples/kotlin/.idea/kotlinc.xml | 3 +
examples/kotlin/.idea/misc.xml | 6 +-
examples/kotlin/.idea/modules.xml | 10 -
.../kotlin/.idea/modules/examples-kotlin.iml | 13 --
.../.idea/modules/examples-kotlin_main.iml | 59 -----
.../.idea/modules/examples-kotlin_test.iml | 64 ------
examples/kotlin/build.gradle.kts | 2 +-
lib/bld/bld-wrapper.jar | Bin 27319 -> 27319 bytes
.../net/thauvin/erik/semver/SemverBuild.java | 21 +-
.../net/thauvin/erik/semver/Constants.java | 4 +-
.../java/net/thauvin/erik/semver/Version.java | 4 +-
.../net/thauvin/erik/semver/VersionInfo.java | 4 +-
.../thauvin/erik/semver/VersionProcessor.java | 4 +-
.../thauvin/erik/semver/ConstantsTest.java | 4 +-
.../thauvin/erik/semver/VersionInfoTest.java | 4 +-
.../erik/semver/VersionProcessorTest.java | 4 +-
.../net/thauvin/erik/semver/VersionTest.java | 4 +-
50 files changed, 551 insertions(+), 283 deletions(-)
create mode 100644 .idea/intellij-javadocs-4.0.1.xml
delete mode 100644 .idea/kotlinc.xml
delete mode 100644 .idea/modules/examples-java.main.iml
delete mode 100644 .idea/scopes/Source_Code.xml
create mode 100644 examples/java/bld/.idea/.name
create mode 100644 examples/java/bld/.idea/intellij-javadocs-4.0.1.xml
rename {.idea => examples/java/gradle/.idea}/jarRepositories.xml (100%)
delete mode 100644 examples/java/gradle/.idea/modules/examples-java.iml
create mode 100644 examples/java/gradle/.idea/modules/examples-java.main.iml
delete mode 100644 examples/java/gradle/.idea/modules/examples-java_main.iml
delete mode 100644 examples/java/gradle/.idea/modules/examples-java_test.iml
create mode 100644 examples/kotlin/.idea/jarRepositories.xml
delete mode 100644 examples/kotlin/.idea/modules.xml
delete mode 100644 examples/kotlin/.idea/modules/examples-kotlin.iml
delete mode 100644 examples/kotlin/.idea/modules/examples-kotlin_main.iml
delete mode 100644 examples/kotlin/.idea/modules/examples-kotlin_test.iml
diff --git a/.idea/app.iml b/.idea/app.iml
index 787b59b..6c0f6d7 100644
--- a/.idea/app.iml
+++ b/.idea/app.iml
@@ -6,10 +6,9 @@
-
+
-
diff --git a/.idea/copyright/profiles_settings.xml b/.idea/copyright/profiles_settings.xml
index dd82085..8b4ad55 100644
--- a/.idea/copyright/profiles_settings.xml
+++ b/.idea/copyright/profiles_settings.xml
@@ -1,7 +1,3 @@
-
-
-
-
-
+
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
index 7c26c8e..1e01b48 100644
--- a/.idea/inspectionProfiles/Project_Default.xml
+++ b/.idea/inspectionProfiles/Project_Default.xml
@@ -2,8 +2,7 @@
-
+
-
\ No newline at end of file
diff --git a/.idea/intellij-javadocs-4.0.1.xml b/.idea/intellij-javadocs-4.0.1.xml
new file mode 100644
index 0000000..fbb9478
--- /dev/null
+++ b/.idea/intellij-javadocs-4.0.1.xml
@@ -0,0 +1,204 @@
+
+
+
+
+ UPDATE
+ false
+ true
+
+ FIELD
+ TYPE
+ METHOD
+
+
+ DEFAULT
+ PUBLIC
+ PROTECTED
+
+
+
+
+
+ ^.*(public|protected|private)*.+interface\s+\w+.*
+ /**\n
+ * The interface ${name}.\n
+<#if element.typeParameters?has_content> * \n
+</#if>
+<#list element.typeParameters as typeParameter>
+ * @param <${typeParameter.name}> the type parameter\n
+</#list>
+ */
+
+
+ ^.*(public|protected|private)*.+enum\s+\w+.*
+ /**\n
+ * The enum ${name}.\n
+ */
+
+
+ ^.*(public|protected|private)*.+class\s+\w+.*
+ /**\n
+ * The type ${name}.\n
+<#if element.typeParameters?has_content> * \n
+</#if>
+<#list element.typeParameters as typeParameter>
+ * @param <${typeParameter.name}> the type parameter\n
+</#list>
+ */
+
+
+ .+
+ /**\n
+ * The type ${name}.\n
+ */
+
+
+
+
+ .+
+ /**\n
+ * Instantiates a new ${name}.\n
+<#if element.parameterList.parameters?has_content>
+ *\n
+</#if>
+<#list element.parameterList.parameters as parameter>
+ * @param ${parameter.name} the ${paramNames[parameter.name]}\n
+</#list>
+<#if element.throwsList.referenceElements?has_content>
+ *\n
+</#if>
+<#list element.throwsList.referenceElements as exception>
+ * @throws ${exception.referenceName} the ${exceptionNames[exception.referenceName]}\n
+</#list>
+ */
+
+
+
+
+ ^.*(public|protected|private)*\s*.*(\w(\s*<.+>)*)+\s+get\w+\s*\(.*\).+
+ /**\n
+ * Gets ${partName}.\n
+<#if element.typeParameters?has_content> * \n
+</#if>
+<#list element.typeParameters as typeParameter>
+ * @param <${typeParameter.name}> the type parameter\n
+</#list>
+<#if element.parameterList.parameters?has_content>
+ *\n
+</#if>
+<#list element.parameterList.parameters as parameter>
+ * @param ${parameter.name} the ${paramNames[parameter.name]}\n
+</#list>
+<#if isNotVoid>
+ *\n
+ * @return the ${partName}\n
+</#if>
+<#if element.throwsList.referenceElements?has_content>
+ *\n
+</#if>
+<#list element.throwsList.referenceElements as exception>
+ * @throws ${exception.referenceName} the ${exceptionNames[exception.referenceName]}\n
+</#list>
+ */
+
+
+ ^.*(public|protected|private)*\s*.*(void|\w(\s*<.+>)*)+\s+set\w+\s*\(.*\).+
+ /**\n
+ * Sets ${partName}.\n
+<#if element.typeParameters?has_content> * \n
+</#if>
+<#list element.typeParameters as typeParameter>
+ * @param <${typeParameter.name}> the type parameter\n
+</#list>
+<#if element.parameterList.parameters?has_content>
+ *\n
+</#if>
+<#list element.parameterList.parameters as parameter>
+ * @param ${parameter.name} the ${paramNames[parameter.name]}\n
+</#list>
+<#if isNotVoid>
+ *\n
+ * @return the ${partName}\n
+</#if>
+<#if element.throwsList.referenceElements?has_content>
+ *\n
+</#if>
+<#list element.throwsList.referenceElements as exception>
+ * @throws ${exception.referenceName} the ${exceptionNames[exception.referenceName]}\n
+</#list>
+ */
+
+
+ ^.*((public\s+static)|(static\s+public))\s+void\s+main\s*\(\s*String\s*(\[\s*\]|\.\.\.)\s+\w+\s*\).+
+ /**\n
+ * The entry point of application.\n
+
+ <#if element.parameterList.parameters?has_content>
+ *\n
+</#if>
+ * @param ${element.parameterList.parameters[0].name} the input arguments\n
+<#if element.throwsList.referenceElements?has_content>
+ *\n
+</#if>
+<#list element.throwsList.referenceElements as exception>
+ * @throws ${exception.referenceName} the ${exceptionNames[exception.referenceName]}\n
+</#list>
+ */
+
+
+ .+
+ /**\n
+ * ${name}<#if isNotVoid> ${return}</#if>.\n
+<#if element.typeParameters?has_content> * \n
+</#if>
+<#list element.typeParameters as typeParameter>
+ * @param <${typeParameter.name}> the type parameter\n
+</#list>
+<#if element.parameterList.parameters?has_content>
+ *\n
+</#if>
+<#list element.parameterList.parameters as parameter>
+ * @param ${parameter.name} the ${paramNames[parameter.name]}\n
+</#list>
+<#if isNotVoid>
+ *\n
+ * @return the ${return}\n
+</#if>
+<#if element.throwsList.referenceElements?has_content>
+ *\n
+</#if>
+<#list element.throwsList.referenceElements as exception>
+ * @throws ${exception.referenceName} the ${exceptionNames[exception.referenceName]}\n
+</#list>
+ */
+
+
+
+
+ ^.*(public|protected|private)*.+static.*(\w\s\w)+.+
+ /**\n
+ * The constant ${element.getName()}.\n
+ */
+
+
+ ^.*(public|protected|private)*.*(\w\s\w)+.+
+ /**\n
+ <#if element.parent.isInterface()>
+ * The constant ${element.getName()}.\n
+<#else>
+ * The ${name}.\n
+</#if> */
+
+
+ .+
+ /**\n
+ <#if element.parent.isEnum()>
+ *${name} ${typeName}.\n
+<#else>
+ * The ${name}.\n
+</#if>*/
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml
deleted file mode 100644
index f8467b4..0000000
--- a/.idea/kotlinc.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/libraries/bld.xml b/.idea/libraries/bld.xml
index 0b615c1..59ffe59 100644
--- a/.idea/libraries/bld.xml
+++ b/.idea/libraries/bld.xml
@@ -15,4 +15,4 @@
-
+
\ No newline at end of file
diff --git a/.idea/libraries/compile.xml b/.idea/libraries/compile.xml
index 9bd86aa..143dc93 100644
--- a/.idea/libraries/compile.xml
+++ b/.idea/libraries/compile.xml
@@ -2,12 +2,16 @@
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/test.xml b/.idea/libraries/test.xml
index b80486a..c16475a 100644
--- a/.idea/libraries/test.xml
+++ b/.idea/libraries/test.xml
@@ -2,13 +2,17 @@
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
index 8b9e679..542659b 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -1,24 +1,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/.idea/modules.xml b/.idea/modules.xml
index 8861cbf..55adcb9 100644
--- a/.idea/modules.xml
+++ b/.idea/modules.xml
@@ -2,8 +2,8 @@
+
-
\ No newline at end of file
diff --git a/.idea/modules/examples-java.main.iml b/.idea/modules/examples-java.main.iml
deleted file mode 100644
index 807b620..0000000
--- a/.idea/modules/examples-java.main.iml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/runConfigurations/Run Tests.xml b/.idea/runConfigurations/Run Tests.xml
index 4f6af10..5c0ca65 100644
--- a/.idea/runConfigurations/Run Tests.xml
+++ b/.idea/runConfigurations/Run Tests.xml
@@ -1,7 +1,11 @@
-
-
+
+
+
+
+
+
diff --git a/.idea/scopes/Source_Code.xml b/.idea/scopes/Source_Code.xml
deleted file mode 100644
index 1753056..0000000
--- a/.idea/scopes/Source_Code.xml
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/LICENSE.txt b/LICENSE.txt
index 3214597..ae2f49e 100644
--- a/LICENSE.txt
+++ b/LICENSE.txt
@@ -1,4 +1,4 @@
-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
diff --git a/docs/README.html b/docs/README.html
index 1dad205..3101738 100644
--- a/docs/README.html
+++ b/docs/README.html
@@ -11,8 +11,11 @@
div.columns{display: flex; gap: min(4vw, 1.5em);}
div.column{flex: auto; overflow-x: auto;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
- ul.task-list{list-style: none;}
+ /* The extra [class] is a hack that increases specificity enough to
+ override a similar rule in reveal.js */
+ ul.task-list[class]{list-style: none;}
ul.task-list li input[type="checkbox"] {
+ font-size: inherit;
width: 0.8em;
margin: 0 0.8em 0.2em -1.6em;
vertical-align: middle;
@@ -97,7 +100,7 @@ alt="License (3-Clause BSD)" />
Kotlin & Gradle
Auto-Increment
+Contributing
Examples
@@ -368,10 +372,6 @@ are:
-Please also look at this example
-using java.time
Elements & Properties
The following annotation elements and properties are available:
@@ -546,6 +546,9 @@ href="https://github.com/ethauvin/semver/tree/master/examples/java/bld">examples
directory for a sample. It also shows how to incorporate the generated
code into the source tree
, more information is also
available here .
+bld also has a Generated
+Version extension which provides similar functionalities.
Gradle
Class Generation
To install and run from Gradle , add
@@ -643,5 +646,15 @@ and Kotlin
showing how to use both the plugin and annotation processor
concurrently.
+Contributing
+If you want to contribute to this project, all you have to do is
+clone the GitHub repository:
+git clone git@github.com:ethauvin/semver.git
+Then use bld to build:
+cd semver
+./bld compile
+The project has an IntelliJ
+IDEA project structure. You can just open it after all the
+dependencies were downloaded and peruse the code.