Skip to content
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.

Commit

Permalink
Merge pull request #45 from paypal/develop
Browse files Browse the repository at this point in the history
Bringing in 2.2.1 changes to master
  • Loading branch information
fabiocarvalho777 authored Nov 20, 2016
2 parents 60a93a0 + 9868442 commit 50627d7
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Add the Maven dependency below to your Spring Boot application pom file.<br>
<dependency>
<groupId>com.paypal.springboot</groupId>
<artifactId>resteasy-spring-boot-starter</artifactId>
<version>2.2.0-RELEASE</version>
<version>2.2.1-RELEASE</version>
<scope>runtime</scope>
</dependency>
```
Expand Down
16 changes: 16 additions & 0 deletions mds/RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Release notes

## 2.2.1-RELEASE

#### Release date
November 20th, 2016.

#### Third-party versions
- RESTEasy: 3.0.19.Final
- Spring Boot: 1.4.2.RELEASE

#### New features and enhancements
1. [43 - Upgrade Spring Boot to version 1.4.2](https://github.com/paypal/resteasy-spring-boot/issues/43)
1. [40 - Spring 4.1 is not supported although it easily can be](https://github.com/paypal/resteasy-spring-boot/issues/40)

#### Bug fixes
1. [42 - Remove deprecated code](https://github.com/paypal/resteasy-spring-boot/issues/42)

## 2.2.0-RELEASE

#### Release date
Expand Down
2 changes: 1 addition & 1 deletion mds/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Add the Maven dependency below to your Spring Boot application pom file.<br>
<dependency>
<groupId>com.paypal.springboot</groupId>
<artifactId>resteasy-spring-boot-starter</artifactId>
<version>2.2.0-RELEASE</version>
<version>2.2.1-RELEASE</version>
<scope>runtime</scope>
</dependency>
```
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<groupId>com.paypal.springboot</groupId>
<artifactId>resteasy-spring-boot-starter-parent</artifactId>
<version>2.2.0-RELEASE</version>
<version>2.2.1-RELEASE</version>
<packaging>pom</packaging>

<modules>
Expand Down
4 changes: 2 additions & 2 deletions resteasy-spring-boot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.paypal.springboot</groupId>
<artifactId>resteasy-spring-boot-starter</artifactId>
<version>2.2.0-RELEASE</version>
<version>2.2.1-RELEASE</version>
<name>${project.artifactId}</name>

<description>A Spring Boot starter for RESTEasy</description>
Expand Down Expand Up @@ -42,7 +42,7 @@
</distributionManagement>

<properties>
<springboot.version>1.4.0.RELEASE</springboot.version>
<springboot.version>1.4.2.RELEASE</springboot.version>
<resteasy.version>3.0.19.Final</resteasy.version>
<coverage.line>80</coverage.line>
<coverage.branch>80</coverage.branch>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
import org.jboss.resteasy.plugins.servlet.ResteasyServletInitializer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.context.embedded.ServletRegistrationBean;
import org.springframework.stereotype.Component;
import org.springframework.boot.web.servlet.ServletRegistrationBean;

/**
* This class is the Spring Boot equivalent of {@link ResteasyServletInitializer},
Expand All @@ -34,7 +33,6 @@
*
* @author Fabio Carvalho ([email protected] or [email protected])
*/
@Component(ResteasyApplicationBuilder.BEAN_NAME)
public class ResteasyApplicationBuilder {

public static final String BEAN_NAME = "JaxrsApplicationServletBuilder";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
Expand All @@ -30,7 +29,6 @@
*
*/
@Configuration
@Import({ResteasyApplicationBuilder.class, ResteasyEmbeddedServletInitializer.class})
@AutoConfigureAfter(WebMvcAutoConfiguration.class)
@EnableConfigurationProperties
public class ResteasySpringBootConfig {
Expand Down Expand Up @@ -97,5 +95,14 @@ public void contextDestroyed(ServletContextEvent sce) {

return servletContextListener;
}


@Bean(name = ResteasyApplicationBuilder.BEAN_NAME)
public ResteasyApplicationBuilder resteasyApplicationBuilder() {
return new ResteasyApplicationBuilder();
}

@Bean
public ResteasyEmbeddedServletInitializer resteasyEmbeddedServletInitializer() {
return new ResteasyEmbeddedServletInitializer();
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.paypal.springboot.resteasy;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.embedded.ServletRegistrationBean;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.ApplicationContext;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.testng.AbstractTestNGSpringContextTests;
Expand Down
4 changes: 2 additions & 2 deletions sample-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@

<groupId>com.test</groupId>
<artifactId>sample-app</artifactId>
<version>2.2.0-RELEASE</version>
<version>2.2.1-RELEASE</version>
<packaging>jar</packaging>

<description>Simple test application for the Resteasy Spring Boot starter</description>

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.4.0.RELEASE</version>
<version>1.4.2.RELEASE</version>
<relativePath/>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion sample-app/src/main/java/com/test/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.web.SpringBootServletInitializer;
import org.springframework.boot.web.support.SpringBootServletInitializer;

/**
* SpringBoot entry point application
Expand Down

0 comments on commit 50627d7

Please sign in to comment.