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

separate jar and fatjar

parent 260af28d
Branches
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: ...@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment