From 4409a8e23c8e3ec18dd184c743a23e7cdc13aa36 Mon Sep 17 00:00:00 2001 From: fdai7736 Date: Tue, 16 Jan 2024 16:03:08 +0100 Subject: [PATCH] init --- .gitignore | 38 ++++++++++++++++++++++++ .gitlab-ci.yml | 35 ++++++++++++++++++++++ .idea/.gitignore | 3 ++ .idea/encodings.xml | 7 +++++ .idea/misc.xml | 15 ++++++++++ .idea/vcs.xml | 6 ++++ build-project.sh | 3 ++ pom.xml | 17 +++++++++++ src/main/java/de/hsfulda/onses/Main.java | 7 +++++ 9 files changed, 131 insertions(+) create mode 100644 .gitignore create mode 100644 .gitlab-ci.yml create mode 100644 .idea/.gitignore create mode 100644 .idea/encodings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/vcs.xml create mode 100755 build-project.sh create mode 100644 pom.xml create mode 100644 src/main/java/de/hsfulda/onses/Main.java diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5ff6309 --- /dev/null +++ b/.gitignore @@ -0,0 +1,38 @@ +target/ +!.mvn/wrapper/maven-wrapper.jar +!**/src/main/**/target/ +!**/src/test/**/target/ + +### IntelliJ IDEA ### +.idea/modules.xml +.idea/jarRepositories.xml +.idea/compiler.xml +.idea/libraries/ +*.iws +*.iml +*.ipr + +### Eclipse ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ +build/ +!**/src/main/**/build/ +!**/src/test/**/build/ + +### VS Code ### +.vscode/ + +### Mac OS ### +.DS_Store \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..be140a6 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,35 @@ +include: + - template: SAST.gitlab-ci.yml + +default: + tags: ['docker-exec'] + + +image: maven:3.9.6-eclipse-temurin-21-jammy +variables: + MAVEN_CLI_OPTS: "-s .m2/settings.xml --batch-mode" + MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository -Dmaven.artifact.threads=50" +cache: + paths: + - .m2/repository/ +junit tests: + stage: test + script: + - mvn test + allow_failure: false + artifacts: + expire_in: 1 week + reports: + junit: + - target/surefire-reports/TEST-*.xml + +script tests: + stage: test + script: + - ./build-project.sh + allow_failure: false + artifacts: + expire_in: 1 week + reports: + junit: + - target/surefire-reports/TEST-*.xml \ No newline at end of file diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..aa00ffa --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..20e4bc5 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,15 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/build-project.sh b/build-project.sh new file mode 100755 index 0000000..6ad5114 --- /dev/null +++ b/build-project.sh @@ -0,0 +1,3 @@ +#!/bin/bash +echo "RUN JUnit Tests" +mvn test \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..3cb44f9 --- /dev/null +++ b/pom.xml @@ -0,0 +1,17 @@ + + + 4.0.0 + + de.hsfulda.onses + Onses + 1.0-SNAPSHOT + + + 21 + 21 + UTF-8 + + + \ No newline at end of file diff --git a/src/main/java/de/hsfulda/onses/Main.java b/src/main/java/de/hsfulda/onses/Main.java new file mode 100644 index 0000000..f43dbbb --- /dev/null +++ b/src/main/java/de/hsfulda/onses/Main.java @@ -0,0 +1,7 @@ +package de.hsfulda.onses; + +public class Main { + public static void main(String[] args) { + System.out.println("Hello world!"); + } +} \ No newline at end of file