Changelog readme jenkins (#42)

* [changelog] convert to org-mode format

* [readme] remove sonarcloud and codacy badges

* [readme] adjust heading levels

* [jenkins] Remove codacy

* [jenkins] remove sonarcloud

* [jenkins] try build with JDK 12
This commit is contained in:
Paul Campbell 2019-01-05 13:01:30 +00:00 committed by GitHub
parent 2e40176f6d
commit 1fa6a3c05a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 260 additions and 289 deletions

View file

@ -1,83 +0,0 @@
CHANGELOG
=========
0.7.1
-----
* Bump assertj-core from 3.11.0 to 3.11.1 (#38)
* Bump kemitix-maven-tiles from 0.9.0 to 1.3.1 (#40)
* [jenkins] Compatibility build against java 11 (#40)
* Bump kemitix-parent from 5.1.1 to 5.2.0 (#39)
0.7.0
-----
* Deprecate Value.andNot(Supplier)
* pom: Remove redundant properties
* Remove deprecated methods
* pom: rearrange entries
* Bump assertj-core from 3.10.0 to 3.11.0
* Bump lombok from 1.18.0 to 1.18.2
* Bump tiles-maven-plugin from 2.11 to 2.12
* README: update Value examples
* README: update Condition examples
* Value: cleanup deprecated whereNot()
* README: convert to orgmode format
0.6.0
-----
* Remove `.travis-support`
* Add `Condition.isTrue()`
* Add `Condition.isFalse()`
* Add `Condition.not()`
* Add `Condition.and(Condition)`
* Add `Condition.or(Condition)`
* Add `Condition.not()`
* Deprecate `Condition.whereNot(boolean)`
* Deprecate `Condition.andNot(boolean)`
* Deprecate `Condition.orNot(boolean)`
* Add `Condition.flatMap(Function<Boolean, Condition>)` to make `Condition` a monad
* Add `Value.where(Condition, Supplier, Supplier)`
* Add `Value.where(Condition, Supplier)`
* Add `Value.where(Condition)`
* Deprecate `Value.whereNot(boolean)`
* Add `ValueClause.not()`
0.5.0
-----
* Add `thenThrow(Exception)`
* Add `otherwiseThrow(Exception)`
0.4.0
-----
* Building with Jenkins
* Upgrade `kemitix-parent` to 5.0.3
0.3.0
-----
* Add `<T> Value.where(boolean, Supplier<T>, Supplier<T>)`
* Add `Optional<T> Value.where(boolean, Supplier<T>)`
* Add `.travis-support`
* Avoid danger of JVM-level deadlock during `Value` initialisation
* Avoid danger of JVM-level deadlock during `Condition` initialisation
* Upgrade `kemitix-parent` to 3.2.0
* Upgrade `kemitix-checkstyle-parent` to 3.2.0
* Upgrade `assertj` to 3.8.0
* Set `jacoco` to 100% line and instruction coverage required
* Set `pitest` to 100% mutation and coverage required
* Use `lombok.val` in `ValueTest`
* Move `assertThat` calls to individual test methods in `ValueTest`
0.2.0
-----
* Added `Value`
0.1.0
-----
* Initial release

79
CHANGELOG.org Normal file
View file

@ -0,0 +1,79 @@
* CHANGELOG
All notable changes to this project will be documented in this file.
The format is based on [[https://keepachangelog.com/en/1.0.0/][Keep a Changelog]], and this project adheres to
[[https://semver.org/spec/v2.0.0.html][Semantic Versioning]].
* 0.7.1
- Bump assertj-core from 3.11.0 to 3.11.1 (#38)
- Bump kemitix-maven-tiles from 0.9.0 to 1.3.1 (#40)
- [jenkins] Compatibility build against java 11 (#40)
- Bump kemitix-parent from 5.1.1 to 5.2.0 (#39)
* 0.7.0
- Deprecate Value.andNot(Supplier)
- pom: Remove redundant properties
- Remove deprecated methods
- pom: rearrange entries
- Bump assertj-core from 3.10.0 to 3.11.0
- Bump lombok from 1.18.0 to 1.18.2
- Bump tiles-maven-plugin from 2.11 to 2.12
- README: update Value examples
- README: update Condition examples
- Value: cleanup deprecated whereNot()
- README: convert to orgmode format
* 0.6.0
- Remove `.travis-support`
- Add `Condition.isTrue()`
- Add `Condition.isFalse()`
- Add `Condition.not()`
- Add `Condition.and(Condition)`
- Add `Condition.or(Condition)`
- Add `Condition.not()`
- Deprecate `Condition.whereNot(boolean)`
- Deprecate `Condition.andNot(boolean)`
- Deprecate `Condition.orNot(boolean)`
- Add `Condition.flatMap(Function<Boolean, Condition>)` to make `Condition` a monad
- Add `Value.where(Condition, Supplier, Supplier)`
- Add `Value.where(Condition, Supplier)`
- Add `Value.where(Condition)`
- Deprecate `Value.whereNot(boolean)`
- Add `ValueClause.not()`
* 0.5.0
- Add `thenThrow(Exception)`
- Add `otherwiseThrow(Exception)`
* 0.4.0
- Building with Jenkins
- Upgrade `kemitix-parent` to 5.0.3
* 0.3.0
- Add `<T> Value.where(boolean, Supplier<T>, Supplier<T>)`
- Add `Optional<T> Value.where(boolean, Supplier<T>)`
- Add `.travis-support`
- Avoid danger of JVM-level deadlock during `Value` initialisation
- Avoid danger of JVM-level deadlock during `Condition` initialisation
- Upgrade `kemitix-parent` to 3.2.0
- Upgrade `kemitix-checkstyle-parent` to 3.2.0
- Upgrade `assertj` to 3.8.0
- Set `jacoco` to 100% line and instruction coverage required
- Set `pitest` to 100% mutation and coverage required
- Use `lombok.val` in `ValueTest`
- Move `assertThat` calls to individual test methods in `ValueTest`
* 0.2.0
- Added `Value`
* 0.1.0
- Initial release

View file

@ -8,12 +8,6 @@ pipeline {
steps {
withMaven(maven: 'maven', jdk: 'JDK 1.8') {
sh "${mvn} clean compile checkstyle:checkstyle pmd:pmd test"
// Code Coverage to Codacy
sh "${mvn} jacoco:report com.gavinmogan:codacy-maven-plugin:coverage " +
"-DcoverageReportFile=target/site/jacoco/jacoco.xml " +
"-DprojectToken=`$JENKINS_HOME/codacy/token` " +
"-DapiToken=`$JENKINS_HOME/codacy/apitoken` " +
"-Dcommit=`git rev-parse HEAD`"
// Code Coverage to Jenkins
jacoco exclusionPattern: '**/*{Test|IT|Main|Application|Immutable}.class'
// PMD to Jenkins
@ -33,16 +27,6 @@ pipeline {
}
}
}
stage('SonarQube (published)') {
when { expression { isPublished(publicRepo) } }
steps {
withSonarQubeEnv('sonarqube') {
withMaven(maven: 'maven', jdk: 'JDK 1.8') {
sh "${mvn} org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar"
}
}
}
}
stage('Deploy (published release branch)') {
when {
expression {
@ -64,6 +48,13 @@ pipeline {
}
}
}
stage('Build Java 12') {
steps {
withMaven(maven: 'maven', jdk: 'JDK 12') {
sh "${mvn} clean verify -Djava.version=12"
}
}
}
}
}

View file

@ -1,28 +1,12 @@
* Conditional
** Functional Condition and Value.
* Functional Condition and Value.
[[https://oss.sonatype.org/content/repositories/releases/net/kemitix/conditional][file:https://img.shields.io/nexus/r/https/oss.sonatype.org/net.kemitix/conditional.svg?style=for-the-badge]]
[[https://search.maven.org/#search%7Cga%7C1%7Cg%3A%22net.kemitix%22%20AND%20a%3A%22conditional%22][file:https://img.shields.io/maven-central/v/net.kemitix/conditional.svg?style=for-the-badge]]
[[https://sonarcloud.io/dashboard?id=net.kemitix%3Aconditional][file:https://img.shields.io/sonar/https/sonarcloud.io/net.kemitix%3Aconditional/coverage.svg?style=for-the-badge#.svg]]
[[https://sonarcloud.io/dashboard?id=net.kemitix%3Aconditional][file:https://img.shields.io/sonar/https/sonarcloud.io/net.kemitix%3Aconditional/tech_debt.svg?style=for-the-badge#.svg]]
[[https://sonarcloud.io/dashboard?id=net.kemitix%3Aconditional][file:https://sonarcloud.io/api/project_badges/measure?project=net.kemitix%3Aconditional&metric=sqale_rating#.svg]]
[[https://sonarcloud.io/dashboard?id=net.kemitix%3Aconditional][file:https://sonarcloud.io/api/project_badges/measure?project=net.kemitix%3Aconditional&metric=alert_status#.svg]]
[[https://sonarcloud.io/dashboard?id=net.kemitix%3Aconditional][file:https://sonarcloud.io/api/project_badges/measure?project=net.kemitix%3Aconditional&metric=reliability_rating#.svg]]
[[https://sonarcloud.io/dashboard?id=net.kemitix%3Aconditional][file:https://sonarcloud.io/api/project_badges/measure?project=net.kemitix%3Aconditional&metric=security_rating#.svg]]
[[https://sonarcloud.io/dashboard?id=net.kemitix%3Aconditional][file:https://sonarcloud.io/api/project_badges/measure?project=net.kemitix%3Aconditional&metric=sqale_index#.svg]]
[[https://sonarcloud.io/dashboard?id=net.kemitix%3Aconditional][file:https://sonarcloud.io/api/project_badges/measure?project=net.kemitix%3Aconditional&metric=vulnerabilities#.svg]]
[[https://sonarcloud.io/dashboard?id=net.kemitix%3Aconditional][file:https://sonarcloud.io/api/project_badges/measure?project=net.kemitix%3Aconditional&metric=bugs#.svg]]
[[https://sonarcloud.io/dashboard?id=net.kemitix%3Aconditional][file:https://sonarcloud.io/api/project_badges/measure?project=net.kemitix%3Aconditional&metric=code_smells#.svg]]
[[https://sonarcloud.io/dashboard?id=net.kemitix%3Aconditional][file:https://sonarcloud.io/api/project_badges/measure?project=net.kemitix%3Aconditional&metric=ncloc#.svg]]
[[https://app.codacy.com/project/kemitix/conditional/dashboard][file:https://img.shields.io/codacy/grade/1188742d676e457da91415d2b3a5faf1.svg?style=for-the-badge]]
[[http://i.jpeek.org/net.kemitix/conditional/index.html][file:http://i.jpeek.org/net.kemitix/conditional/badge.svg]]
** Maven
* Maven
#+BEGIN_SRC xml
<dependency>
@ -36,7 +20,7 @@
badges or can be found on [[https://search.maven.org/#search%7Cga%7C1%7Cg%3A%22net.kemitix%22%20AND%20a%3A%22mon%22][Maven Central]].
** Condition
* Condition
The `if ... then` and `if ... then ... else` constructs can't be used in a
lambda without being wrapped in a code block.
@ -45,7 +29,7 @@
wrap it in a code block
*** if-then
** if-then
#+BEGIN_SRC java
if (isTrue()) {
@ -57,7 +41,7 @@
#+END_SRC
*** if-then-else
** if-then-else
#+BEGIN_SRC java
if (isTrue()) {
@ -72,7 +56,7 @@
#+END_SRC
*** isTrue() / isFalse() / not()
** isTrue() / isFalse() / not()
#+BEGIN_SRC java
final Condition condition = Condition.where(isTrue());
@ -86,7 +70,7 @@
#+END_SRC
*** flatMap(Function<Boolean, Condition>)
** flatMap(Function<Boolean, Condition>)
#+BEGIN_SRC java
final Condition condition = Condition.where(isTrue())
@ -94,7 +78,7 @@
#+END_SRC
*** if-and-then-else
** if-and-then-else
#+BEGIN_SRC java
if (isTrue() && isAlsoTrue()) {
@ -110,7 +94,7 @@
#+END_SRC
*** if-or-then-else
** if-or-then-else
#+BEGIN_SRC java
if (isTrue() || alternativeIsTrue()) {
@ -126,7 +110,7 @@
#+END_SRC
*** if-then-else-if
** if-then-else-if
#+BEGIN_SRC java
if (isFalse()) {
@ -142,7 +126,7 @@
#+END_SRC
*** if-then-if-then
** if-then-if-then
#+BEGIN_SRC java
if (isTrue()) {
@ -159,14 +143,14 @@
#+END_SRC
** Value
* Value
Values from an if-then-else in a functional-style.
Functional, and verbose, alternative to the ternary operator (=?:=).
*** if-then-else
** if-then-else
#+BEGIN_SRC java
String result;
@ -191,7 +175,7 @@
#+END_SRC
*** if-and-then-else
** if-and-then-else
#+BEGIN_SRC java
String result;
@ -208,7 +192,7 @@
#+END_SRC
*** if-or-then-else
** if-or-then-else
#+BEGIN_SRC java
String result;
@ -225,7 +209,7 @@
#+END_SRC
*** if-or-not-then-else
** if-or-not-then-else
#+BEGIN_SRC java
String result;
@ -242,7 +226,7 @@
#+END_SRC
*** if-then
** if-then
#+BEGIN_SRC java
Optional<String> result;