mirror of
https://github.com/imgfloat/server.git
synced 2026-02-05 03:39:26 +00:00
Sync jdk version
This commit is contained in:
25
pom.xml
25
pom.xml
@@ -14,6 +14,8 @@
|
||||
<java.version>17</java.version>
|
||||
<spring.boot.version>3.2.5</spring.boot.version>
|
||||
<hibernate.version>6.4.4.Final</hibernate.version>
|
||||
<bytebuddy.version>1.18.3</bytebuddy.version>
|
||||
<jacoco.version>0.8.14</jacoco.version>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
</properties>
|
||||
@@ -27,6 +29,16 @@
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>net.bytebuddy</groupId>
|
||||
<artifactId>byte-buddy</artifactId>
|
||||
<version>${bytebuddy.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>net.bytebuddy</groupId>
|
||||
<artifactId>byte-buddy-agent</artifactId>
|
||||
<version>${bytebuddy.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
|
||||
@@ -138,7 +150,7 @@
|
||||
<plugin>
|
||||
<groupId>org.jacoco</groupId>
|
||||
<artifactId>jacoco-maven-plugin</artifactId>
|
||||
<version>0.8.11</version>
|
||||
<version>${jacoco.version}</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
@@ -154,6 +166,16 @@
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>3.2.5</version>
|
||||
<configuration>
|
||||
<systemPropertyVariables>
|
||||
<net.bytebuddy.experimental>true</net.bytebuddy.experimental>
|
||||
</systemPropertyVariables>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
@@ -200,4 +222,5 @@
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
|
||||
@@ -5,7 +5,6 @@ import dev.kruhlmann.imgfloat.model.Settings;
|
||||
import dev.kruhlmann.imgfloat.repository.ChannelRepository;
|
||||
import java.time.Duration;
|
||||
import java.time.Instant;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
@@ -54,7 +53,7 @@ public class EmoteSyncScheduler implements SchedulingConfigurer {
|
||||
Instant lastCompletion = triggerContext.lastCompletionTime() == null
|
||||
? Instant.now()
|
||||
: triggerContext.lastCompletionTime().toInstant();
|
||||
return Date.from(lastCompletion.plus(Duration.ofMinutes(resolveIntervalMinutes())));
|
||||
return lastCompletion.plus(Duration.ofMinutes(resolveIntervalMinutes()));
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user