excelsior-oss / excelsior-jet-gradle-plugin

Excelsior JET Gradle Plugin provides Gradle users with an easy way to compile their applications down to optimized native Windows, OS X, or Linux executables with Excelsior JET http://www.excelsiorjet.com
GNU General Public License v3.0
26 stars 6 forks source link

Project task path for nested multiprojects generate incorrect path #37

Closed Crazyjavahacking closed 6 years ago

Crazyjavahacking commented 6 years ago

Currently ExcelsiorJetPlugin.groovy contains the following code:

private static String taskPath(Project target, String taskName) {
    if (target.rootProject == target) {
        return ":$taskName"
    } else {
        return ":${target.name}:$taskName"
    }
}

This is incorrect as when the project is part of the multiproject build with deeper hierarchies, this will generate invalid Gradle project path:

e.g. for project with path :terminal:terminal-assembly taskpath task will generate invalid path :terminal-assembly:jar

The code should use org.gradle.api.Project.getPath() functionality instead.

pjBooms commented 6 years ago

Fixed in 1.1.3 release