Commit 45b7d167 authored by Johannes Mey's avatar Johannes Mey
Browse files

separate jar and fatjar

parent 260af28d
Pipeline #12864 passed with stages
in 2 minutes and 22 seconds
......@@ -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 {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment