Skip to content
Snippets Groups Projects
Commit 244a1400 authored by Robin Oppermann's avatar Robin Oppermann
Browse files

Adapt paths to create an executable version

parent 76aba6ca
No related branches found
No related tags found
1 merge request!3Ci setup
Pipeline #
This commit is part of merge request !3. Comments created here will be created in the context of that merge request.
......@@ -49,10 +49,10 @@ sonarqube_preview:
build:
stage: build
script:
- ./gradlew -g /cache/.gradle clean assemble
- ./gradlew -g /cache/.gradle clean assemble copyGui
artifacts:
paths:
- lib/Simulator.jar
- lib/
- target/
allow_failure: false
......
......@@ -32,6 +32,8 @@ sourceSets {
java {
srcDirs = ["src/applications", "src/core", "src/gui", "src/input", "src/interfaces", "src/main", "src/movement", "src/report", "src/routing", "src/ui", "src/util"]
}
output.resourcesDir = 'target'
output.classesDir = 'target'
}
test {
java {
......@@ -42,6 +44,10 @@ sourceSets {
jar {
destinationDir = new File('lib')
manifest {
attributes 'Main-Class': 'core.DTNSim'
attributes 'Class-Path': "ECLA.jar DTNConsoleConnection.jar ../target"
}
}
dependencies {
......@@ -52,3 +58,12 @@ dependencies {
// Use JUnit test framework
testCompile 'junit:junit:4.12'
}
task copyGui(type: Copy){
from 'src/gui/buttonGraphics'
into 'target/gui/buttonGraphics'
}
clean.doFirst{
delete 'target'
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment