Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Issue 49 support for jakarta EE8 #403

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions boost-maven/boost-boms/boost-jakarta-ee8-apis-bom/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (c) 2019 IBM Corporation and others. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License v1.0 which accompanies this distribution,
and is available at http://www.eclipse.org/legal/epl-v10.html Contributors:
IBM Corporation - initial API and implementation -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.microshed.boost</groupId>
<artifactId>boost-boms</artifactId>
<version>0.2.2-SNAPSHOT</version>
</parent>

<groupId>org.microshed.boost.boms</groupId>
<artifactId>boost-jakarta-ee8-apis-bom</artifactId>
<packaging>pom</packaging>

<description>Boost Jakarta EE8 APIs BOM</description>

<dependencyManagement>
<dependencies>
<!-- jaxrs -->
<dependency>
<groupId>jakarta.ws.rs</groupId>
<artifactId>jakarta.ws.rs-api</artifactId>
<version>2.1.6</version>
</dependency>
<!-- jpa -->
<dependency>
<groupId>jakarta.persistence</groupId>
<artifactId>jakarta.persistence-api</artifactId>
<version>2.2.3</version>
</dependency>
<dependency>
<groupId>jakarta.transaction</groupId>
<artifactId>jakarta.transaction-api</artifactId>
<version>1.3.3</version>
</dependency>
<dependency>
<groupId>jakarta.enterprise</groupId>
<artifactId>jakarta.enterprise.cdi-api</artifactId>
<version>2.0.2</version>
</dependency>
<dependency>
<groupId>jakarta.json</groupId>
<artifactId>jakarta.json-api</artifactId>
<version>1.1.6</version>
</dependency>
<dependency>
<groupId>jakarta.json.bind</groupId>
<artifactId>jakarta.json.bind-api</artifactId>
<version>1.0.2</version>
</dependency>
<dependency>
<groupId>jakarta.validation</groupId>
<artifactId>jakarta.validation-api</artifactId>
<version>2.0.2</version>
</dependency>
</dependencies>
</dependencyManagement>
</project>
80 changes: 80 additions & 0 deletions boost-maven/boost-boms/booster-jakarta-ee8-bom/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<!-- Copyright (c) 2019 IBM Corporation and others. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License v1.0 which accompanies this distribution,
and is available at http://www.eclipse.org/legal/epl-v10.html Contributors:
IBM Corporation - initial API and implementation -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.microshed.boost</groupId>
<artifactId>boost-boms</artifactId>
<version>0.2.2-SNAPSHOT</version>
</parent>

<groupId>org.microshed.boost.boms</groupId>
<artifactId>jakarta-ee8-bom</artifactId>
<packaging>pom</packaging>

<description>Booster Jakarta EE8 Feature Bom</description>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.microshed.boost.boms</groupId>
<artifactId>boost-jakarta-ee8-apis-bom</artifactId>
<version>0.2.2-SNAPSHOT</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.microshed.boost.boms</groupId>
<artifactId>runtimes-bom</artifactId>
<version>0.2.2-SNAPSHOT</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.microshed.boost.boosters</groupId>
<artifactId>jaxrs</artifactId>
<!-- Booster version distinct from the BOM, boost-maven-plugin
version -->
<!-- Could also use 7.0, 8.0 for EE7, 8 -->
<!-- Probably will be 1.0 for initial GA -->
<version>2.1-0.2.2-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.microshed.boost.boosters</groupId>
<artifactId>jdbc</artifactId>
<version>0.2.2-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.microshed.boost.boosters</groupId>
<artifactId>jpa</artifactId>
<version>2.2-0.2.2-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.microshed.boost.boosters</groupId>
<artifactId>cdi</artifactId>
<version>2.0-0.2.2-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.microshed.boost.boosters</groupId>
<artifactId>jsonp</artifactId>
<version>1.1-0.2.2-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.microshed.boost.boosters</groupId>
<artifactId>bean-validation</artifactId>
<version>2.0-0.2.2-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>
</dependencyManagement>
</project>
32 changes: 17 additions & 15 deletions boost-maven/boost-boms/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,23 @@
<packaging>pom</packaging>

<modules>
<module>boost-ee7-apis-bom</module>
<module>booster-ee7-bom</module>
<module>boost-ee8-apis-bom</module>
<module>booster-ee8-bom</module>
<module>booster-mp14-bom</module>
<module>booster-mp20-bom</module>
<module>booster-mp21-bom</module>
<module>booster-mp22-bom</module>
<module>booster-mp30-bom</module>
<module>boost-mp14-apis-bom</module>
<module>boost-mp20-apis-bom</module>
<module>boost-mp21-apis-bom</module>
<module>boost-mp22-apis-bom</module>
<module>boost-mp30-apis-bom</module>
<module>booster-runtimes-bom</module>
<module>boost-ee7-apis-bom</module>
<module>booster-ee7-bom</module>
<module>boost-ee8-apis-bom</module>
<module>booster-ee8-bom</module>
<module>booster-mp14-bom</module>
<module>booster-mp20-bom</module>
<module>booster-mp21-bom</module>
<module>booster-mp22-bom</module>
<module>booster-mp30-bom</module>
<module>boost-mp14-apis-bom</module>
<module>boost-mp20-apis-bom</module>
<module>boost-mp21-apis-bom</module>
<module>boost-mp22-apis-bom</module>
<module>boost-mp30-apis-bom</module>
<module>booster-runtimes-bom</module>
<module>booster-jakarta-ee8-bom</module>
<module>boost-jakarta-ee8-apis-bom</module>
</modules>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>org.microshed.boost</groupId>
<artifactId>jakarta-test-jaxrs-2.1</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>

<pluginRepositories>
<!-- Configure Sonatype OSS Maven snapshots repository -->
<pluginRepository>
<id>sonatype-nexus-snapshots</id>
<name>Sonatype Nexus Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</pluginRepository>
</pluginRepositories>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.microshed.boost.boms</groupId>
<artifactId>jakarta-ee8-bom</artifactId>
<version>@pom.version@</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>org.microshed.boost.boosters</groupId>
<artifactId>jaxrs</artifactId>
</dependency>
<dependency>
<groupId>org.microshed.boost.boosters</groupId>
<artifactId>bean-validation</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>3.1</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.microshed.boost</groupId>
<artifactId>boost-maven-plugin</artifactId>
<version>@pom.version@</version>
<executions>
<execution>
<goals>
<goal>package</goal>
</goals>
</execution>
<execution>
<id>test-start-server</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
</goals>
</execution>
<execution>
<id>test-stop-server</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.22.1</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>ol</id>
<activation>
<property>
<name>boostRuntime</name>
<value>ol</value>
</property>
</activation>
<dependencies>
<dependency>
<groupId>org.microshed.boost.runtimes</groupId>
<artifactId>openliberty</artifactId>
</dependency>
</dependencies>
</profile>
<profile>
<id>wlp</id>
<activation>
<property>
<name>boostRuntime</name>
<value>wlp</value>
</property>
</activation>
<dependencies>
<dependency>
<groupId>org.microshed.boost.runtimes</groupId>
<artifactId>wlp</artifactId>
</dependency>
</dependencies>
</profile>
<profile>
<id>tomee</id>
<activation>
<property>
<name>boostRuntime</name>
<value>tomee</value>
</property>
</activation>
<dependencies>
<dependency>
<groupId>org.microshed.boost.runtimes</groupId>
<artifactId>tomee</artifactId>
</dependency>
</dependencies>
</profile>
</profiles>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
package com.example;

import java.io.IOException;
import java.util.Set;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.validation.constraints.Size;

//import com.ibm.json.java.JSON;
//import com.ibm.json.java.JSONArray;
//import com.ibm.json.java.JSONObject;

// This class define the RESTful API to fetch the database service information
// <basepath>/api/hello

@Path("/hello")
public class HelloResource {

@GET
@Path("/hello")
@Produces("text/plain")
public String getInformation() throws Exception, IOException {
return "Hello World From Your Friends at Liberty Boost EE!";
}

@GET
@Path("/{dataIn}")
@Produces("text/plain")
public String getInformationWithString(@PathParam("dataIn") @Size(min = 2, max = 10) String dataIn)
throws Exception, IOException {
return ("Hello World From Your Friends at Liberty Boost EE! Your passed in string data is: " + dataIn);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Class-Path:

Loading