Skip to content
Snippets Groups Projects
build.gradle 1.71 KiB
Newer Older
evaluationDependsOn(':commonbase')
evaluationDependsOn(':common')
evaluationDependsOn(':openbis_api')
evaluationDependsOn(':openbis-common')
evaluationDependsOn(':authentication')
evaluationDependsOn(':dbmigration')
evaluationDependsOn(':openbis')
evaluationDependsOn(':datastore_server')

felmer's avatar
felmer committed
apply from: '../gradle/javaproject.gradle'
    compile project(':common'),
            project(':datastore_server'),
            'openhms:jackcess:1.2.2',
            'reveregroup:gwt-image-loader:1.1.4',
            'imagej:ij:1.43u',
            'bioformats:bioformats:5.9.2'
    testCompile project(path: ':datastore_server', configuration: 'tests')
jar {
    from('../screening/source/sql'){ 
        into('/sql') 
        include '**/*.sql' 
    }
    from('../screening/source/java'){
        include 'screening-dssApplicationContext.xml'
    }
}

// This task is here to make TabularDataGraphCollectionConfigurationTest to work. It requires some data files
// to be present on the same directory than the class file itself.
task copyTestData(type: Copy, dependsOn: testClasses) {
    from "${project.projectDir}/sourceTest/java/ch/systemsx/cisd/openbis/dss/generic/server/graph"
    into "${project.buildDir}/classes/test/ch/systemsx/cisd/openbis/dss/generic/server/graph"
    include "*.properties"
}

task systemTestSuite(type: Test) {
    useTestNG()
    options.suites('sourceTest/java/tests_system.xml')
    jvmArgs '-Xmx2048m', '-XX:MaxPermSize=256m'    
    reports.html.destination = file("${project.buildDir}/reports/tests-system")
}

test.dependsOn(systemTestSuite)
test.dependsOn(copyTestData)