Обновил версии и добавил плагин релизов
This commit is contained in:
parent
53912a7a75
commit
86441e86f6
46
pom.xml
46
pom.xml
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>dev.struchkov</groupId>
|
<groupId>dev.struchkov</groupId>
|
||||||
<artifactId>autoresponder</artifactId>
|
<artifactId>autoresponder</artifactId>
|
||||||
<version>3.5.0</version>
|
<version>3.6.0-SNAPSHOT</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>Abstract Autoresponder</name>
|
<name>Abstract Autoresponder</name>
|
||||||
@ -27,18 +27,27 @@
|
|||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||||
|
|
||||||
<haiti.utils.ver>1.4.0</haiti.utils.ver>
|
<haiti.utils.ver>2.6.0</haiti.utils.ver>
|
||||||
|
|
||||||
<junit.ver>5.8.2</junit.ver>
|
<!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-engine -->
|
||||||
<slf4j.ver>1.7.36</slf4j.ver>
|
<junit.ver>5.9.2</junit.ver>
|
||||||
<jetbrains.annotation.ver>23.0.0</jetbrains.annotation.ver>
|
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api -->
|
||||||
|
<slf4j.ver>2.0.6</slf4j.ver>
|
||||||
|
|
||||||
|
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin -->
|
||||||
<plugin.maven.compiler.ver>3.10.1</plugin.maven.compiler.ver>
|
<plugin.maven.compiler.ver>3.10.1</plugin.maven.compiler.ver>
|
||||||
|
<!-- https://mvnrepository.com/artifact/org.sonatype.plugins/nexus-staging-maven-plugin -->
|
||||||
<plugin.nexus.staging.ver>1.6.13</plugin.nexus.staging.ver>
|
<plugin.nexus.staging.ver>1.6.13</plugin.nexus.staging.ver>
|
||||||
|
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-source-plugin -->
|
||||||
<plugin.maven.source.ver>3.2.1</plugin.maven.source.ver>
|
<plugin.maven.source.ver>3.2.1</plugin.maven.source.ver>
|
||||||
<plugin.maven.javadoc.ver>3.4.0</plugin.maven.javadoc.ver>
|
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-javadoc-plugin -->
|
||||||
|
<plugin.maven.javadoc.ver>3.5.0</plugin.maven.javadoc.ver>
|
||||||
|
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-gpg-plugin -->
|
||||||
<plugin.maven.gpg.ver>3.0.1</plugin.maven.gpg.ver>
|
<plugin.maven.gpg.ver>3.0.1</plugin.maven.gpg.ver>
|
||||||
<plugin.maven.surefire.ver>3.0.0-M6</plugin.maven.surefire.ver>
|
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-surefire-plugin -->
|
||||||
|
<plugin.maven.surefire.ver>3.0.0-M9</plugin.maven.surefire.ver>
|
||||||
|
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-release-plugin -->
|
||||||
|
<plugin.maven.release.ver>3.0.0-M7</plugin.maven.release.ver>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
@ -54,12 +63,6 @@
|
|||||||
<version>${haiti.utils.ver}</version>
|
<version>${haiti.utils.ver}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.jetbrains</groupId>
|
|
||||||
<artifactId>annotations</artifactId>
|
|
||||||
<version>${jetbrains.annotation.ver}</version>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.junit.jupiter</groupId>
|
<groupId>org.junit.jupiter</groupId>
|
||||||
<artifactId>junit-jupiter-engine</artifactId>
|
<artifactId>junit-jupiter-engine</artifactId>
|
||||||
@ -143,10 +146,27 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-release-plugin</artifactId>
|
||||||
|
<version>${plugin.maven.release.ver}</version>
|
||||||
|
<configuration>
|
||||||
|
<preparationGoals>clean install</preparationGoals>
|
||||||
|
<tagNameFormat>v.@{project.version}</tagNameFormat>
|
||||||
|
<autoVersionSubmodules>true</autoVersionSubmodules>
|
||||||
|
<pushChanges>false</pushChanges>
|
||||||
|
<localCheckout>true</localCheckout>
|
||||||
|
<signTag>true</signTag>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</pluginManagement>
|
</pluginManagement>
|
||||||
|
|
||||||
<plugins>
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-release-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
|
@ -16,8 +16,10 @@ import java.util.function.Predicate;
|
|||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
import static dev.struchkov.autoresponder.util.Parser.splitWords;
|
import static dev.struchkov.autoresponder.util.Parser.splitWords;
|
||||||
|
import static dev.struchkov.haiti.utils.Checker.checkEmpty;
|
||||||
import static dev.struchkov.haiti.utils.Checker.checkNotEmpty;
|
import static dev.struchkov.haiti.utils.Checker.checkNotEmpty;
|
||||||
import static dev.struchkov.haiti.utils.Checker.checkNotNull;
|
import static dev.struchkov.haiti.utils.Checker.checkNotNull;
|
||||||
|
import static dev.struchkov.haiti.utils.Checker.checkNull;
|
||||||
import static dev.struchkov.haiti.utils.Exceptions.utilityClass;
|
import static dev.struchkov.haiti.utils.Exceptions.utilityClass;
|
||||||
import static dev.struchkov.haiti.utils.Inspector.isNotNull;
|
import static dev.struchkov.haiti.utils.Inspector.isNotNull;
|
||||||
|
|
||||||
@ -101,21 +103,19 @@ public final class Responder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static <U extends Unit<U, ?>> boolean isNotCheck(U unit) {
|
private static <U extends Unit<U, ?>> boolean isNotCheck(U unit) {
|
||||||
return unit.getTriggerCheck() == null;
|
return checkNull(unit.getTriggerCheck());
|
||||||
}
|
}
|
||||||
|
|
||||||
private static <U extends Unit<U, ?>> boolean isNotPhrase(U unit) {
|
private static <U extends Unit<U, ?>> boolean isNotPhrase(U unit) {
|
||||||
final Set<String> phrases = unit.getPhrases();
|
return checkEmpty(unit.getPhrases());
|
||||||
return phrases == null || phrases.isEmpty();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static <U extends Unit<U, ?>> boolean isNotPattern(U unit) {
|
private static <U extends Unit<U, ?>> boolean isNotPattern(U unit) {
|
||||||
return unit.getTriggerPatterns() == null || unit.getTriggerPatterns().isEmpty();
|
return checkEmpty(unit.getTriggerPatterns());
|
||||||
}
|
}
|
||||||
|
|
||||||
private static <U extends Unit<U, ?>> boolean isNotKeyWords(U unit) {
|
private static <U extends Unit<U, ?>> boolean isNotKeyWords(U unit) {
|
||||||
final Set<KeyWord> keyWords = unit.getTriggerWords();
|
return checkEmpty(unit.getTriggerWords());
|
||||||
return keyWords == null || keyWords.isEmpty();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean patternReg(Pattern pattern, String message) {
|
private static boolean patternReg(Pattern pattern, String message) {
|
||||||
|
@ -2,5 +2,4 @@ module autoresponder.copy {
|
|||||||
requires haiti.utils;
|
requires haiti.utils;
|
||||||
|
|
||||||
requires org.slf4j;
|
requires org.slf4j;
|
||||||
requires org.jetbrains.annotations;
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user