-
-
Notifications
You must be signed in to change notification settings - Fork 968
Closed
Description
Steps to Reproduce
- Create new directory
master-project - Create build file with content
subprojects { apply plugin: 'groovy' } - Create build settings file with content
include 'child-project' - Run
grails create-app child-projectassuming you have Grails 3.2.0 present onPATH - Try run
gradle :child-project:bootRunassuming you have Gradle 2.14.1 present onPATH - You got error message
Error:(21, 0) Cannot add task ':child-project:groovydoc' as a task with that name already exists.
Expected Behaviour
If the groovy Gradle plugin is already applied the Grails application which is a suproject should not try to add it again.
Actual Behaviour
The Gradle build fails with
* What went wrong:
A problem occurred evaluating project ':child-project'.
> Failed to apply plugin [id 'org.grails.grails-web']
> Cannot add task ':child-project:groovydoc' as a task with that name already exists.
Environment Information
- Operating System: darwin15 (OS X El Captan)
- Grails Version: 3.2.0
- JDK Version: Java(TM) SE Runtime Environment (build 1.8.0_92-b14)