Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-888

Gradle Plugin Hardcoded Modules resource directory

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2016.12.0
    • Fix Version/s: 2017.3.2
    • Component/s: plugins
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      Modify the output directory for gradle in the build script with:

      sourceSets {
      main

      { output.resourcesDir = 'build/resources/customOutput'}

      }

      Show
      Modify the output directory for gradle in the build script with: sourceSets { main { output.resourcesDir = 'build/resources/customOutput'} }

      Description

      org.wildfly.swarm.plugin.gradle.SwarmExtension contains the below line:
      this.moduleDirs.add(new File(this.project.getBuildDir(), "resources/main/modules"));

      The output location is hardcoded. Gradle has the ability to modify the resource output directory and this code will silently ignore modules whenever the resource output directory is changed through Gradle.

      A possible patch solution is attached.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                adler.fleurant Adler Fleurant
                Reporter:
                adler.fleurant Adler Fleurant
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: