Skip to content

Commit

Permalink
Merge pull request #16 from creativeArtie/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
creativeArtie authored Jul 16, 2018
2 parents dad601b + 3cc24a4 commit 2b54e46
Show file tree
Hide file tree
Showing 316 changed files with 26,123 additions and 20,816 deletions.
65 changes: 49 additions & 16 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ buildscript {
}
}

// apply plugins
// apply plugins
apply plugin: 'java'
apply plugin: 'javafx-gradle-plugin'

Expand All @@ -22,23 +22,29 @@ repositories {
}

javadoc{
doLast{
copy{
from ("src/main/java"){
include "**/doc-files/**"
}
into "build/docs/javadoc/"
}
}
doLast{
copy{
from ("src/main/java"){
include "**/doc-files/**"
}
into "build/docs/javadoc/"
}
}
}

jfx {
// minimal requirement for jfxJar-task
mainClass = 'com.creativeartie.writerstudio.main.Main'

// minimal requirement for jfxNative-task
vendor = 'CreativeArtie'
nativeReleaseVersion = "${version}"

bundleArguments = [
licenseFile: 'LICENSE.md'
]

// runAppParameter = '--test=base'
}

compileJava {
Expand All @@ -52,27 +58,54 @@ compileTestJava {
}

dependencies {
testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.2.0'
testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.2.0'

testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.2.0'
testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.2.0'
testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-params', version: '5.2.0'

compile group: 'com.google.guava', name: 'guava', version: '23.5-jre'
compile group: 'org.fxmisc.richtext', name: 'richtextfx', version: '0.9.0'
compile group: 'org.apache.pdfbox', name: 'pdfbox', version: '2.0.9'

// compile 'org.bitbucket.shemnon.javafxplugin:gradle-javafx-plugin:8.1.1'
}


test {
// Enable JUnit 5 (Gradle 4.6+).
useJUnitPlatform(){
// "heavy" tests will take a long time to complete
// "timed" tests requires exact timing, which possibly never happens
excludeTags "heavy", "timed"
}

enableAssertions = 'true'

// Show test results.
testLogging {
events "passed", "skipped", "failed"
}

doFirst {
project.file("build/outputs/").mkdirs()
}
}

task testAll(type: Test){
group = 'Verification'
description = 'Test all files, (take a lot longer then test)'

useJUnitPlatform()

// Always run tests, even when nothing changed.
dependsOn 'cleanTest'

enableAssertions = 'true'

// Show test results.
testLogging {
events "passed", "skipped", "failed"
}

doFirst {
project.file("build/outputs/").mkdirs()
}

}

Loading

0 comments on commit 2b54e46

Please sign in to comment.