Skip to content

Commit

Permalink
Examples update for GitHub? Source and target version setting, releas…
Browse files Browse the repository at this point in the history
…e not doing the trick
  • Loading branch information
GedMarc committed Jan 3, 2024
1 parent 2809f6a commit 1dec8a2
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 16 deletions.
7 changes: 3 additions & 4 deletions Jaxrs/Basic/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,16 @@

<properties>
<maven.compiler.release>21</maven.compiler.release>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
</properties>

<dependencies>
<dependency>
<groupId>com.guicedee.servlets</groupId>
<artifactId>guiced-rest-services</artifactId>
</dependency>
<dependency>
<groupId>com.guicedee.servlets</groupId>
<artifactId>guiced-openapi</artifactId>
</dependency>


<dependency>
<groupId>org.junit.jupiter</groupId>
Expand Down
5 changes: 1 addition & 4 deletions Jaxrs/Basic/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
requires com.guicedee.guicedservlets.undertow;

requires java.net.http;
requires jakarta.ws.rs;
requires com.google.guice;
requires com.guicedee.guicedinjection;


exports com.guicedee.examples.jaxrs.basic;
opens com.guicedee.examples.jaxrs.basic to com.google.guice, com.fasterxml.jackson.databind, org.apache.cxf;
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package com.guicedee.examples.jaxrs.basic.tests;

import com.guicedee.examples.jaxrs.basic.HelloWorld;
import com.guicedee.guicedinjection.GuiceContext;
import com.guicedee.guicedservlets.undertow.GuicedUndertow;
import org.junit.jupiter.api.Test;

import java.net.URI;
Expand Down Expand Up @@ -29,5 +31,7 @@ public void testWorld() throws Exception
HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
assertEquals(200, response.statusCode());

GuiceContext.destroy();
}
}
1 change: 1 addition & 0 deletions Jaxrs/Basic/src/test/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
requires com.guicedee.guicedservlets.rest;
requires com.guicedee.guicedservlets.undertow;

opens com.guicedee.examples.jaxrs.basic.tests to com.google.guice, com.fasterxml.jackson.databind, org.apache.cxf,org.junit.platform.commons;
}
6 changes: 6 additions & 0 deletions Jaxrs/BasicJLink/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM alpine:3.14
LABEL authors="GedMarc"

COPY target/maven-jlink/default /opt

ENTRYPOINT ["/opt/bin/example"]
2 changes: 1 addition & 1 deletion Jaxrs/BasicJLink/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<noManPages>true</noManPages>
<stripDebug>true</stripDebug>
<verbose>true</verbose>
<compress>2</compress>
<compress>1</compress>
<launcher>example=com.guicedee.examples.jaxrs.basic/com.guicedee.examples.jaxrs.basic.HelloWorld</launcher>
</configuration>
<dependencies>
Expand Down
2 changes: 2 additions & 0 deletions Jaxrs/Binding/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

<properties>
<maven.compiler.release>21</maven.compiler.release>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public void testRS() throws Exception
System.out.println(response.body());

assertEquals(200, response.statusCode());


GuiceContext.destroy();
}
}
3 changes: 0 additions & 3 deletions Jpa/HibernateProperties/src/main/java/module-info.java

This file was deleted.

3 changes: 0 additions & 3 deletions Jpa/SystemProperties/src/main/java/module-info.java

This file was deleted.

0 comments on commit 1dec8a2

Please sign in to comment.