using shadowJar to build a runnable version

This commit is contained in:
jotty
2024-11-01 20:20:00 +01:00
parent 9ad9d315b5
commit 131c23b3e7
3 changed files with 27 additions and 3 deletions

View File

@ -1,9 +1,13 @@
plugins {
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version '8.0.0'
}
group 'de.jottyfan.csv2camt'
version '0.0.0'
version '0.0.1'
mainClassName = 'de.jottyfan.csv2camt.Main'
repositories {
mavenCentral()
@ -16,4 +20,14 @@ dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.11.3'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.11.3'
}
}
shadowJar {
manifest {
attributes(
'Main-Class': mainClassName,
'Implementation-Title': project.name,
'Implementation-Version': version
)
}
}