From 05b5cab9d3ff1823324d38686a2c8a2be280d315 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Sat, 17 Dec 2022 12:11:39 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B9?= =?UTF-8?q?=D0=BA=D0=B0=20=D1=81=D0=B1=D0=BE=D1=80=D0=BA=D0=B8=20drone?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- drone.yml | 23 +++++++++++++++++++ haiti-exception/pom.xml | 2 +- haiti-utils/pom.xml | 2 +- .../dev/struchkov/haiti/utils/Checker.java | 8 +++---- pom.xml | 7 +++--- 5 files changed, 33 insertions(+), 9 deletions(-) create mode 100644 drone.yml 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