evaluationDependsOn(':commonbase') evaluationDependsOn(':common') evaluationDependsOn(':openbis_api') evaluationDependsOn(':openbis-common') evaluationDependsOn(':authentication') evaluationDependsOn(':dbmigration') evaluationDependsOn(':openbis') evaluationDependsOn(':datastore_server') evaluationDependsOn(':ui-test') evaluationDependsOn(':screening') evaluationDependsOn(':rtd_phosphonetx') apply from: '../gradle/javaproject.gradle' sourceSets { main { java { srcDirs = ['sourceTest/java'] } } test { java { srcDirs = ['source/java'] } resources { srcDirs = ['servers/common/openBIS-server/etc', 'servers/common/openBIS-server/resource'] } } } configurations.create('testRuntimeFirst') configurations.create('testRuntimeSecond') configurations.create('externalDss') dependencies { compile 'reflections:reflections:+', 'testng:testng:+', 'fasterxml:jackson-core:+', 'fasterxml:jackson-annotations:+', 'fasterxml:jackson-databind:+' testCompile project(path: ':ui-test', configuration: 'tests') testRuntime project(':screening'), project(':rtd_phosphonetx') testRuntimeFirst 'javax:servlet-api:+', 'reflections:reflections:+' testRuntimeSecond 'google:gwt-user:+' externalDss project(':screening'), project(':rtd_phosphonetx') } sourceSets.test.runtimeClasspath = configurations.testRuntimeFirst + configurations.testRuntimeSecond + sourceSets.test.runtimeClasspath task copyWar(type: Copy, dependsOn: project(':openbis_standard_technologies').war) { from project(':openbis_standard_technologies').war into 'targets/gradle/openbis-war' rename {filename -> 'openbis.war'} } test { useTestNG() options.suites('source/java/tests.xml') jvmArgs '-Xmx2048m', '-XX:MaxPermSize=256m', '-Dorg.eclipse.jetty.util.log.class=org.eclipse.jetty.util.log.StrErrLog', '-Duser.timezone=Europe/Zurich', '-Xdebug', '-Xrunjdwp:transport=dt_socket,address=20010,server=y,suspend=n' testLogging.showStandardStreams = true ignoreFailures = false systemProperty 'selenium.dss-runtime-classpath', configurations.externalDss.asPath systemProperty 'jetty.home', '../../../targets/gradle' systemProperty 'jetty.base', '../../../targets/gradle' systemProperty 'ui-test.start-page', 'http://localhost:20000/openbis' systemProperty 'org.mortbay.util.FileResource.checkAliases', 'false' systemProperty 'org.eclipse.jetty.util.log.class', 'org.eclipse.jetty.util.log.StrErrLog' workingDir = 'servers/common/openBIS-server' } test.dependsOn clean test.dependsOn copyWar