Skip to content
Snippets Groups Projects
Commit 45b7d167 authored by Johannes Mey's avatar Johannes Mey
Browse files

separate jar and fatjar

parent 260af28d
No related branches found
No related tags found
2 merge requests!200.4.0,!19Update build and test system, add package deployment
Pipeline #12864 passed
......@@ -15,7 +15,7 @@ build:
image: openjdk:11
stage: build
script:
- ./gradlew --console=plain --no-daemon assemble jar
- ./gradlew --console=plain --no-daemon assemble fatJar
artifacts:
paths:
- "/builds/jastadd/relational-rags/build/libs/relast-*.jar"
......
......@@ -81,15 +81,21 @@ task setDevVersionForCI() {
}
jar {
manifest {
attributes 'Main-Class': "${mainClassName}"
archiveBaseName = 'relast'
}
task fatJar(type: Jar) {
dependsOn jar
group = "build"
archiveBaseName = 'relast'
archiveAppendix = "fatjar"
from sourceSets.main.output
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
archiveBaseName = 'relast'
manifest {
attributes "Main-Class": "${mainClassName}"
}
}
jastadd {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment