Skip to content
Snippets Groups Projects
build.gradle 1.01 KiB
Newer Older
Florian Lugou's avatar
Florian Lugou committed
apply plugin: 'application'

// This defines the source sets for this subproject
sourceSets {
    main {
        java {
            srcDir "${rootProject.absPath}/src/main/java"
            resources {
                srcDir "${rootProject.absPath}/src/main/resources"
            }
        }
    }

    test {
        java {
            srcDir "${rootProject.absPath}/tests/util/fr.tpt.ttool.tests.util/src"
        }
    }
}

dependencies {
    compile name: 'opencloud'
    compile name: 'JavaPlot'
    compile name: 'derbynet'
    compile name: 'commons-codec-1.10'
    compile name: 'commons-io-2.5-javadoc'
    compile name: 'commons-io-2.5'
    compile name: 'jsoup-1.8.1'
    compile name: 'gs-core-1.3'

    // Use JUnit test framework
    testCompile 'junit:junit:4.12'
    testCompile group: 'org.hamcrest', name: 'hamcrest-core', version: '1.3'
}

jar {
  manifest {
    attributes(
      'Class-Path': configurations.compile.collect { it.getName() }.join(' '),
      'Main-Class': 'Main'
    )
  }
}

mainClassName = 'Main'