41 lines
755 B
Groovy
41 lines
755 B
Groovy
apply plugin: 'java'
|
|
apply plugin: 'eclipse'
|
|
|
|
/*
|
|
* The shared configuration for all sub-projects:
|
|
*/
|
|
subprojects {
|
|
apply plugin: 'java'
|
|
apply plugin: 'eclipse'
|
|
|
|
// java compatibility version
|
|
sourceCompatibility = 1.8
|
|
|
|
|
|
configurations {
|
|
tests
|
|
}
|
|
|
|
// the repositories for external depenencies
|
|
repositories {
|
|
maven { url 'http://repo.lucares.de/' }
|
|
mavenCentral()
|
|
jcenter()
|
|
}
|
|
|
|
// In this example we use TestNG as our testing tool. JUnit is the default.
|
|
test{
|
|
useTestNG()
|
|
}
|
|
|
|
// dependencies that all sub-projects have
|
|
dependencies {
|
|
testCompile group: 'org.testng', name: 'testng', version: '6.9.6'
|
|
//testCompile group: 'junit', name: 'junit', version: '4.12'
|
|
}
|
|
}
|
|
|
|
task wrapper(type: Wrapper) {
|
|
gradleVersion = '2.12'
|
|
}
|