Настройка сборки drone

This commit is contained in:
Struchkov Mark 2022-12-17 12:11:39 +03:00
parent 63bc66810c
commit 05b5cab9d3
5 changed files with 33 additions and 9 deletions

23
drone.yml Normal file
View File

@ -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

View File

@ -6,7 +6,7 @@
<parent>
<groupId>dev.struchkov.haiti</groupId>
<artifactId>haiti-dependencies</artifactId>
<version>2.1.0</version>
<version>2.2.0</version>
</parent>
<artifactId>haiti-exception</artifactId>

View File

@ -6,7 +6,7 @@
<parent>
<groupId>dev.struchkov.haiti</groupId>
<artifactId>haiti-dependencies</artifactId>
<version>2.1.0</version>
<version>2.2.0</version>
</parent>
<name>Haiti Utils</name>

View File

@ -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) {

View File

@ -6,7 +6,7 @@
<groupId>dev.struchkov.haiti</groupId>
<artifactId>haiti-dependencies</artifactId>
<version>2.1.0</version>
<version>2.2.0</version>
<packaging>pom</packaging>
<name>Haiti Framework</name>
@ -35,7 +35,8 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<haiti.ver>2.1.0</haiti.ver>
<haiti.ver>2.2.0</haiti.ver>
<haiti.external.ver>2.1.0</haiti.external.ver>
<haiti.exception.ver>${haiti.ver}</haiti.exception.ver>
<haiti.context.ver>${haiti.ver}</haiti.context.ver>
<haiti.filter.api.ver>${haiti.ver}</haiti.filter.api.ver>
@ -53,7 +54,7 @@
<dependency>
<groupId>dev.struchkov.haiti</groupId>
<artifactId>haiti-external-bom</artifactId>
<version>${haiti.ver}</version>
<version>${haiti.external.ver}</version>
<type>pom</type>
<scope>import</scope>
</dependency>