From 34543bcbc376ccc009b8e803da2fc41583dd6f6f Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Tue, 27 Aug 2024 22:04:50 +0700 Subject: [PATCH] Specify neoforge layer in manifest --- build.gradle.kts | 18 ++++++++++++++++++ gradle.properties | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index effcc0e..2e0afd2 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -47,6 +47,15 @@ tasks { archiveClassifier.set("sources") from(sourceSets.main.get().allSource) } + + jar { + manifest { + attributes( + "Automatic-Module-Name" to "ru.dbotthepony.kommons", + "FMLModType" to "LIBRARY" + ) + } + } } version = projectVersion @@ -72,6 +81,15 @@ subprojects { archiveClassifier.set("sources") from(sourceSets.main.get().allSource) } + + jar { + manifest { + attributes( + "Automatic-Module-Name" to "ru.dbotthepony.kommons", + "FMLModType" to "LIBRARY" + ) + } + } } kotlin { diff --git a/gradle.properties b/gradle.properties index a04962d..7d8a742 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ kotlin.code.style=official specifyKotlinAsDependency=false projectGroup=ru.dbotthepony.kommons -projectVersion=3.1.0 +projectVersion=3.1.1 guavaDepVersion=33.0.0 gsonDepVersion=2.8.9