Remove debug msg and set version

This commit is contained in:
Norbi Peti 2020-10-28 00:32:59 +01:00
parent 324f5e756c
commit e57974ebcd
No known key found for this signature in database
GPG key ID: DBA4C4549A927E56
2 changed files with 3 additions and 30 deletions

31
pom.xml
View file

@ -10,7 +10,7 @@
<groupId>com.github.TBMCPlugins</groupId> <groupId>com.github.TBMCPlugins</groupId>
<artifactId>Chroma-Discord</artifactId> <artifactId>Chroma-Discord</artifactId>
<version>master-SNAPSHOT</version> <version>v${noprefix.version}-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>Chroma-Discord</name> <name>Chroma-Discord</name>
@ -55,14 +55,6 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<!-- <plugin> <groupId>org.projectlombok</groupId> <artifactId>lombok-maven-plugin</artifactId>
<version>1.16.16.0</version> <executions> <execution> <id>delombok</id> <phase>generate-sources</phase>
<goals> <goal>delombok</goal> </goals> <configuration> <addOutputDirectory>false</addOutputDirectory>
<sourceDirectory>src/main/java</sourceDirectory> <verbose>true</verbose>
</configuration> </execution> <execution> <id>test-delombok</id> <phase>generate-test-sources</phase>
<goals> <goal>testDelombok</goal> </goals> <configuration> <addOutputDirectory>false</addOutputDirectory>
<sourceDirectory>src/test/java</sourceDirectory> </configuration> </execution>
</executions> </plugin> -->
<plugin> <plugin>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<version>2.4.2</version> <version>2.4.2</version>
@ -76,9 +68,7 @@
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<branch> <noprefix.version>1.0.0</noprefix.version>
master
</branch> <!-- Should be master if building ButtonCore locally - the CI will overwrite it (see below) -->
</properties> </properties>
<repositories> <repositories>
@ -166,7 +156,7 @@
<dependency> <dependency>
<groupId>com.github.TBMCPlugins.ChromaCore</groupId> <groupId>com.github.TBMCPlugins.ChromaCore</groupId>
<artifactId>Chroma-Core</artifactId> <artifactId>Chroma-Core</artifactId>
<version>${branch}-SNAPSHOT</version> <version>v1.0.0</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
@ -218,19 +208,4 @@
<version>3.5.13</version> <version>3.5.13</version>
</dependency> </dependency>
</dependencies> </dependencies>
<profiles>
<profile>
<id>ci</id>
<activation>
<property>
<name>env.TRAVIS_BRANCH</name>
</property>
</activation>
<properties>
<!-- Override only if necessary -->
<branch>${env.TRAVIS_BRANCH}</branch>
</properties>
</profile>
</profiles>
</project> </project>

View file

@ -8,7 +8,6 @@ import org.apache.logging.log4j.core.LogEvent;
import org.apache.logging.log4j.core.appender.AbstractAppender; import org.apache.logging.log4j.core.appender.AbstractAppender;
import org.apache.logging.log4j.core.filter.LevelRangeFilter; import org.apache.logging.log4j.core.filter.LevelRangeFilter;
import org.apache.logging.log4j.core.layout.PatternLayout; import org.apache.logging.log4j.core.layout.PatternLayout;
import org.bukkit.Bukkit;
public class BukkitLogWatcher extends AbstractAppender { public class BukkitLogWatcher extends AbstractAppender {
protected BukkitLogWatcher() { protected BukkitLogWatcher() {
@ -19,7 +18,6 @@ public class BukkitLogWatcher extends AbstractAppender {
@Override @Override
public void append(LogEvent logEvent) { public void append(LogEvent logEvent) {
Bukkit.getLogger().warning("Message: " + logEvent.getMessage().getFormattedMessage());
if (logEvent.getMessage().getFormattedMessage().contains("Attempting to restart with ")) if (logEvent.getMessage().getFormattedMessage().contains("Attempting to restart with "))
MinecraftChatModule.state = DPState.RESTARTING_SERVER; MinecraftChatModule.state = DPState.RESTARTING_SERVER;
} }