From d184974ee34040c23aaa021e3aa1d31a6015e2a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beatrice=20Dellac=C3=A0?= Date: Tue, 6 Aug 2024 20:01:23 +0200 Subject: [PATCH] start --- .gitignore | 36 +++++++++++++++++++ .idea/.gitignore | 8 +++++ pom.xml | 30 ++++++++++++++++ .../java/wtf/beatrice/releasehive/Main.java | 14 ++++++++ src/main/resources/log4j2.xml | 13 +++++++ 5 files changed, 101 insertions(+) create mode 100644 .gitignore create mode 100644 .idea/.gitignore create mode 100644 pom.xml create mode 100644 src/main/java/wtf/beatrice/releasehive/Main.java create mode 100644 src/main/resources/log4j2.xml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4216130 --- /dev/null +++ b/.gitignore @@ -0,0 +1,36 @@ +target/ +*.log +!.mvn/wrapper/maven-wrapper.jar +!**/src/main/**/target/ +!**/src/test/**/target/ + +### IntelliJ IDEA ### +*.iws +*.iml +*.ipr +.idea/ + +### 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 diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..22205aa --- /dev/null +++ b/pom.xml @@ -0,0 +1,30 @@ + + + 4.0.0 + + wtf.beatrice + release-hive + 1.0-SNAPSHOT + + + + org.apache.logging.log4j + log4j-api + 2.23.1 + + + org.apache.logging.log4j + log4j-core + 2.23.1 + + + + + 17 + 17 + UTF-8 + + + diff --git a/src/main/java/wtf/beatrice/releasehive/Main.java b/src/main/java/wtf/beatrice/releasehive/Main.java new file mode 100644 index 0000000..f5962ae --- /dev/null +++ b/src/main/java/wtf/beatrice/releasehive/Main.java @@ -0,0 +1,14 @@ +package wtf.beatrice.releasehive; + +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; + +public class Main { + + private static final Logger LOGGER = LogManager.getLogger(Main.class); + + public static void main(String[] args) { + LOGGER.info("Hello world!"); + + } +} diff --git a/src/main/resources/log4j2.xml b/src/main/resources/log4j2.xml new file mode 100644 index 0000000..9a502bc --- /dev/null +++ b/src/main/resources/log4j2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + +