Open jdneo opened 1 week ago
Maybe I should remove getEditableBuilds
and just use getIncludedBuilds
here...
https://github.com/microsoft/build-server-for-gradle/blob/395b97757da8d0d82bc2c68c4aca4331bea4e584/model/src/main/java/com/microsoft/java/bs/gradle/model/actions/GetSourceSetsAction.java#L66
Gradle must do something funny with the buildSrc
project as the buildSrc/build.gradle
file is not valid on its own. It would need something like plugins { id 'groovy' }
otherwise implementation()
is invalid as it says in the error message.
I got the similar answer from Gradle.
I'll check how it looks like in IDEA tomorrow
I'll have a look into it next week. If you need to fix it quickly then changing to getIncludedBuilds
will exclude buildSrc
.
It's complex to follow but I think Intellij using this as their init.gradle
.
So Groovy
(and sometimes java
) plugins are applied which means that the implementation
/compile
/api
keywords are understood independently of the project.
I've discussed this issue with Gradle as well, and find this: https://github.com/gradle/gradle/blob/master/platforms/extensibility/plugin-development/src/main/java/org/gradle/initialization/buildsrc/GroovyBuildSrcProjectConfigurationAction.java#L29
Maybe those plugins will be applied when running from command line but not the case when running from TAPI.
Need to debug to see if the assumption is correct.
A problem occurred evaluating project ':buildSrc'.
Steps to repro