-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new gradle plugin syntax not working #347
Comments
@matthiasbalke looks more like a gradle issue than anything to do with this plugin. What version of gradle are you using to get this failure? Have you tried the latest and greatest? Do you have a small reproducible script I could give a go? |
@matthiasbalke how do you apply plugin to subprojects? |
@cdancy I'm using Gradle 3.3 this is my https://github.com/matthiasbalke/infiniboard/blob/gradle/build.gradle The same error was also described in #280 scenario @orzeh Thats how I apply the plugin |
@orzeh I just realized the given example is not the exact same setup, so I build a minimal example setup here https://github.com/matthiasbalke/gradle-docker-plugin-issue-347 |
@matthiasbalke this is the same issue as in #248 (see my comment). To fix just adjust build script classpath, see my PR to your project. |
@orzeh ok this is working for two plugins, but in case I use a bunch of plugins, do I have to include all plugins in the classpath block? |
@matthiasbalke you have to add all of them, I'm afraid 😞 |
@matthiasbalke Why do you declare |
@bmuschko I thnik @matthiasbalke has multiproject build https://docs.gradle.org/current/userguide/plugins.html#sec:subprojects_plugins_dsl |
@bmuschko I have a multi module build and apply the plugins just to a subset of the modules. |
@matthiasbalke You are actually describing two different use cases here:
Can you describe what you are trying to solve or are these just different attempts to solve a specific problem? Generally speaking the issue you are seeing occurs if you do not apply the remote API plugin. It's is required to properly set up the classpath of Docker Java. Just adding the plugin to the buildscript's classpath does not work even if you just want to add a task of a type provided by the plugin. |
@bmuschko In one of my projects (https://github.com/reflectoring/infiniboard) I want to switch to the new gradle plugin syntax, as it is said to be more performant. When using the I really appreciate any hint on how to solve this problem. |
@matthiasbalke I ran into same problem (just different plugin: |
OK, as reported by @bmuschko using the plugin syntax:
in the root project and in the subproject using old syntax with classname (no qoutes) works fine:
works just fine! |
Closing. Feel free to re-open if need be. |
I switch from old to "new" gradle plugin syntax.
When executing the docker tasks I always get the following error. The same error was also described in #280 scenario
file5.gradle
, but the issue was closed due to resolving another bug described in there.How can I fix my build to use the new syntax?
build log: https://gist.github.com/matthiasbalke/fec93a4be79a0ae49163c832ebe14f67
The text was updated successfully, but these errors were encountered: