diff --git a/back/.checkstyle b/back/.checkstyle new file mode 100644 index 0000000..5783bc0 --- /dev/null +++ b/back/.checkstyle @@ -0,0 +1,7 @@ + + + + + + + diff --git a/back/Dockerfile b/back/Dockerfile index 2817048..2d4b2d5 100644 --- a/back/Dockerfile +++ b/back/Dockerfile @@ -5,11 +5,11 @@ COPY src /tmp/src/ WORKDIR /tmp/ RUN mvn clean compile assembly:single - - FROM bellsoft/liberica-openjdk-alpine:latest ENV LANG=C.UTF-8 +# add wget to manage the health check... +RUN apk add --no-cache wget RUN mkdir /application/ COPY --from=build /tmp/out/maven/*.jar /application/application.jar diff --git a/back/README.md b/back/README.md index 10b2059..93e303c 100644 --- a/back/README.md +++ b/back/README.md @@ -2,10 +2,18 @@ Generic backend for karideo in java =================================== - - mvn install +mvn compile + +mvn package + +// download all dependency in out/maven/dependency +mvn dependency:copy-dependencies + +java -cp out/maven/kar-karideo-0.1.0.jar org.kar.karideo.WebLauncher + + // create a single package jar mvn clean compile assembly:single diff --git a/back/karideo-back.iml b/back/karideo-back.iml deleted file mode 100644 index c56ba78..0000000 --- a/back/karideo-back.iml +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/back/module-info.java b/back/module-info.java deleted file mode 100644 index e50dfdb..0000000 --- a/back/module-info.java +++ /dev/null @@ -1,12 +0,0 @@ -/** Basic module interface. - * - * @author Edouard DUPIN */ - -open module io.scenarium.store { - exports io.scenarium.oauth; - requires java.util; - requires javax.ws.rs.api; - requires java.xml.bind; - requires jackson.annotations; - requires jersey.server; -} diff --git a/back/pom.xml b/back/pom.xml index c172ba3..a4940fd 100644 --- a/back/pom.xml +++ b/back/pom.xml @@ -1,8 +1,9 @@ + - 4.0.0 - kar - karideo - 0.2.0 + 4.0.0 + org.kar + karideo + 0.2.0 3.1 17 @@ -15,7 +16,6 @@ https://gitea.atria-soft.org/api/packages/kangaroo-and-rabbit/maven - kangaroo-and-rabbit @@ -26,20 +26,39 @@ org.slf4j slf4j-simple 2.0.7 - - - - + + + org.junit.jupiter + junit-jupiter-api + 5.10.0 + test + + + org.junit.jupiter + junit-jupiter-engine + 5.10.0 + test + + src test/src - ${project.basedir}/out/maven/ + ${project.basedir}/out/maven/ src/resources + + + ${basedir}/test/resources + + org.apache.maven.plugins @@ -48,16 +67,15 @@ ${maven.compiler.source} ${maven.compiler.target} - - org.codehaus.mojo - exec-maven-plugin - 1.4.0 - - org.kar.karideo.WebLauncher - + org.codehaus.mojo + exec-maven-plugin + 1.4.0 + + org.kar.karideo.WebLauncher + @@ -79,27 +97,28 @@ maven-surefire-plugin 3.0.0-M5 - - maven-assembly-plugin - - - - fully.qualified.MainClass - - - - jar-with-dependencies - - - + + maven-assembly-plugin + + + + fully.qualified.MainClass + + + + jar-with-dependencies + + + @@ -124,6 +163,23 @@ true + + org.codehaus.mojo + exec-maven-plugin + 3.1.0 + + + exec-application + package + + java + + + + + org.kar.karideo.WebLauncher + +