feat: YABL_BOARD-107 Build and logs fix

master
Terekhin Alexandr 3 years ago
parent d34978037f
commit 52509c477c
Signed by: didinst
GPG Key ID: D2EF94423C23BF12
  1. 10
      build.gradle
  2. 3
      src/main/java/com/yablochkov/ocppstub/EventHandler.java

@ -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);
}

Loading…
Cancel
Save