Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-1191

Update Test-Control gradle docs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.7.2
    • Documentation
    • None

    Description

      The suggested solution for gradle/test-control in https://deltaspike.apache.org/documentation/test-control.html results in duplicate class files in the assembled jars, this should be used instead:

      // merge resources and classes dir since we are doing JEE/CDI
      sourceSets {
          main {
              output.resourcesDir = 'build/classes/main'
              output.classesDir   = 'build/classes/main'
          }
          test {
              output.resourcesDir = 'build/classes/test'
              output.classesDir   = 'build/classes/test'
          }
      }
      
      // exclude duplicates since we merge classes and resources dir
      jar {
          duplicatesStrategy = DuplicatesStrategy.EXCLUDE
      }
      

      Attachments

        Activity

          People

            johndament John D. Ament
            remom Remo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: