Skip to content

Commit

Permalink
dev: Fix Maven package build (add group id, artifcat id and version)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberpython committed Dec 23, 2024
1 parent 6890153 commit c9a0cb6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -54,6 +67,7 @@ publishing {
publications {
gpr(MavenPublication) {
from(components.java)
artifactId = 'glossa-interpreter'
}
}
}

0 comments on commit c9a0cb6

Please sign in to comment.