From c9a0cb6c46b5ae73c3637b309801acf5452539ee Mon Sep 17 00:00:00 2001 From: Giorgos Migdos Date: Tue, 24 Dec 2024 00:12:22 +0200 Subject: [PATCH] dev: Fix Maven package build (add group id, artifcat id and version) --- build.gradle | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/build.gradle b/build.gradle index 2822577..be64043 100644 --- a/build.gradle +++ b/build.gradle @@ -35,11 +35,24 @@ dependencies { } +group = 'com.gmigdos.glossa' +version = '1.0.9' + application { // Define the main class for the application. mainClass = 'glossa.Main' } +task writeVersionProperties { + doLast { + def versionFile = file('src/main/resources/glossa/resources/version.properties') + versionFile.parentFile.mkdirs() // Ensure the directory exists + versionFile.text = "version: ${version}" + } +} + +compileJava.dependsOn writeVersionProperties + publishing { repositories { maven { @@ -54,6 +67,7 @@ publishing { publications { gpr(MavenPublication) { from(components.java) + artifactId = 'glossa-interpreter' } } }