/*
 * This file was generated by the Gradle 'init' task.
 *
 * This generated file contains a sample Java project to get you started.
 * For more details take a look at the Java Quickstart chapter in the Gradle
 * User Manual available at https://docs.gradle.org/6.0.1/userguide/tutorial_java_projects.html
 */

plugins {
    id 'java'

    id 'application'
}

compileJava {
    options.compilerArgs << '-Xlint:deprecation'
    options.compilerArgs << '-Xlint:unchecked'
}

version = '1.0.0'

repositories {
    mavenCentral()
}

def tempDir = file("tmp")

task createTmpdir() {
   delete tempDir
   tempDir.mkdirs()
}

test.dependsOn createTmpdir

configurations {
    libs
}

dependencies {
    libs 'org.json:json:20211205'
    libs 'org.apache.commons:commons-jcs3-core:3.0'
    libs 'org.apache.commons:commons-csv:1.9.0'
    libs 'commons-net:commons-net:3.0.1'
    libs 'com.fasterxml.jackson.core:jackson-databind:2.13.0'
    libs 'com.ibm.db2:jcc:11.5.0.0'
    libs 'org.eclipse.paho:org.eclipse.paho.mqttv5.client:1.2.5'

    testImplementation 'junit:junit:4.13.1'

    configurations.implementation.extendsFrom(configurations.libs)
}

task getDeps(type: Copy) {
    from sourceSets.main.runtimeClasspath
    into 'libs/'
}

application {
    mainClassName = 'com.ibm.mas.scada.historian.connector.Connector'
}

test {
    useJUnit()
}

