From 44ee7fdbda3f21493b9a9478b55e39f218d4468c Mon Sep 17 00:00:00 2001 From: Martin Wittlinger Date: Mon, 13 Nov 2023 22:02:50 +0100 Subject: [PATCH] refactor: delete old application module (#1245) --- application/build.gradle | 4 --- .../application/base/converter/Converter.java | 27 ------------------- github-bot/build.gradle | 7 +++-- settings.gradle | 2 +- 4 files changed, 4 insertions(+), 36 deletions(-) delete mode 100644 application/build.gradle delete mode 100644 application/src/main/java/io/github/martinwitt/laughing_train/application/base/converter/Converter.java diff --git a/application/build.gradle b/application/build.gradle deleted file mode 100644 index 6ebd05384..000000000 --- a/application/build.gradle +++ /dev/null @@ -1,4 +0,0 @@ -plugins { - id "xyz.keksdose.spoon.code_solver.java-library-conventions" - id "java" -} \ No newline at end of file diff --git a/application/src/main/java/io/github/martinwitt/laughing_train/application/base/converter/Converter.java b/application/src/main/java/io/github/martinwitt/laughing_train/application/base/converter/Converter.java deleted file mode 100644 index 189eeadcf..000000000 --- a/application/src/main/java/io/github/martinwitt/laughing_train/application/base/converter/Converter.java +++ /dev/null @@ -1,27 +0,0 @@ -package io.github.martinwitt.laughing_train.application.base.converter; - -import java.util.Collection; -import java.util.List; -import java.util.stream.Collectors; - -/** - * This defines a converter interface. A converter is used to convert an object of type {@code T} to - * an object of type {@code R}. This is mostly used to convert entities to DTOs and vice versa. - * - * @param the source type - * @param the target type - */ -public interface Converter { - - /** - * Converts the given source object to a target object. - * - * @param source the source object - * @return the target object or {@code null} if the source object is {@code null} - */ - R convert(T content); - - default List convert(Collection contents) { - return contents.stream().map(this::convert).collect(Collectors.toList()); - } -} diff --git a/github-bot/build.gradle b/github-bot/build.gradle index c4a3a1908..f466105b4 100644 --- a/github-bot/build.gradle +++ b/github-bot/build.gradle @@ -5,14 +5,14 @@ plugins { } dependencies { - implementation 'io.quarkiverse.jgit:quarkus-jgit:3.0.5' + implementation 'io.quarkiverse.jgit:quarkus-jgit:3.0.5' implementation enforcedPlatform("${quarkusPlatformGroupId}:${quarkusPlatformArtifactId}:${quarkusPlatformVersion}") implementation 'io.quarkiverse.githubapi:quarkus-github-api:1.316.0' implementation 'io.quarkus:quarkus-arc' implementation "io.quarkus:quarkus-scheduler" implementation 'io.quarkus:quarkus-smallrye-health' - implementation project(path: ':spoon-analyzer') - testImplementation 'io.quarkus:quarkus-junit5' + implementation project(path: ':spoon-analyzer') + testImplementation 'io.quarkus:quarkus-junit5' implementation project(":code-transformation") annotationProcessor("io.quarkus:quarkus-panache-common") implementation("io.quarkus:quarkus-smallrye-graphql") @@ -22,7 +22,6 @@ dependencies { implementation("io.quarkus:quarkus-keycloak-authorization") implementation("io.quarkus:quarkus-micrometer-registry-prometheus") testImplementation group: 'org.assertj', name: 'assertj-core', version: '3.24.2' - implementation project(":application") implementation project(":commons") implementation "io.quarkiverse.loggingmanager:quarkus-logging-manager:3.0.2" testImplementation 'org.mockito:mockito-core:5.7.0' diff --git a/settings.gradle b/settings.gradle index a5e902a00..d11e1146f 100644 --- a/settings.gradle +++ b/settings.gradle @@ -2,4 +2,4 @@ plugins { id("org.gradle.toolchains.foojay-resolver-convention") version "0.7.0" } rootProject.name = 'laughing-train-project' -include(':code-transformation',":commons", ":github-bot", ":application", ":matcher", ":spoon-analyzer") +include(':code-transformation',":commons", ":github-bot", ":matcher", ":spoon-analyzer")