From a7279b989108bebdfd34b72cf35d3f5c41f0e47a Mon Sep 17 00:00:00 2001 From: ScarletRedMan Date: Tue, 14 Jan 2025 17:09:52 +0700 Subject: [PATCH] feat: initial commit for subproject 'editor' --- .gitignore | 4 +- editor/.gitignore | 38 +++++++++++++++++++ editor/build.gradle | 32 ++++++++++++++++ .../dragonestia/editor/EditorApplication.java | 12 ++++++ editor/src/main/resources/application.yaml | 6 +++ settings.gradle | 2 +- 6 files changed, 92 insertions(+), 2 deletions(-) create mode 100644 editor/.gitignore create mode 100644 editor/build.gradle create mode 100644 editor/src/main/java/ru/dragonestia/editor/EditorApplication.java create mode 100644 editor/src/main/resources/application.yaml diff --git a/.gitignore b/.gitignore index 0bc1acb..8b16239 100644 --- a/.gitignore +++ b/.gitignore @@ -24,4 +24,6 @@ bin/ .vscode/ .DS_Store -run/ \ No newline at end of file +run/ + +tarkov/ \ No newline at end of file diff --git a/editor/.gitignore b/editor/.gitignore new file mode 100644 index 0000000..ac0ef07 --- /dev/null +++ b/editor/.gitignore @@ -0,0 +1,38 @@ +node_modules +HELP.md +.gradle +build/ +!gradle/wrapper/gradle-wrapper.jar +!**/src/main/**/build/ +!**/src/test/**/build/ + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache +bin/ +!**/src/main/**/bin/ +!**/src/test/**/bin/ + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr +out/ +!**/src/main/**/out/ +!**/src/test/**/out/ + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ + +### VS Code ### +.vscode/ diff --git a/editor/build.gradle b/editor/build.gradle new file mode 100644 index 0000000..71fee9a --- /dev/null +++ b/editor/build.gradle @@ -0,0 +1,32 @@ +plugins { + id 'org.springframework.boot' version '3.4.1' + id 'io.spring.dependency-management' version '1.1.7' + id 'com.vaadin' version '24.6.1' +} + + +configurations { + compileOnly { + extendsFrom annotationProcessor + } +} + +ext { + set('vaadinVersion', "24.6.1") +} + +dependencies { + implementation 'org.springframework.boot:spring-boot-starter-data-mongodb' + implementation 'org.springframework.boot:spring-boot-starter-web' + + implementation 'com.vaadin:vaadin-spring-boot-starter' + + testImplementation 'org.springframework.boot:spring-boot-starter-test' + testRuntimeOnly 'org.junit.platform:junit-platform-launcher' +} + +dependencyManagement { + imports { + mavenBom "com.vaadin:vaadin-bom:${vaadinVersion}" + } +} diff --git a/editor/src/main/java/ru/dragonestia/editor/EditorApplication.java b/editor/src/main/java/ru/dragonestia/editor/EditorApplication.java new file mode 100644 index 0000000..6930c2a --- /dev/null +++ b/editor/src/main/java/ru/dragonestia/editor/EditorApplication.java @@ -0,0 +1,12 @@ +package ru.dragonestia.editor; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class EditorApplication { + + public static void main(String[] args) { + SpringApplication.run(EditorApplication.class, args); + } +} diff --git a/editor/src/main/resources/application.yaml b/editor/src/main/resources/application.yaml new file mode 100644 index 0000000..0c47145 --- /dev/null +++ b/editor/src/main/resources/application.yaml @@ -0,0 +1,6 @@ +spring: + application: + name: 'editor' + +server: + port: 8080 diff --git a/settings.gradle b/settings.gradle index 10887ae..0a70c40 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,3 +1,3 @@ rootProject.name = 'msb3' -include 'api' +include 'api', 'editor'