Patch 66bfc6ce328ff55b7af8ccacf3d6a8a4f71848c9
Commit message:
Groovy console Spring Boot project initialized
diff --git a/code/groovy_console/pom.xml b/code/groovy_console/pom.xml
new file mode 100644
index 0000000..61d7737
--- /dev/null
+++ b/code/groovy_console/pom.xml
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+ https://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-parent</artifactId>
+ <version>3.3.2</version>
+ <relativePath/> <!-- lookup parent from repository -->
+ </parent>
+
+ <groupId>groovy.study</groupId>
+ <artifactId>groovy-console</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+
+ <properties>
+ <java.version>17</java.version>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-web</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-test</artifactId>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <directory>${TMP_MAVEN_BUILDS_DIR}${project.artifactId}</directory>
+ <plugins>
+ <plugin>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-maven-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
diff --git a/code/groovy_console/src/main/java/groovyconsole/Application.java b/code/groovy_console/src/main/java/groovyconsole/Application.java
new file mode 100644
index 0000000..3c6a122
--- /dev/null
+++ b/code/groovy_console/src/main/java/groovyconsole/Application.java
@@ -0,0 +1,12 @@
+package groovyconsole;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication
+public class Application {
+
+ public static void main(String[] args) {
+ SpringApplication.run(Application.class, args);
+ }
+}
diff --git a/code/groovy_console/src/main/resources/application.properties b/code/groovy_console/src/main/resources/application.properties
new file mode 100644
index 0000000..2109a44
--- /dev/null
+++ b/code/groovy_console/src/main/resources/application.properties
@@ -0,0 +1 @@
+spring.application.name=demo
diff --git a/code/groovy_console/src/test/java/groovyconsole/ApplicationTests.java b/code/groovy_console/src/test/java/groovyconsole/ApplicationTests.java
new file mode 100644
index 0000000..00ca800
--- /dev/null
+++ b/code/groovy_console/src/test/java/groovyconsole/ApplicationTests.java
@@ -0,0 +1,13 @@
+package groovyconsole;
+
+import org.junit.jupiter.api.Test;
+import org.springframework.boot.test.context.SpringBootTest;
+
+@SpringBootTest
+class ApplicationTests {
+
+ @Test
+ void contextLoads() {
+ }
+
+}