From 70d06be07468e5892b8f93cde26b6005ad89ea3f Mon Sep 17 00:00:00 2001
From: Luis Ferreira Pires <l.ferreirapires@utwente.nl>
Date: Wed, 24 Feb 2021 10:05:23 +0100
Subject: [PATCH] Fixed console problem to run bootRun (see
 https://github.com/spring-projects/spring-shell/issues/167). Cleaned up
 application.properties file.

---
 build.gradle     | 17 ++++++++++-------
 spring-shell.log | 13 ++-----------
 2 files changed, 12 insertions(+), 18 deletions(-)

diff --git a/build.gradle b/build.gradle
index dc9d64d..700c394 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,23 +1,26 @@
 plugins {
-	id 'org.springframework.boot' version '2.2.2.RELEASE'
-	id 'io.spring.dependency-management' version '1.0.8.RELEASE'
+	id 'org.springframework.boot' version '2.4.3'
+	id 'io.spring.dependency-management' version '1.0.11.RELEASE'
 	id 'java'
 }
 
 group = 'nl.utwente.soa'
 version = '0.0.1-SNAPSHOT'
-sourceCompatibility = '1.8'
+sourceCompatibility = '11'
 
 repositories {
 	mavenCentral()
 }
 
 dependencies {
-	compile('org.springframework.shell:spring-shell-starter:2.0.0.RELEASE')
-
+	implementation 'org.springframework.shell:spring-shell-starter:2.0.0.RELEASE'
+	implementation 'org.springframework.boot:spring-boot-starter'
+	testImplementation 'org.springframework.boot:spring-boot-starter-test'
+}
 
-	compileOnly 'org.projectlombok:lombok:1.18.12'
-	annotationProcessor 'org.projectlombok:lombok:1.18.12'
+bootRun {
+    main = 'nl.utwente.soa.inventoryApplication.InventoryApplication'
+    standardInput = System.in
 }
 
 test {
diff --git a/spring-shell.log b/spring-shell.log
index 7ad6f2b..9ddac45 100644
--- a/spring-shell.log
+++ b/spring-shell.log
@@ -1,11 +1,2 @@
-1583005735412:purchase
-1583005737534:purchsae
-1583005740751:purchase
-1583005815069:current
-1583005817072:sel 100
-1583005819819:sell 100
-1583005822321:current
-1583005843578:purchase
-1583005850295:sell 50000
-1583006076290:help
-1583006336388:exit
+1614157428833:current
+1614157453899:exit
-- 
GitLab