diff --git a/build.gradle b/build.gradle index 17abe78..535db11 100644 --- a/build.gradle +++ b/build.gradle @@ -23,7 +23,7 @@ ext { pmdVersion = '5.5.1' guavaVersion = '19.0' jadiraVersion = '5.0.0.GA' - swaggerVersion = '2.3.0' + swaggerVersion = '2.5.0' } group = 'com.leanstacks' diff --git a/src/main/java/com/leanstacks/ws/ApiDocsConfiguration.java b/src/main/java/com/leanstacks/ws/ApiDocsConfiguration.java index 6cab095..13952f4 100644 --- a/src/main/java/com/leanstacks/ws/ApiDocsConfiguration.java +++ b/src/main/java/com/leanstacks/ws/ApiDocsConfiguration.java @@ -14,8 +14,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2; /** - * The ApiDocsConfiguration class provides configuration beans for the Swagger - * API documentation generator. + * The ApiDocsConfiguration class provides configuration beans for the Swagger API documentation generator. * * @author Matt Warman */ @@ -27,16 +26,15 @@ public class ApiDocsConfiguration { /** * The project version. */ - public static final String PROJECT_VERSION = "1.6.0"; + public static final String PROJECT_VERSION = "1.6.1"; /** * The project contact information. */ public static final String PROJECT_CONTACT = "LeanStacks.com"; /** - * Create a Docket class to be used by Springfox's Swagger API Documentation - * framework. See http://springfox.github.io/springfox/ for more - * information. + * Create a Docket class to be used by Springfox's Swagger API Documentation framework. See + * http://springfox.github.io/springfox/ for more information. * * @return A Docket instance. */ @@ -44,15 +42,12 @@ public class ApiDocsConfiguration { public Docket docket() { final Predicate paths = PathSelectors.ant("/api/**"); - final ApiInfo apiInfo = new ApiInfoBuilder() - .title("Project Skeleton for Spring Boot Web Services") - .description( - "The Spring Boot web services starter project provides a foundation " - + "to rapidly construct a RESTful web services application.") + final ApiInfo apiInfo = new ApiInfoBuilder().title("Project Skeleton for Spring Boot Web Services") + .description("The Spring Boot web services starter project provides a foundation " + + "to rapidly construct a RESTful web services application.") .contact(PROJECT_CONTACT).version(PROJECT_VERSION).build(); - final Docket docket = new Docket(DocumentationType.SWAGGER_2) - .apiInfo(apiInfo).select().paths(paths).build(); + final Docket docket = new Docket(DocumentationType.SWAGGER_2).apiInfo(apiInfo).select().paths(paths).build(); return docket; }