From e077407a1ab8ed6d5c57a07f89775372558191c3 Mon Sep 17 00:00:00 2001 From: Joshua Castle <26531652+Kas-tle@users.noreply.github.com> Date: Sun, 5 Mar 2023 18:33:24 -0800 Subject: [PATCH] Temporarily fix build on eclipse so I may work... Signed-off-by: Joshua Castle <26531652+Kas-tle@users.noreply.github.com> --- .../main/kotlin/geyser.base-conventions.gradle.kts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/build-logic/src/main/kotlin/geyser.base-conventions.gradle.kts b/build-logic/src/main/kotlin/geyser.base-conventions.gradle.kts index 709867300..ae946b6ce 100644 --- a/build-logic/src/main/kotlin/geyser.base-conventions.gradle.kts +++ b/build-logic/src/main/kotlin/geyser.base-conventions.gradle.kts @@ -1,5 +1,6 @@ plugins { `java-library` + `eclipse` id("net.kyori.indra") } @@ -35,3 +36,13 @@ tasks { } } } + +eclipse { + classpath.file.whenMerged { + (this as org.gradle.plugins.ide.eclipse.model.Classpath).entries.forEach { entry -> + if (entry is org.gradle.plugins.ide.eclipse.model.Library) { + entry.entryAttributes["module"] = false + } + } + } +}