Checking if the root project has .idea folder

fixes #286
This commit is contained in:
Marcin Grzejszczak
2017-05-30 13:23:03 +02:00
parent 4dc8ea4b9b
commit 84b0cc6478
2 changed files with 3 additions and 3 deletions

View File

@@ -68,7 +68,7 @@ class SpringCloudContractVerifierGradlePlugin implements Plugin<Project> {
}
private addIdeaTestSources(Project project, extension) {
def hasIdea = new File(project.projectDir, ".idea").exists()
def hasIdea = new File(project.rootDir, ".idea").exists()
if (hasIdea) {
project.apply(plugin: 'idea')
project.idea {