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: ...@@ -15,7 +15,7 @@ build:
image: openjdk:11 image: openjdk:11
stage: build stage: build
script: script:
- ./gradlew --console=plain --no-daemon assemble jar - ./gradlew --console=plain --no-daemon assemble fatJar
artifacts: artifacts:
paths: paths:
- "/builds/jastadd/relational-rags/build/libs/relast-*.jar" - "/builds/jastadd/relational-rags/build/libs/relast-*.jar"
......
...@@ -81,15 +81,21 @@ task setDevVersionForCI() { ...@@ -81,15 +81,21 @@ task setDevVersionForCI() {
} }
jar { jar {
manifest { archiveBaseName = 'relast'
attributes 'Main-Class': "${mainClassName}" }
}
task fatJar(type: Jar) {
dependsOn jar
group = "build"
archiveBaseName = 'relast'
archiveAppendix = "fatjar"
from sourceSets.main.output
from { from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
} }
manifest {
archiveBaseName = 'relast' attributes "Main-Class": "${mainClassName}"
}
} }
jastadd { 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