You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Richard Zowalla (Jira)" <ji...@apache.org> on 2023/05/17 19:13:00 UTC

[jira] [Resolved] (TOMEE-2152) ApplicationComposers @Default fails to detect main classes for Gradle >= 4

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

Richard Zowalla resolved TOMEE-2152.
------------------------------------
    Resolution: Auto Closed

Hi there!

We wanted to reach out and let you know that we're currently working on cleaning up open issues in Jira that specifically impact unsupported versions, including 1.7.x, 7.0.x, and 7.1.x.

If you had previously reported this issue on one of these unsupported versions, we kindly ask you to check if the problem still persists and can be reproduced on a supported version such as 8.0.x or 9.0.x. If you find that it is indeed reproducible on a supported version, you're more than welcome to re-open this issue.

Thanks!


> ApplicationComposers @Default fails to detect main classes for Gradle >= 4
> --------------------------------------------------------------------------
>
>                 Key: TOMEE-2152
>                 URL: https://issues.apache.org/jira/browse/TOMEE-2152
>             Project: TomEE
>          Issue Type: Bug
>    Affects Versions: 7.0.4
>            Reporter: Jens Berke
>            Priority: Major
>         Attachments: ApplicationComposers.patch
>
>
> Starting with Gradle 4, the output directory layout has been changed, and as a result the detection of the main classes directory in org.apache.openejb.testing.ApplicationComposers.addWebApp fails.
> The changes are documented in the  [release notes for Gradle 4|https://docs.gradle.org/4.0/release-notes.html], see chapters "Multiple class directories for a single source set" and "Location of classes in the build directory" there.
> As a workaround it is currently possible to change the output directory structure in the Gradle build script to what ApplicationComposers.addWebApp expects, but this possibility is scheduled to be removed in Gradle 5.0.
> The attached patch only demonstrates the minimal change necessary for Gradle >= 4, but it also breaks backwards compatibility with Gradle <= 3. Therefore it might be a good idea to add a system property or something similar which allows activation of the old directory structure detection for Gradle <= 3. 
> It also may be a good idea to not hard-code the "java" sub-directory because the value might be different depending on the plugins used to run and build in Gradle. See the Gradle API doc for [SourceDirectorySet.outputdir|https://docs.gradle.org/4.0/dsl/org.gradle.api.file.SourceDirectorySet.html] which shows how Gradle now creates the output path dynamically.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)