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
First, thanks for this. This saved me serious amount of time in our product upgrade.
I need to deploy our product into a docker container. I need to include our build artifacts as well as the library dependencies. When I use this tool to transform a dependency, my output folder (dependencies) is get the original jar (un-transformed) as output.
I'm doing something like this....
configurations {
localApi
localImplementation
}
dependencies {
localApi (group: 'com.google.guava', name: 'guava', version: '33.2.1-jre')
...
localImplementation (group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.17.1')
...
/* This is the magic to include the local configuration into the actual path */
configurations.api.extendsFrom(configurations.localApi)
configurations.implementation.extendsFrom(configurations.localImplementation)
}
task copyToDependencies(type: Copy) {
delete "$buildDir/dependencies"
into "$buildDir/dependencies"
from configurations.localApi
from configurations.localImplementation
}
copyToDependencies.mustRunAfter Jar
Thank you for your help.
The text was updated successfully, but these errors were encountered:
Thank you for your interest in the plugin. For custom Configurations, such as your localImplementation and localApi, you need to set the attribute javaModule = true in order to activate the plugin's functionality. This is the reverse of what the Readme describes here.
There is an open feature request to add a simpler configuration option for this which we will add in a future version. Then I'll also extend the Readme to cover this better.
First, thanks for this. This saved me serious amount of time in our product upgrade.
I need to deploy our product into a docker container. I need to include our build artifacts as well as the library dependencies. When I use this tool to transform a dependency, my output folder (dependencies) is get the original jar (un-transformed) as output.
I'm doing something like this....
Thank you for your help.
The text was updated successfully, but these errors were encountered: