feat: YABL_BOARD-107 Build and logs fix
This commit is contained in:
+9
-1
@@ -1,18 +1,26 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
id "io.freefair.lombok" version "5.3.0"
|
||||
id 'org.springframework.boot' version '2.7.4'
|
||||
id 'io.spring.dependency-management' version '1.0.14.RELEASE'
|
||||
}
|
||||
|
||||
group 'org.example'
|
||||
version '1.0-SNAPSHOT'
|
||||
sourceCompatibility = '17'
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
configurations {
|
||||
compileOnly {
|
||||
extendsFrom annotationProcessor
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly 'org.projectlombok:lombok'
|
||||
annotationProcessor 'org.projectlombok:lombok'
|
||||
implementation group: 'eu.chargetime.ocpp', name: 'v1_6', version: '1.0.1'
|
||||
implementation 'org.springframework.boot:spring-boot-starter'
|
||||
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
||||
|
||||
@@ -5,10 +5,12 @@ import eu.chargetime.ocpp.feature.profile.ServerCoreEventHandler;
|
||||
import eu.chargetime.ocpp.model.SessionInformation;
|
||||
import eu.chargetime.ocpp.model.core.*;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
@Slf4j
|
||||
@Component
|
||||
@RequiredArgsConstructor
|
||||
public class EventHandler implements ServerCoreEventHandler, ServerEvents {
|
||||
@@ -64,6 +66,7 @@ public class EventHandler implements ServerCoreEventHandler, ServerEvents {
|
||||
|
||||
@Override
|
||||
public void newSession(UUID sessionIndex, SessionInformation information) {
|
||||
log.info("Start new session {} {} {}", sessionIndex, information.getAddress(), information.getIdentifier());
|
||||
sessionService.register(sessionIndex, information);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user