Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.

Commit

Permalink
Upgrade to Java 10, Vaadin 8.5.1, Spring Boot 2
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-baiborodine committed Aug 29, 2018
1 parent 1fb1684 commit 932855d
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 20 deletions.
22 changes: 11 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,28 @@

<groupId>com.kiroule</groupId>
<artifactId>jpetstore-6-vaadin-spring-boot</artifactId>
<version>0.0.2-SNAPSHOT</version>
<version>0.0.3-SNAPSHOT</version>
<packaging>jar</packaging>

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.4.RELEASE</version>
<version>2.0.4.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>

<name>jpetstore-6-vaadin-spring-boot</name>
<description>JPetStore Vaadin 8 with Spring Boot</description>

<properties>
<vaadin.version>8.3.0</vaadin.version>
<vaadin.version>8.5.1</vaadin.version>
<vaadin-spring.version>3.0.0</vaadin-spring.version>
<vaadin.plugin.version>${vaadin.version}</vaadin.plugin.version>
<org.vaadin.spring.version>0.0.7.RELEASE</org.vaadin.spring.version>
<org.vaadin.spring.version>2.0.0.RELEASE</org.vaadin.spring.version>

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>10</maven.compiler.source>
<maven.compiler.target>10</maven.compiler.target>
<vaadin.widgetset.mode>cdn</vaadin.widgetset.mode>
</properties>

Expand Down Expand Up @@ -93,7 +93,7 @@
<dependency>
<groupId>org.vaadin.addon</groupId>
<artifactId>confirmdialog</artifactId>
<version>3.1.2</version>
<version>3.2.0</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
Expand All @@ -108,7 +108,7 @@
<dependency>
<groupId>org.vaadin</groupId>
<artifactId>viritin</artifactId>
<version>2.3</version>
<version>2.6</version>
</dependency>

<!-- Spring -->
Expand All @@ -119,7 +119,7 @@
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.3.1</version>
<version>1.3.2</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down Expand Up @@ -216,7 +216,7 @@
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<jvmArguments>
<!-- -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005-->
<!-- -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005-->
</jvmArguments>
</configuration>
</plugin>
Expand All @@ -243,4 +243,4 @@
</plugins>
</build>

</project>
</project>
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package com.kiroule.jpetstore.vaadinspring;

import com.kiroule.jpetstore.vaadinspring.config.DataSourceConfig;
import com.kiroule.jpetstore.vaadinspring.config.SecurityConfig;
import com.kiroule.jpetstore.vaadinspring.config.ServiceConfig;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration;
import org.springframework.context.annotation.Import;
import org.vaadin.spring.events.annotation.EnableEventBus;

@SpringBootApplication(exclude = {SecurityAutoConfiguration.class })
@Import({DataSourceConfig.class, ServiceConfig.class})
@SpringBootApplication
@Import({DataSourceConfig.class, ServiceConfig.class, SecurityConfig.class})
@EnableEventBus
public class JPetStore6Application {

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.kiroule.jpetstore.vaadinspring.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

@EnableWebSecurity
@Configuration
public class SecurityConfig extends WebSecurityConfigurerAdapter {

@Override
protected void configure(HttpSecurity http) throws Exception {
http.csrf().disable().authorizeRequests().anyRequest().permitAll();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public void init() {
.bind(Item::getListPrice, null);
getBinder()
.forField(quantity)
.withConverter(new StringToIntegerConverter(0, null))
.withConverter(new StringToIntegerConverter(0, "Cannot convert quantity!"))
.bind(Item::getQuantity, null);
addToCartButton.addClickListener(event -> {
UI.getCurrent().removeWindow(getPopup());
Expand Down
7 changes: 2 additions & 5 deletions src/main/webapp/VAADIN/themes/jpetstoretheme/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -1016,10 +1016,6 @@
* @group upload
*/

/**
*
*/

/**
* @group window
*/
Expand Down Expand Up @@ -1081,7 +1077,7 @@
*/

.v-vaadin-version:after {
content: "8.3.0";
content: "8.5.1";
}

.v-widget {
Expand Down Expand Up @@ -12614,6 +12610,7 @@ div.v-layout.v-horizontal.v-widget {
width: 100% !important;
height: auto !important;
padding: 9px;
display: inline-flex;
}

.jpetstoretheme .v-colorpicker-preview-textfield {
Expand Down

0 comments on commit 932855d

Please sign in to comment.