CommonWealthRobotics / BowlerBuilder

A Full-Stack Robotics Development Environment.
http://commonwealthrobotics.com/
GNU Lesser General Public License v3.0
3 stars 2 forks source link

Possible workaround for IntelliJ's outstanding multi-project Gradle bug #34

Closed Octogonapus closed 6 years ago

Octogonapus commented 6 years ago

Try putting this in the wrapper task configuration to possibly help IntelliJ figure out what Gradle to use:

    doLast {
        /*
         * Copy the properties file into the buildSrc project.
         * Related issues:
         *
         * https://youtrack.jetbrains.com/issue/KT-14895
         * https://youtrack.jetbrains.com/issue/IDEA-169717
         * https://youtrack.jetbrains.com/issue/IDEA-153336
         */
        val buildSrcWrapperDir = File(rootDir, "buildSrc/gradle/wrapper")
        GFileUtils.mkdirs(buildSrcWrapperDir)
        copy {
            from(propertiesFile)
            into(buildSrcWrapperDir)
        }
    }