fix eclipse config for qa projects

This commit is contained in:
Ryan Ernst 2015-10-30 21:32:16 -07:00
parent 041c734b2d
commit 0dca49fae4
3 changed files with 15 additions and 13 deletions

View File

@ -147,9 +147,22 @@ subprojects {
}
}
// IDE configuration
// intellij configuration
allprojects {
apply plugin: 'idea'
}
if (hasProperty('projectsPrefix') == false) {
idea {
project {
languageLevel = sourceCompatibility
vcs = 'Git'
}
}
}
// ecplise configuration
allprojects {
apply plugin: 'eclipse'
// TODO: similar for intellij
@ -162,13 +175,4 @@ allprojects {
tasks.eclipse.dependsOn(cleanEclipse)
}
idea {
if (project != null) {
// could be null, if this project is attached to another...
project {
languageLevel = sourceCompatibility
vcs = 'Git'
}
}
}

View File

@ -30,7 +30,6 @@ class RestTestPlugin implements Plugin<Project> {
void apply(Project project) {
project.pluginManager.apply('java-base')
project.pluginManager.apply('carrotsearch.randomized-testing')
project.pluginManager.apply('idea')
// remove some unnecessary tasks for a qa test
project.tasks.removeAll { it.name in ['assemble', 'buildDependents'] }
@ -53,6 +52,7 @@ class RestTestPlugin implements Plugin<Project> {
project.eclipse {
classpath {
sourceSets = [project.sourceSets.test]
plusConfigurations = [project.configurations.testRuntime]
}
}
}

View File

@ -1,2 +0,0 @@
confi