[ 
https://issues.apache.org/jira/browse/DELTASPIKE-1191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John D. Ament updated DELTASPIKE-1191:
--------------------------------------
    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:
{code}
// 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
}
{code}

  was:
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
}



> Update Test-Control gradle docs
> -------------------------------
>
>                 Key: DELTASPIKE-1191
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-1191
>             Project: DeltaSpike
>          Issue Type: Bug
>          Components: Documentation
>            Reporter: Remo
>            Assignee: John D. Ament
>
> 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:
> {code}
> // 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
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to