Compare commits

...

24 Commits

Author SHA1 Message Date
7c0a1cfb04 Merge pull request 'Update dependency org.apache.logging.log4j:log4j-core to v2.24.3' (#3) from renovate/org.apache.logging.log4j-log4j-core-2.x into main
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #3
2025-03-23 12:28:22 +01:00
550446c439 Merge pull request 'Update dependency org.apache.logging.log4j:log4j-api to v2.24.3' (#2) from renovate/org.apache.logging.log4j-log4j-api-2.x into main
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #2
2025-03-23 12:28:14 +01:00
fb9dee3560 Update dependency org.apache.logging.log4j:log4j-core to v2.24.3
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is passing
2025-03-23 11:26:31 +00:00
5530fb6ae9 Update dependency org.apache.logging.log4j:log4j-api to v2.24.3
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is passing
2025-03-23 11:26:28 +00:00
825e1aa700 Merge pull request 'Configure Renovate' (#1) from renovate/configure into main
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #1
2025-03-23 12:09:53 +01:00
6c8aa73f67 Add renovate.json
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is passing
2025-03-22 23:09:39 +00:00
f90ad4af5c fix deploy!
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/promote/production Build is passing
2025-03-09 10:40:28 +01:00
a93273252a fix deploy (:D)
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/promote/production Build is failing
2025-03-09 00:18:48 +01:00
56e2d4a6ad fix deploy (...)
All checks were successful
continuous-integration/drone/push Build is passing
2025-03-09 00:16:05 +01:00
8606af095e fix promote jdk
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/promote/production Build is failing
2025-03-08 23:56:55 +01:00
55fdc93557 fix promote
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/promote/production Build is failing
2025-03-08 23:52:28 +01:00
f43f21e768 only run verify ci on push
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/promote/production Build is failing
2025-03-08 23:47:56 +01:00
4f4fd21be1 fix drone deploy
Some checks failed
continuous-integration/drone/push Build was killed
2025-03-08 23:45:48 +01:00
f1c846af37 fix drone
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/promote/production Build was killed
2025-03-08 23:40:09 +01:00
9db0d86b31 fix deploy
Some checks failed
continuous-integration/drone/push Build encountered an error
2025-03-08 23:39:31 +01:00
d57d021749 implement deploy to maven repo
Some checks failed
continuous-integration/drone/push Build is failing
2025-03-08 22:21:39 +01:00
93eef9b53f fix code smells
All checks were successful
continuous-integration/drone/push Build is passing
2025-03-08 22:10:57 +01:00
f5f976bc14 update sonar droneci command
All checks were successful
continuous-integration/drone/push Build is passing
2025-03-08 22:06:55 +01:00
d6654caafa update pom build version
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone Build is passing
2025-03-08 21:53:53 +01:00
a770d3d0b5 update sonar java plugin version
Some checks failed
continuous-integration/drone/push Build is failing
2025-03-08 21:48:49 +01:00
b002da349b update ci jdk to v21
Some checks failed
continuous-integration/drone/push Build is failing
2025-03-08 20:01:06 +01:00
4f9783004e update readme
Some checks failed
continuous-integration/drone/push Build is failing
2025-03-08 19:57:35 +01:00
a0f959ed2f update readme
Some checks failed
continuous-integration/drone/push Build is failing
2025-03-08 19:54:52 +01:00
e53dc862b6 remove file logger 2025-02-06 12:22:39 +01:00
7 changed files with 94 additions and 20 deletions

View File

@@ -1,27 +1,32 @@
kind: pipeline
name: default
name: verify
platform:
os: linux
arch: arm64
trigger:
event:
- push
- pull_request
steps:
# test if it compiles correctly
- name: build
image: maven:3-eclipse-temurin-17
image: maven:3-eclipse-temurin-21
commands:
- mvn verify --no-transfer-progress -DskipTests=true -Dmaven.javadoc.skip=true -B -V
# run unit tests
- name: test
image: maven:3-eclipse-temurin-17
image: maven:3-eclipse-temurin-21
commands:
- mvn test --no-transfer-progress -B -V
# run code analysis
- name: code-analysis
image: maven:3-eclipse-temurin-17
image: maven:3-eclipse-temurin-21
commands:
- mvn sonar:sonar --no-transfer-progress -Dsonar.projectKey=$SONAR_PROJECT_KEY -Dsonar.host.url=$SONAR_INSTANCE_URL -Dsonar.login=$SONAR_LOGIN_KEY -B -V
- mvn sonar:sonar --no-transfer-progress -Dsonar.projectKey=$SONAR_PROJECT_KEY -Dsonar.host.url=$SONAR_INSTANCE_URL -Dsonar.token=$SONAR_LOGIN_KEY -B -V
environment:
SONAR_PROJECT_KEY:
from_secret: sonar_project_key
@@ -29,3 +34,32 @@ steps:
from_secret: sonar_instance_url
SONAR_LOGIN_KEY:
from_secret: sonar_login_key
---
kind: pipeline
name: deploy
type: docker
platform:
os: linux
arch: arm64
trigger:
event:
- promote
target:
- production
steps:
# skip all previous steps because they were already ran in the "build" phase; we don't need to re-analyze the code.
# upload to maven repository
- name: maven-deploy
image: maven:3-eclipse-temurin-21
commands:
- mvn deploy --no-transfer-progress -DskipTests=true -Dmaven.javadoc.skip=true -B -V -gs settings.xml -Dmaven.repo.username=$MAVEN_REPO_USERNAME -Dmaven.repo.password=$MAVEN_REPO_PASSWORD
environment:
MAVEN_REPO_USERNAME:
from_secret: maven_repo_username
MAVEN_REPO_PASSWORD:
from_secret: maven_repo_password

30
pom.xml
View File

@@ -9,8 +9,8 @@
<version>0.0.5-SNAPSHOT</version>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
@@ -18,13 +18,13 @@
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.23.1</version>
<version>2.24.3</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.23.1</version>
<version>2.24.3</version>
</dependency>
<dependency>
@@ -34,8 +34,26 @@
</dependency>
</dependencies>
<distributionManagement>
<repository>
<id>nexus-releases</id>
<name>Nexus Releases Repository</name>
<url>https://nexus.beatrice.wtf/repository/maven-releases/</url>
</repository>
<snapshotRepository>
<id>nexus-snapshots</id>
<name>Nexus Snapshots Repository</name>
<url>https://nexus.beatrice.wtf/repository/maven-snapshots/</url>
</snapshotRepository>
</distributionManagement>
<build>
<plugins>
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>5.0.0.4389</version>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
@@ -68,8 +86,8 @@
</repository>
<repository>
<id>sonatype-nexus-snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<id>sonatype-nexus-releases</id>
<url>https://oss.sonatype.org/content/repositories/releases</url>
</repository>
</repositories>

View File

@@ -12,13 +12,13 @@
## supported systems
| system | support |
|-----------|------------|
| macOS | ✅ **full** |
| Windows | 🟠 limited |
| GNU/Linux | 🟠 limited |
| macOS | ✅ complete |
| GNU/Linux | ⏳ planned |
| Windows | ⏳ planned |
## building
**required tools**
- java 17 sdk
- java 21 sdk
- git
- maven

3
renovate.json Normal file
View File

@@ -0,0 +1,3 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
}

20
settings.xml Normal file
View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd">
<servers>
<server>
<id>nexus-snapshots</id>
<username>${maven.repo.username}</username>
<password>${maven.repo.password}</password>
</server>
<server>
<id>nexus-releases</id>
<username>${maven.repo.username}</username>
<password>${maven.repo.password}</password>
</server>
</servers>
</settings>

View File

@@ -18,7 +18,8 @@ public class KeyPressListener implements NativeKeyListener
@Override
public void nativeKeyPressed(NativeKeyEvent e) {
LOGGER.info("Key Pressed: {}", NativeKeyEvent.getKeyText(e.getKeyCode()));
String key = NativeKeyEvent.getKeyText(e.getKeyCode());
LOGGER.info("Key Pressed: {}", key);
if (e.getKeyCode() == NativeKeyEvent.VC_ESCAPE) {
try {
@@ -35,7 +36,8 @@ public class KeyPressListener implements NativeKeyListener
@Override
public void nativeKeyReleased(NativeKeyEvent e) {
LOGGER.info("Key Released: {}", NativeKeyEvent.getKeyText(e.getKeyCode()));
String key = NativeKeyEvent.getKeyText(e.getKeyCode());
LOGGER.info("Key Released: {}", key);
pressedKeysIds.remove((Integer) e.getKeyCode());

View File

@@ -4,9 +4,6 @@
<Console name="ConsoleAppender" target="SYSTEM_OUT">
<PatternLayout pattern="[%d{HH:mm:ss.SSS}] [%t] %-4level | %logger{36} - %msg%n" />
</Console>
<File name="FileAppender" fileName="application-${date:yyyyMMdd}.log" immediateFlush="false" append="true">
<PatternLayout pattern="[%d{yyy-MM-dd HH:mm:ss.SSS}] [%t] %-4level | %logger{36} - %msg%n"/>
</File>
</Appenders>
<Loggers>
<Root level="debug">