Added unit test deps

This commit is contained in:
nathan 2019-03-21 17:46:49 +01:00
parent abdea218ff
commit be03d84ae0
1 changed files with 4 additions and 69 deletions

View File

@ -183,6 +183,10 @@ dependencies {
api("net.java.dev.jna:jna:$jnaVersion")
api("net.java.dev.jna:jna-platform:$jnaVersion")
// unit testing
testCompile("junit:junit:4.12")
testRuntime("ch.qos.logback:logback-classic:1.1.6")
}
///////////////////////////////
@ -216,72 +220,3 @@ val wrapperUpdate by tasks.creating(Wrapper::class) {
gradleVersion = "5.3"
distributionUrl = distributionUrl.replace("bin", "all")
}
//plugins {
// id 'java'
// id 'java-library' // give us access to api/implementation differences for building java libraries
// id 'maven'
//
//// // setup checking for the latest version of a plugin or dependency (and updating the gradle build)
//// id "se.patrikerdes.use-latest-versions" version "0.2.3"
//// id 'com.github.ben-manes.versions' version '0.16.0'
//}
//
//// common dependencies configuration
//apply from: 'scripts/gradle/utilities.gradle'
//
//sourceCompatibility = JavaVersion.VERSION_1_8
//targetCompatibility = JavaVersion.VERSION_1_8
//
//sourceSets {
// main {
// java {
// setSrcDirs Collections.singletonList('src')
// }
// }
// test {
// java {
// setSrcDirs Collections.singletonList('test')
// }
// }
//}
//
//
//repositories {
// mavenLocal()
// jcenter()
//}
//
//dependencies {
// // utilities dependencies compile only (this is so the IDE can compile the util source)
// compileOnly utilDependencies
//
// // ALSO so tests can run
// testImplementation utilDependencies
//
// // unit testing
// testCompile 'junit:junit:4.12'
// testRuntime group: 'ch.qos.logback', name: 'logback-classic', version: '1.1.6'
//}
//
//tasks.withType(JavaCompile) {
// options.encoding = 'UTF-8'
// options.incremental = true
// options.fork = true
// options.forkOptions.executable = 'javac'
//
// // setup compile options. we specifically want to suppress usage of "Unsafe"
// options.compilerArgs += ['-XDignore.symbol.file', '-Xlint:deprecation']
//}
//
//
///////////////////////////////
////// Gradle Wrapper Configuration.
///// Run this task, then refresh the gradle project
///////////////////////////////
//task updateWrapper(type: Wrapper) {
// gradleVersion = '4.10.2'
// distributionUrl = distributionUrl.replace("bin", "all")
// setDistributionType(Wrapper.DistributionType.ALL)
//}