Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/release-6' into v6-master
Browse files Browse the repository at this point in the history
  • Loading branch information
tisuchida committed Dec 22, 2023
2 parents 59277fd + 65eeb80 commit 4b41887
Show file tree
Hide file tree
Showing 11 changed files with 123 additions and 100 deletions.
1 change: 1 addition & 0 deletions .mvn/jvm.config
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--add-opens java.base/java.lang=ALL-UNNAMED
108 changes: 56 additions & 52 deletions README.md

Large diffs are not rendered by default.

70 changes: 43 additions & 27 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@

<groupId>com.nablarch.example</groupId>
<artifactId>nablarch-example-rest</artifactId>
<version>5u23</version>
<version>6</version>
<packaging>war</packaging>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Expand Down Expand Up @@ -39,7 +39,7 @@
<dependency>
<groupId>com.nablarch.profile</groupId>
<artifactId>nablarch-bom</artifactId>
<version>5u23</version>
<version>6</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand All @@ -50,6 +50,20 @@
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>jakarta.platform</groupId>
<artifactId>jakarta.jakartaee-bom</artifactId>
<version>10.0.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.glassfish.jersey</groupId>
<artifactId>jersey-bom</artifactId>
<version>3.1.1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

Expand All @@ -72,7 +86,7 @@
</dependency>
<dependency>
<groupId>com.nablarch.framework</groupId>
<artifactId>nablarch-testing-jetty6</artifactId>
<artifactId>nablarch-testing-jetty12</artifactId>
<scope>test</scope>
</dependency>

Expand Down Expand Up @@ -138,39 +152,46 @@
</dependency>

<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-jpa_2.0_spec</artifactId>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
</dependency>

<dependency>
<groupId>jakarta.persistence</groupId>
<artifactId>jakarta.persistence-api</artifactId>
</dependency>

<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>javax.ws.rs-api</artifactId>
<version>2.1.1</version>
<groupId>jakarta.ws.rs</groupId>
<artifactId>jakarta.ws.rs-api</artifactId>
</dependency>

<dependency>
<groupId>org.hibernate</groupId>
<groupId>org.hibernate.validator</groupId>
<artifactId>hibernate-validator</artifactId>
<version>5.3.6.Final</version>
<version>8.0.0.Final</version>
<scope>runtime</scope>
</dependency>

<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-json-jackson</artifactId>
<version>2.35</version>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.14.1</version>
</dependency>

<dependency>
<groupId>org.glassfish.jersey.core</groupId>
<artifactId>jersey-client</artifactId>
<version>2.35</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.inject</groupId>
<artifactId>jersey-hk2</artifactId>
<version>2.35</version>
<scope>test</scope>
</dependency>

Expand Down Expand Up @@ -205,7 +226,7 @@
<plugin>
<groupId>jp.co.tis.gsp</groupId>
<artifactId>gsp-dba-maven-plugin</artifactId>
<version>4.6.0</version>
<version>5.0.0</version>
<configuration>
<erdFile>src/main/resources/entity/data-model.edm</erdFile>

Expand Down Expand Up @@ -275,18 +296,13 @@
</configuration>
</plugin>
<plugin>
<groupId>net.unit8.waitt</groupId>
<artifactId>waitt-maven-plugin</artifactId>
<version>1.2.3</version>
<groupId>org.eclipse.jetty.ee10</groupId>
<artifactId>jetty-ee10-maven-plugin</artifactId>
<version>12.0.3</version>
<configuration>
<port>9080</port>
<servers>
<server>
<groupId>net.unit8.waitt.server</groupId>
<artifactId>waitt-tomcat8</artifactId>
<version>1.2.3</version>
</server>
</servers>
<httpConnector>
<port>9080</port>
</httpConnector>
</configuration>
</plugin>
<plugin>
Expand Down
18 changes: 9 additions & 9 deletions src/main/java/com/nablarch/example/action/ProjectAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
import nablarch.fw.web.HttpRequest;
import nablarch.fw.web.HttpResponse;

import javax.validation.Valid;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.PATCH;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import jakarta.validation.Valid;
import jakarta.ws.rs.Consumes;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.PATCH;
import jakarta.ws.rs.POST;
import jakarta.ws.rs.PUT;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.core.MediaType;
import java.util.List;
import java.util.stream.Collectors;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import nablarch.fw.web.HttpRequest;
import nablarch.fw.web.HttpResponse;

import javax.persistence.OptimisticLockException;
import jakarta.persistence.OptimisticLockException;

/**
* Example用のエラーログ出力クラス。
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.nablarch.example.error;

import javax.persistence.OptimisticLockException;
import jakarta.persistence.OptimisticLockException;

import nablarch.common.dao.NoDataException;
import nablarch.fw.ExecutionContext;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/nablarch/example/form/ProjectForm.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import java.io.Serializable;

import javax.validation.constraints.AssertTrue;
import jakarta.validation.constraints.AssertTrue;

import nablarch.core.validation.ee.Domain;
import nablarch.core.validation.ee.Required;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import java.io.Serializable;

import javax.validation.constraints.AssertTrue;
import jakarta.validation.constraints.AssertTrue;

import nablarch.core.validation.ee.Domain;
import nablarch.core.validation.ee.Required;
Expand Down
6 changes: 4 additions & 2 deletions src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
<web-app xmlns="https://jakarta.ee/xml/ns/jakartaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee
web-app_6_0.xsd"
version="6.0">

<context-param>
<param-name>di.config</param-name>
Expand Down
8 changes: 4 additions & 4 deletions src/test/java/com/nablarch/example/client/ProjectClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
import java.util.List;
import java.util.Map;

import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.client.Entity;
import javax.ws.rs.core.GenericType;
import javax.ws.rs.core.MediaType;
import jakarta.ws.rs.client.ClientBuilder;
import jakarta.ws.rs.client.Entity;
import jakarta.ws.rs.core.GenericType;
import jakarta.ws.rs.core.MediaType;

import nablarch.core.beans.BeanUtil;
import nablarch.core.beans.CopyOptions;
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/unit-test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
<property name="schema" value="PUBLIC"/>
</component>

<!-- テスト用HttpServerにJetty6を定義する -->
<component name="httpServerFactory" class="nablarch.fw.web.httpserver.HttpServerFactoryJetty6"/>
<!-- テスト用HttpServerにJetty12を定義する -->
<component name="httpServerFactory" class="nablarch.fw.web.httpserver.HttpServerFactoryJetty12"/>

<!-- エンティティテスト設定 -->
<component name="entityTestConfiguration" class="nablarch.test.core.entity.EntityTestConfiguration">
Expand Down

0 comments on commit 4b41887

Please sign in to comment.