updated to build with java 11 compatibility

This commit is contained in:
Lucio Lelii 2022-12-06 12:57:10 +01:00
parent 8a94acbabb
commit 4b5f467cd7
4 changed files with 7 additions and 42 deletions

View File

@ -30,10 +30,6 @@
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>

View File

@ -80,7 +80,12 @@
<artifactId>jaxb-core</artifactId>
</dependency>
<dependency>
<groupId>jakarta.activation</groupId>
<artifactId>jakarta.activation-api</artifactId>
<version>1.2.2</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>

View File

@ -1,35 +0,0 @@
package org.gcube.data.transfer.service;
import javax.inject.Inject;
import javax.xml.bind.annotation.XmlRootElement;
import org.gcube.data.transfer.service.transfers.engine.CapabilitiesProvider;
import org.gcube.smartgears.handlers.application.ApplicationLifecycleEvent.Start;
import org.gcube.smartgears.handlers.application.ApplicationLifecycleEvent.Stop;
import org.gcube.smartgears.handlers.application.ApplicationLifecycleHandler;
import lombok.extern.slf4j.Slf4j;
@XmlRootElement(name = "data-transfer-lifecycle")
@Slf4j
public class DTServiceLifecycleMAnager extends ApplicationLifecycleHandler{
@Inject
CapabilitiesProvider capabilities;
@Override
public void onStart(Start e) {
super.onStart(e);
log.info("Capabilities : "+capabilities.get());
}
@Override
public void onStop(Stop e) {
// TODO Auto-generated method stub
super.onStop(e);
}
}

View File

@ -1 +0,0 @@
org.gcube.data.transfer.service.DTServiceLifecycleMAnager