You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of the issue:
In Jib maven plugin, there is a configuration option for jib.skip to skip executing Jib in library module in a multi-module project. Original request for this feature in maven plugin: #865
This option is not available in Gradle plugin
Expected behavior:
jib.skip configuration option is also available to gradle plugin. Yes, I know I can do :{service}:jib but it may not be an option in a CI/CD with standardize pipeline build process.
Steps to reproduce:
Add jib.skip into build.gradle in module directory (e.g. client-lib)
Run ./gradlew build jib
Jib task should ignore client-lib module
build.gradle Configuration:
jib {
skip =true
}
Log output:
What went wrong:
A problem occurred evaluating project ':client-lib'.
Could not set unknown property 'skip' for extension 'jib' of type com.google.cloud.tools.jib.gradle.JibExtension.
The text was updated successfully, but these errors were encountered:
The jib.skip-like feature is already doable with Gradle. (In fact, anything is possible in Gradle.) You can just disable whatever tasks in question (whether jib, jibDockerBuild, or jibBuildTar) by setting enabled to false.
However, if you find yourself wanting to do that, it's likely that your project setup is not correct. Just don't apply the Jib plugin to the library module. jib.skip is only there for Maven, due to the particular way Maven works as discussed in #865. As explained in this FAQ, you should structure your project in this way:
define all of your plugins in the base project and apply them selectively in your subprojects as needed.
Environment:
Description of the issue:
In Jib maven plugin, there is a configuration option for jib.skip to skip executing Jib in library module in a multi-module project. Original request for this feature in maven plugin: #865
This option is not available in Gradle plugin
Expected behavior:
jib.skip configuration option is also available to gradle plugin. Yes, I know I can do :{service}:jib but it may not be an option in a CI/CD with standardize pipeline build process.
Steps to reproduce:
build.gradle
Configuration:Log output:
What went wrong:
A problem occurred evaluating project ':client-lib'.
Could not set unknown property 'skip' for extension 'jib' of type com.google.cloud.tools.jib.gradle.JibExtension.
The text was updated successfully, but these errors were encountered: