Skip to content

Commit

Permalink
update gradle for shadowJar
Browse files Browse the repository at this point in the history
  • Loading branch information
rickyyx committed Oct 20, 2016
1 parent c0bdcae commit 8bb8b9c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ allprojects {
}

shadowJar {
archiveName = "addressbook.jar"
archiveName = "taskbook.jar"

manifest {
attributes "Main-Class": "seedu.address.MainApp"
attributes "Main-Class": "seedu.task.MainApp"
}

destinationDir = file("${buildDir}/jar/")
Expand Down Expand Up @@ -114,8 +114,8 @@ tasks.coveralls {
onlyIf { System.env.'CI' }
}

class AddressBookTest extends Test {
public AddressBookTest() {
class TaskBookTest extends Test {
public TaskBookTest() {
forkEvery = 1
systemProperty 'testfx.setup.timeout', '60000'
}
Expand All @@ -129,7 +129,7 @@ class AddressBookTest extends Test {
}
}

task guiTests(type: AddressBookTest) {
task guiTests(type: TaskBookTest) {
include 'guitests/**'

jacoco {
Expand All @@ -138,16 +138,16 @@ task guiTests(type: AddressBookTest) {
}


task nonGuiTests(type: AddressBookTest) {
include 'seedu/address/**'
task nonGuiTests(type: TaskBookTest) {
include 'seedu/task/**'

jacoco {
destinationFile = new File("${buildDir}/jacoco/test.exec")
}
}

// Test mode depends on whether headless task has been run
task allTests(type: AddressBookTest) {
task allTests(type: TaskBookTest) {
jacoco {
destinationFile = new File("${buildDir}/jacoco/test.exec")
}
Expand Down

0 comments on commit 8bb8b9c

Please sign in to comment.