Uploaded image for project: 'Gradle'
  1. Gradle
  2. GRADLE-3356

Cannot apply both java and play plugins

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None

      Description

      https://discuss.gradle.org/t/cannot-apply-both-java-and-play-plugins/12625

      Applying both java and play plugins will get the following error:

      Failed to apply plugin [class 'org.gradle.api.plugins.BasePlugin']
      Cannot add a configuration with name 'default' as a configuration with that name already exists.
      I know people don't normally need to apply both of them. But in our use cases, we have many of our own plugins which would also apply java plugin automatically. And I have to apply them to my play projects. Can this problem be fixed?

      To reproduce, a simple build.gradle file:
      apply plugin: 'play'
      apply plugin: 'java'

      Then just run gradle

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            big-guy Sterling Greene
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: