Переезд на java 13

This commit is contained in:
serega6531
2020-03-11 18:56:46 +03:00
parent 1f76d2c9dd
commit 59665145b3
6 changed files with 13 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
FROM openjdk:8-jdk-alpine
FROM openjdk:13-jdk-alpine
RUN apk add libpcap npm

View File

@@ -1,13 +1,15 @@
plugins {
id 'org.springframework.boot' version '2.1.4.RELEASE'
id 'org.springframework.boot' version '2.2.5.RELEASE'
id 'java'
}
apply plugin: 'io.spring.dependency-management'
group = 'ru.serega6531'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'
version = '1.0-SNAPSHOT'
sourceCompatibility = JavaVersion.VERSION_13
targetCompatibility = JavaVersion.VERSION_13
configurations {
compileOnly {
@@ -25,7 +27,7 @@ dependencies {
implementation "org.springframework.boot:spring-boot-starter-security"
implementation "org.springframework.boot:spring-boot-starter-websocket"
implementation 'org.springframework.session:spring-session-core'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.7'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.9'
compile group: 'commons-io', name: 'commons-io', version: '2.6'
compile 'org.pcap4j:pcap4j-core:1.8.2'
compile 'org.pcap4j:pcap4j-packetfactory-static:1.8.2'
@@ -34,5 +36,5 @@ dependencies {
runtimeOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'org.postgresql:postgresql'
annotationProcessor 'org.projectlombok:lombok'
testCompile 'org.junit.jupiter:junit-jupiter:5.4.2'
testCompile 'org.junit.jupiter:junit-jupiter:5.6.0'
}

View File

@@ -18,7 +18,7 @@ services:
network_mode: "host"
image: packmate-app:v1
command: [
"/usr/bin/java", "-Djava.net.preferIPv4Stack=true", "-Djava.net.preferIPv4Addresses=true",
"java", "-Djava.net.preferIPv4Stack=true", "-Djava.net.preferIPv4Addresses=true",
"-jar", "/app/app.jar", "--spring.datasource.url=jdbc:postgresql://127.0.0.1:65001/$${DB_NAME}",
"--spring.datasource.username=$${DB_USER}", "--spring.datasource.password=$${DB_PASSWORD}",
"--interface-name=$${INTERFACE}", "--local-ip=$${LOCAL_IP}", "--account-login=$${WEB_LOGIN}",

View File

@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

View File

@@ -12,13 +12,14 @@ import ru.serega6531.packmate.model.pojo.SubscriptionMessage;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
@Service
@Slf4j
public class StreamSubscriptionService {
private List<WebSocketSession> subscribers = new ArrayList<>();
private List<WebSocketSession> subscribers = Collections.synchronizedList(new ArrayList<>());
private final ObjectMapper mapper;

View File

@@ -11,6 +11,7 @@ spring:
hibernate:
temp:
use_jdbc_metadata_defaults: false
database-platform: org.hibernate.dialect.PostgreSQLDialect
enable-capture: true