From 8512142e41515f99872905cd9f8cf02a75d70472 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sat, 17 Apr 2021 15:54:55 +0200 Subject: [PATCH] Fix build.gradle Fix LinkageUtils --- .../src/de/steamwar/bausystem/linkage/LinkageUtils.java | 2 +- build.gradle | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/linkage/LinkageUtils.java b/BauSystem_Main/src/de/steamwar/bausystem/linkage/LinkageUtils.java index 801e8c65..bea77705 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/linkage/LinkageUtils.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/linkage/LinkageUtils.java @@ -35,7 +35,7 @@ import java.util.Set; public class LinkageUtils { public void link() { - try (BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(BauSystem.class.getResourceAsStream("/de/steamwar/baussystem/" + Linked.class.getTypeName())))) { + try (BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(BauSystem.class.getResourceAsStream("/de.steamwar.bausystem/" + Linked.class.getTypeName())))) { bufferedReader.lines().forEach(s -> { try { link(Class.forName(s)); diff --git a/build.gradle b/build.gradle index e7f83ccd..3a5544f5 100644 --- a/build.gradle +++ b/build.gradle @@ -77,6 +77,12 @@ dependencies { implementation project(":BauSystem_Main") } +processResources { + from("BauSystem_Main/build/classes/java/main/META-INF/annotations/") { + into("de.steamwar.bausystem") + } +} + task buildProject { description 'Build this project' group "Steamwar"