diff --git a/core-java/src/main/java/com/baeldung/optional/Modem.java b/core-java/src/main/java/com/baeldung/optional/Modem.java new file mode 100644 index 0000000000..c37739819c --- /dev/null +++ b/core-java/src/main/java/com/baeldung/optional/Modem.java @@ -0,0 +1,13 @@ +package com.baeldung.optional; + +public class Modem { + private Double price; + + public Modem(Double price) { + this.price = price; + } + + public Double getPrice() { + return price; + } +} diff --git a/core-java/src/main/java/com/baeldung/java_8_features/Person.java b/core-java/src/main/java/com/baeldung/optional/Person.java similarity index 95% rename from core-java/src/main/java/com/baeldung/java_8_features/Person.java rename to core-java/src/main/java/com/baeldung/optional/Person.java index 82b6819699..47473c29ea 100644 --- a/core-java/src/main/java/com/baeldung/java_8_features/Person.java +++ b/core-java/src/main/java/com/baeldung/optional/Person.java @@ -1,4 +1,4 @@ -package com.baeldung.java_8_features; +package com.baeldung.optional; import java.util.Optional; diff --git a/core-java/src/test/java/com/baeldung/java/nio2/async/AsyncEchoTest.java b/core-java/src/test/java/com/baeldung/java/nio2/async/AsyncEchoTest.java index 93cb3e1eb6..9e20a7144f 100644 --- a/core-java/src/test/java/com/baeldung/java/nio2/async/AsyncEchoTest.java +++ b/core-java/src/test/java/com/baeldung/java/nio2/async/AsyncEchoTest.java @@ -33,4 +33,4 @@ public class AsyncEchoTest { client.stop(); } -} +} \ No newline at end of file diff --git a/core-java/src/test/java/com/baeldung/java8/optional/OptionalTest.java b/core-java/src/test/java/com/baeldung/java8/optional/OptionalTest.java index 1038043d49..8aeaf2b9f7 100644 --- a/core-java/src/test/java/com/baeldung/java8/optional/OptionalTest.java +++ b/core-java/src/test/java/com/baeldung/java8/optional/OptionalTest.java @@ -1,17 +1,15 @@ package com.baeldung.java8.optional; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; +import com.baeldung.optional.Modem; +import com.baeldung.optional.Person; +import org.junit.Test; import java.util.Arrays; import java.util.List; import java.util.NoSuchElementException; import java.util.Optional; -import org.junit.Test; - -import com.baeldung.java_8_features.Person; +import static org.junit.Assert.*; public class OptionalTest { // creating Optional @@ -95,7 +93,38 @@ public class OptionalTest { boolean is2017 = yearOptional.filter(y -> y == 2017).isPresent(); assertFalse(is2017); } + @Test + public void whenFiltersWithoutOptional_thenCorrect() { + assertTrue(priceIsInRange1(new Modem(10.0))); + assertFalse(priceIsInRange1(new Modem(9.9))); + assertFalse(priceIsInRange1(new Modem(null))); + assertFalse(priceIsInRange1(new Modem(15.5))); + } + + @Test + public void whenFiltersWithOptional_thenCorrect() { + assertTrue(priceIsInRange2(new Modem(10.0))); + assertFalse(priceIsInRange2(new Modem(9.9))); + assertFalse(priceIsInRange2(new Modem(null))); + assertFalse(priceIsInRange2(new Modem(15.5))); + } + + public boolean priceIsInRange1(Modem modem) { + boolean isInRange = false; + if (modem != null && modem.getPrice() != null && (modem.getPrice() >= 10 && modem.getPrice() <= 15)) { + isInRange = true; + } + return isInRange; + } + + public boolean priceIsInRange2(Modem modem2) { + return Optional.ofNullable(modem2) + .map(Modem::getPrice) + .filter(p -> p >= 10) + .filter(p -> p <= 15) + .isPresent(); + } // Transforming Value With map() @Test public void givenOptional_whenMapWorks_thenCorrect() { @@ -203,4 +232,4 @@ public class OptionalTest { System.out.println("Getting default value..."); return "Default Value"; } -} +} \ No newline at end of file diff --git a/jackson-annotations/src/main/java/com/baeldung/jacksonannotation/deserialization/jacksoninject/Author.java b/jackson-annotations/src/main/java/com/baeldung/jacksonannotation/deserialization/jacksoninject/Author.java index 2d816282b2..2fcb1bbf32 100644 --- a/jackson-annotations/src/main/java/com/baeldung/jacksonannotation/deserialization/jacksoninject/Author.java +++ b/jackson-annotations/src/main/java/com/baeldung/jacksonannotation/deserialization/jacksoninject/Author.java @@ -15,9 +15,8 @@ public class Author extends Person { List items = new ArrayList<>(); - public Author(){ - super(); - } + public Author(){} + public Author(String firstName, String lastName) { super(firstName, lastName); } diff --git a/jackson-annotations/src/main/java/com/baeldung/jacksonannotation/deserialization/jsondeserialize/Book.java b/jackson-annotations/src/main/java/com/baeldung/jacksonannotation/deserialization/jsondeserialize/Book.java index eb2c1c967c..b4cf1227cc 100644 --- a/jackson-annotations/src/main/java/com/baeldung/jacksonannotation/deserialization/jsondeserialize/Book.java +++ b/jackson-annotations/src/main/java/com/baeldung/jacksonannotation/deserialization/jsondeserialize/Book.java @@ -19,9 +19,7 @@ public class Book extends Item { private Date published; private BigDecimal pages; - public Book() { - super(); - } + public Book() {} public Book(String title, Author author) { super(title, author); diff --git a/jackson-annotations/src/main/java/com/baeldung/jacksonannotation/deserialization/jsonsetter/Author.java b/jackson-annotations/src/main/java/com/baeldung/jacksonannotation/deserialization/jsonsetter/Author.java index 534984f731..87767a11e3 100644 --- a/jackson-annotations/src/main/java/com/baeldung/jacksonannotation/deserialization/jsonsetter/Author.java +++ b/jackson-annotations/src/main/java/com/baeldung/jacksonannotation/deserialization/jsonsetter/Author.java @@ -18,9 +18,7 @@ public class Author extends Person { private List items = new ArrayList<>(); - public Author(){ - super(); - } + public Author(){} public Author(String firstName, String lastName) { super(firstName, lastName); diff --git a/jackson-annotations/src/main/java/com/baeldung/jacksonannotation/serialization/jsonserialize/Book.java b/jackson-annotations/src/main/java/com/baeldung/jacksonannotation/serialization/jsonserialize/Book.java index a8a05b093c..6d003da903 100644 --- a/jackson-annotations/src/main/java/com/baeldung/jacksonannotation/serialization/jsonserialize/Book.java +++ b/jackson-annotations/src/main/java/com/baeldung/jacksonannotation/serialization/jsonserialize/Book.java @@ -19,9 +19,7 @@ public class Book extends Item { private Date published; private BigDecimal pages; - public Book(){ - super(); - } + public Book(){} public Book(String title, Author author) { super(title, author); diff --git a/jackson-annotations/src/test/java/com/baeldung/jacksonannotation/deserialization/jacksoninject/JacksonInjectTest.java b/jackson-annotations/src/test/java/com/baeldung/jacksonannotation/deserialization/jacksoninject/JacksonInjectTest.java index 7c9436d711..8b0e9a9688 100644 --- a/jackson-annotations/src/test/java/com/baeldung/jacksonannotation/deserialization/jacksoninject/JacksonInjectTest.java +++ b/jackson-annotations/src/test/java/com/baeldung/jacksonannotation/deserialization/jacksoninject/JacksonInjectTest.java @@ -32,7 +32,6 @@ public class JacksonInjectTest { // assert assertThat(author.getId()).isEqualTo(id); - /* { "firstName": "Alex", diff --git a/spring-jpa/pom.xml b/spring-jpa/pom.xml index cf0c2246af..2229d64abe 100644 --- a/spring-jpa/pom.xml +++ b/spring-jpa/pom.xml @@ -43,7 +43,7 @@ xml-apis xml-apis - 1.4.01 + ${xml-apis.version} org.javassist @@ -77,7 +77,7 @@ javax.el javax.el-api - 2.2.5 + ${javax.el-api.version} @@ -196,47 +196,48 @@ - 4.3.2.RELEASE - 3.20.0-GA + 4.3.4.RELEASE + 3.21.0-GA - 5.2.2.Final - 5.1.38 - 1.10.2.RELEASE - 1.4.192 + 5.2.5.Final + 5.1.40 + 1.10.5.RELEASE + 1.4.193 1.2 2.5 - 1.7.13 - 1.1.3 + 1.7.21 + 1.1.7 - 5.2.2.Final + 5.3.3.Final + 1.4.01 + 2.2.5 19.0 - 3.4 + 3.5 1.3 4.12 1.10.19 - 4.4.1 - 4.5 + 4.4.5 + 4.5.2 2.9.0 - 3.5.1 + 3.6.0 2.19.1 2.7 - 1.4.18 - 2.4 - + 1.6.1 + 2.6 diff --git a/spring-katharsis/pom.xml b/spring-katharsis/pom.xml index e2e3ea6f97..32f24231a9 100644 --- a/spring-katharsis/pom.xml +++ b/spring-katharsis/pom.xml @@ -8,7 +8,7 @@ org.springframework.boot spring-boot-starter-parent - 1.3.3.RELEASE + 1.4.2.RELEASE @@ -61,9 +61,9 @@ 1.8 - 1.0.0 - 2.4.0 - 1.6.0 + 1.0.1 + 2.9.0 + 1.6.1 diff --git a/spring-mockito/pom.xml b/spring-mockito/pom.xml index c8e0d3b7f5..ca9bad2bc0 100644 --- a/spring-mockito/pom.xml +++ b/spring-mockito/pom.xml @@ -13,7 +13,7 @@ org.springframework.boot spring-boot-starter-parent - 1.3.3.RELEASE + 1.4.2.RELEASE @@ -30,7 +30,7 @@ org.mockito mockito-all - 1.10.19 + ${mockito.version} @@ -91,6 +91,7 @@ UTF-8 1.8 + 1.10.19 diff --git a/spring-mvc-email/pom.xml b/spring-mvc-email/pom.xml index 0d3acec1fe..a04097e027 100644 --- a/spring-mvc-email/pom.xml +++ b/spring-mvc-email/pom.xml @@ -11,7 +11,7 @@ org.springframework.boot spring-boot-starter-parent - 1.4.0.RELEASE + 1.4.2.RELEASE @@ -24,18 +24,15 @@ org.springframework.boot spring-boot-starter-mail - 1.4.0.RELEASE org.apache.tomcat.embed tomcat-embed-jasper - 8.5.4 javax.servlet jstl - 1.2 diff --git a/spring-mvc-forms/pom.xml b/spring-mvc-forms/pom.xml index 370fd7feb2..c0cac4d349 100644 --- a/spring-mvc-forms/pom.xml +++ b/spring-mvc-forms/pom.xml @@ -84,14 +84,14 @@ - 4.0.6.RELEASE - 2.4 + 4.3.4.RELEASE + 2.6 1.2 2.3.1 3.1.0 - 3.5.1 + 3.6.0 1.8 - 5.1.1.Final + 5.3.3.Final enter-location-of-server diff --git a/spring-mvc-java/pom.xml b/spring-mvc-java/pom.xml index 8e2db044a6..3c1e44d13a 100644 --- a/spring-mvc-java/pom.xml +++ b/spring-mvc-java/pom.xml @@ -47,13 +47,13 @@ javax.servlet javax.servlet-api - 3.0.1 + ${javax.servlet-api.version} provided javax.servlet jstl - 1.2 + ${jstl.version} runtime @@ -78,7 +78,7 @@ commons-fileupload commons-fileupload - 1.3.1 + ${commons-fileupload.version} net.sourceforge.htmlunit @@ -150,7 +150,7 @@ com.jayway.jsonpath json-path - 2.2.0 + ${jsonpath.version} test @@ -184,7 +184,7 @@ maven-resources-plugin - 2.7 + ${maven-resources-plugin.version} @@ -250,42 +250,46 @@ 4.3.4.RELEASE 4.2.0.RELEASE - 2.1.4.RELEASE - 2.7.8 + 2.1.5.RELEASE + 2.8.5 - 4.3.11.Final - 5.1.38 + 5.2.5.Final + 5.1.40 1.7.21 - 1.1.5 + 1.1.7 - 5.2.2.Final + 5.3.3.Final + 3.1.0 + 1.2 19.0 - 3.4 + 3.5 + 1.3.2 + 2.2.0 1.3 4.12 1.10.19 - 4.4.1 - 4.5 + 4.4.5 + 4.5.2 2.9.0 2.23 - 3.5.1 + 3.6.0 2.6 2.19.1 2.7 - 1.4.18 + 1.6.1 - 1.8.7 + 1.8.9 diff --git a/spring-mvc-java/src/test/java/com/baeldung/htmlunit/HtmlUnitWebScraping.java b/spring-mvc-java/src/test/java/com/baeldung/htmlunit/HtmlUnitWebScraping.java index f97bedddef..327bfc4596 100644 --- a/spring-mvc-java/src/test/java/com/baeldung/htmlunit/HtmlUnitWebScraping.java +++ b/spring-mvc-java/src/test/java/com/baeldung/htmlunit/HtmlUnitWebScraping.java @@ -2,6 +2,11 @@ package com.baeldung.htmlunit; import java.util.List; +import org.junit.After; +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; + import com.gargoylesoftware.htmlunit.WebClient; import com.gargoylesoftware.htmlunit.html.HtmlAnchor; import com.gargoylesoftware.htmlunit.html.HtmlHeading1; @@ -9,34 +14,31 @@ import com.gargoylesoftware.htmlunit.html.HtmlPage; public class HtmlUnitWebScraping { - private WebClient webClient; + private WebClient webClient; - @Before - public void init() throws Exception { - webClient = new WebClient(); - } + @Before + public void init() throws Exception { + webClient = new WebClient(); + } - @After - public void close() throws Exception { - webClient.close(); - } + @After + public void close() throws Exception { + webClient.close(); + } - @Test - public void givenBaeldungArchive_whenRetrievingArticle_thenHasH1() - throws Exception { - webClient.getOptions().setCssEnabled(false); - webClient.getOptions().setJavaScriptEnabled(false); + @Test + public void givenBaeldungArchive_whenRetrievingArticle_thenHasH1() throws Exception { + webClient.getOptions().setCssEnabled(false); + webClient.getOptions().setJavaScriptEnabled(false); - String url = "http://www.baeldung.com/full_archive"; - HtmlPage page = webClient.getPage(url); - String xpath = "(//ul[@class='car-monthlisting']/li)[1]/a"; - HtmlAnchor latestPostLink - = (HtmlAnchor) page.getByXPath(xpath).get(0); - HtmlPage postPage = latestPostLink.click(); + final String url = "http://www.baeldung.com/full_archive"; + final HtmlPage page = webClient.getPage(url); + final String xpath = "(//ul[@class='car-monthlisting']/li)[1]/a"; + final HtmlAnchor latestPostLink = (HtmlAnchor) page.getByXPath(xpath).get(0); + final HtmlPage postPage = latestPostLink.click(); - List h1 - = (List) postPage.getByXPath("//h1"); + final List h1 = (List) postPage.getByXPath("//h1"); - Assert.assertTrue(h1.size() > 0); - } + Assert.assertTrue(h1.size() > 0); + } } diff --git a/spring-mvc-java/src/test/java/com/baeldung/web/controller/GreetControllerIntegrationTest.java b/spring-mvc-java/src/test/java/com/baeldung/web/controller/GreetControllerIntegrationTest.java index db984eadfb..ca8c37175e 100644 --- a/spring-mvc-java/src/test/java/com/baeldung/web/controller/GreetControllerIntegrationTest.java +++ b/spring-mvc-java/src/test/java/com/baeldung/web/controller/GreetControllerIntegrationTest.java @@ -32,7 +32,7 @@ public class GreetControllerIntegrationTest { private MockMvc mockMvc; - private static final String CONTENT_TYPE = "application/json"; + private static final String CONTENT_TYPE = "application/json;charset=UTF-8"; @Before public void setup() throws Exception { @@ -41,7 +41,7 @@ public class GreetControllerIntegrationTest { @Test public void givenWAC_whenServletContext_thenItProvidesGreetController() { - ServletContext servletContext = wac.getServletContext(); + final ServletContext servletContext = wac.getServletContext(); Assert.assertNotNull(servletContext); Assert.assertTrue(servletContext instanceof MockServletContext); Assert.assertNotNull(wac.getBean("greetController")); @@ -54,7 +54,7 @@ public class GreetControllerIntegrationTest { @Test public void givenGreetURI_whenMockMVC_thenVerifyResponse() throws Exception { - MvcResult mvcResult = this.mockMvc.perform(MockMvcRequestBuilders.get("/greet")).andDo(print()).andExpect(MockMvcResultMatchers.status().isOk()).andExpect(MockMvcResultMatchers.jsonPath("$.message").value("Hello World!!!")).andReturn(); + final MvcResult mvcResult = this.mockMvc.perform(MockMvcRequestBuilders.get("/greet")).andDo(print()).andExpect(MockMvcResultMatchers.status().isOk()).andExpect(MockMvcResultMatchers.jsonPath("$.message").value("Hello World!!!")).andReturn(); Assert.assertEquals(CONTENT_TYPE, mvcResult.getResponse().getContentType()); } diff --git a/spring-mvc-java/src/test/java/com/baeldung/web/controller/GreetControllerUnitTest.java b/spring-mvc-java/src/test/java/com/baeldung/web/controller/GreetControllerUnitTest.java index eacd256438..0475bd933d 100644 --- a/spring-mvc-java/src/test/java/com/baeldung/web/controller/GreetControllerUnitTest.java +++ b/spring-mvc-java/src/test/java/com/baeldung/web/controller/GreetControllerUnitTest.java @@ -16,7 +16,7 @@ import org.springframework.test.web.servlet.setup.MockMvcBuilders; public class GreetControllerUnitTest { private MockMvc mockMvc; - private static final String CONTENT_TYPE = "application/json"; + private static final String CONTENT_TYPE = "application/json;charset=UTF-8"; @Before public void setup() { diff --git a/spring-mvc-no-xml/pom.xml b/spring-mvc-no-xml/pom.xml index 202aee7295..4437661199 100644 --- a/spring-mvc-no-xml/pom.xml +++ b/spring-mvc-no-xml/pom.xml @@ -27,14 +27,14 @@ javax.servlet javax.servlet-api - 3.0.1 + ${javax.servlet-api.version} provided javax.servlet jstl - 1.2 + ${jstl.version} runtime @@ -144,28 +144,31 @@ - 4.2.5.RELEASE + 4.3.4.RELEASE - 1.7.13 - 1.1.3 + 1.7.21 + 1.1.7 1.3 4.12 1.10.19 - 4.4.1 - 4.5 + 3.1.0 + 1.2 + + 4.4.5 + 4.5.2 2.9.0 - 3.5.1 + 3.6.0 2.6 2.19.1 2.7 - 1.4.18 + 1.6.1 diff --git a/spring-mvc-no-xml/src/main/resources/webSecurityConfig.xml b/spring-mvc-no-xml/src/main/resources/webSecurityConfig.xml index b9e15c7bae..febac349b0 100644 --- a/spring-mvc-no-xml/src/main/resources/webSecurityConfig.xml +++ b/spring-mvc-no-xml/src/main/resources/webSecurityConfig.xml @@ -1,8 +1,8 @@ diff --git a/spring-mvc-tiles/pom.xml b/spring-mvc-tiles/pom.xml index 1a72549e70..400f79fbe1 100644 --- a/spring-mvc-tiles/pom.xml +++ b/spring-mvc-tiles/pom.xml @@ -9,8 +9,14 @@ Integrating Spring MVC with Apache Tiles - 4.3.2.RELEASE - 3.0.5 + 4.3.4.RELEASE + 3.0.7 + 3.1.0 + 2.3.1 + 1.2 + + 3.6.0 + 2.6 @@ -34,24 +40,24 @@ org.apache.tiles tiles-jsp - ${apachetiles.version} + ${apache-tiles.version} javax.servlet javax.servlet-api - 3.1.0 + ${javax.servlet-api.version} javax.servlet.jsp javax.servlet.jsp-api - 2.3.1 + ${javax.servlet.jsp-api.version} javax.servlet jstl - 1.2 + ${jstl.version} @@ -62,16 +68,16 @@ org.apache.maven.plugins maven-compiler-plugin - 3.2 + ${maven-compiler-plugin.version} - 1.7 - 1.7 + 1.8 + 1.8 org.apache.maven.plugins maven-war-plugin - 2.4 + ${maven-war-plugin.version} src/main/webapp spring-mvc-tiles diff --git a/spring-mvc-velocity/pom.xml b/spring-mvc-velocity/pom.xml index 83f3150df9..31f2d19375 100644 --- a/spring-mvc-velocity/pom.xml +++ b/spring-mvc-velocity/pom.xml @@ -38,20 +38,20 @@ javax.servlet javax.servlet-api - 3.1.0 + ${javax.servlet-api.version} provided org.apache.velocity velocity - 1.7 + ${velocity.version} org.apache.velocity velocity-tools - 2.0 + ${velocity-tools.version} @@ -188,26 +188,29 @@ - 4.1.4.RELEASE + 4.3.4.RELEASE - + 1.3 4.12 1.10.19 - 1.6.4 + 1.6.6 - 4.4.1 - 4.5 + 4.4.5 + 4.5.2 - 2.4.1 + 3.1.0 + 1.7 + 2.0 + 2.9.0 - 3.5.1 + 3.6.0 2.6 2.19.1 2.7 - 1.4.18 + 1.6.1 diff --git a/spring-mvc-web-vs-initializer/pom.xml b/spring-mvc-web-vs-initializer/pom.xml index b448673ef8..c8bb08cb38 100644 --- a/spring-mvc-web-vs-initializer/pom.xml +++ b/spring-mvc-web-vs-initializer/pom.xml @@ -10,7 +10,7 @@ org.springframework.boot spring-boot-starter-parent - 1.3.6.RELEASE + 1.4.2.RELEASE @@ -94,7 +94,6 @@ org.assertj assertj-core - 3.5.1 test @@ -118,7 +117,7 @@ org.easymock easymock - 3.4 + ${easymock.version} test @@ -158,7 +157,6 @@ org.apache.maven.plugins maven-surefire-plugin - ${maven-surefire-plugin.version} **/*IntegrationTest.java @@ -206,42 +204,11 @@ - 4.3.1.RELEASE - 4.0.4.RELEASE - 3.20.0-GA - 1.2 - - - 4.3.11.Final - 5.1.38 - - - 1.7.13 - 1.1.3 - - - 5.2.2.Final + 4.3.4.RELEASE 19.0 - 3.4 - - - 1.3 - 4.12 - 1.10.19 - - 4.4.1 - 4.5 - - 2.9.0 - - - 3.5.1 - 2.6 - 2.19.1 - 2.7 - 1.4.18 + 3.4 diff --git a/spring-mvc-xml/pom.xml b/spring-mvc-xml/pom.xml index ca51a56633..f0e4bbff55 100644 --- a/spring-mvc-xml/pom.xml +++ b/spring-mvc-xml/pom.xml @@ -28,21 +28,21 @@ javax.servlet javax.servlet-api - 3.1.0 + ${javax.servlet.version} provided javax.servlet jstl - 1.2 + ${jstl.version} runtime org.hibernate hibernate-validator - 5.1.1.Final + ${hibernate-validator.version} @@ -110,12 +110,12 @@ commons-io commons-io - 2.2 + ${commons-io.version} com.maxmind.geoip2 geoip2 - 2.8.0 + ${geoip2.version} @@ -165,29 +165,45 @@ - 4.2.5.RELEASE - 2.7.8 + 4.3.4.RELEASE + 4.2.0.RELEASE + + + 5.2.5.Final + 5.1.40 + + + 4.4.5 + 4.5.2 - 1.7.13 - 1.1.3 + 1.7.21 + 1.1.7 + + + 5.3.3.Final + 1.2 + 3.1.0 + 2.8.5 + + + 19.0 + 3.5 + 2.5 + 2.8.0 1.3 4.12 1.10.19 - 4.4.1 - 4.5 - 2.9.0 - 3.5.1 + 3.6.0 2.6 2.19.1 - 2.7 - 1.4.18 + 1.6.1 diff --git a/spring-openid/pom.xml b/spring-openid/pom.xml index 39cf3e9d4e..6646cdea14 100644 --- a/spring-openid/pom.xml +++ b/spring-openid/pom.xml @@ -13,7 +13,7 @@ org.springframework.boot spring-boot-starter-parent - 1.3.3.RELEASE + 1.4.2.RELEASE diff --git a/spring-protobuf/pom.xml b/spring-protobuf/pom.xml index a080d51221..84ebeff9ae 100644 --- a/spring-protobuf/pom.xml +++ b/spring-protobuf/pom.xml @@ -5,23 +5,28 @@ spring-protobuf 0.1-SNAPSHOT spring-protobuf - + org.springframework.boot spring-boot-starter-parent - 1.2.4.RELEASE + 1.4.2.RELEASE + + 3.1.0 + 1.4 + + com.google.protobuf protobuf-java - 3.0.0-beta-3 + ${protobuf-java.version} com.googlecode.protobuf-java-format protobuf-java-format - 1.4 + ${protobuf-java-format.version}