diff --git a/drone.yml b/drone.yml new file mode 100644 index 0000000..9621d1c --- /dev/null +++ b/drone.yml @@ -0,0 +1,23 @@ +kind: pipeline +type: docker +name: haiti-framework + +steps: + - name: package + image: maven:3.8.6-eclipse-temurin-17 + commands: + - mvn -U clean package + volumes: + - name: m2 + path: /root/.m2 + +trigger: + branch: + - master +# ref: +# - refs/tags/v.*.*.* + +volumes: + - name: m2 + host: + path: $PATH_MAVEN_M2 \ No newline at end of file diff --git a/haiti-exception/pom.xml b/haiti-exception/pom.xml index dbb5744..bb70599 100644 --- a/haiti-exception/pom.xml +++ b/haiti-exception/pom.xml @@ -6,7 +6,7 @@ dev.struchkov.haiti haiti-dependencies - 2.1.0 + 2.2.0 haiti-exception diff --git a/haiti-utils/pom.xml b/haiti-utils/pom.xml index e6fb25b..481beae 100644 --- a/haiti-utils/pom.xml +++ b/haiti-utils/pom.xml @@ -6,7 +6,7 @@ dev.struchkov.haiti haiti-dependencies - 2.1.0 + 2.2.0 Haiti Utils diff --git a/haiti-utils/src/main/java/dev/struchkov/haiti/utils/Checker.java b/haiti-utils/src/main/java/dev/struchkov/haiti/utils/Checker.java index e795c10..93dea69 100644 --- a/haiti-utils/src/main/java/dev/struchkov/haiti/utils/Checker.java +++ b/haiti-utils/src/main/java/dev/struchkov/haiti/utils/Checker.java @@ -87,12 +87,12 @@ public final class Checker { return EMPTY.equals(s); } - public static boolean checkNotFalse(Boolean b) { - return b != null && b; + public static boolean checkFalse(Boolean b) { + return b != null && !b; } - public static boolean checkNotTrue(Boolean b) { - return b != null && !b; + public static boolean checkTrue(Boolean b) { + return b != null && b; } public static boolean checkLong(String s) { diff --git a/pom.xml b/pom.xml index f406b75..aa99612 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ dev.struchkov.haiti haiti-dependencies - 2.1.0 + 2.2.0 pom Haiti Framework @@ -35,7 +35,8 @@ UTF-8 UTF-8 - 2.1.0 + 2.2.0 + 2.1.0 ${haiti.ver} ${haiti.ver} ${haiti.ver} @@ -53,7 +54,7 @@ dev.struchkov.haiti haiti-external-bom - ${haiti.ver} + ${haiti.external.ver} pom import