I am trying to create a plugin with our JTE library. I am running in to weirded dependency error. I am using Java 22, and gradle 8.8. I thought i updated all the required version of plugins but i keep getting following error whenever i try to build plugin using ./gradlew jte. I do not know where the structs dependency is coming from. I even tried to exclude some dependencies, but it seems it includes those no matter. Any pointers would help us since we are going to be running minimum 100s of pipeline simultaneously and we can't keep going to repo to download each libraries.
Relevant log output
em-devops-jenkins-library % ./gradlew jte
Starting a Gradle Daemon (subsequent builds will be faster)
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':jpi'.
> Could not resolve all dependencies for configuration ':runtimeClasspathJenkins'.
> There was an error while evaluating a component metadata rule for org.jenkins-ci.plugins.workflow:workflow-step-api:622.vb_8e7c15b_c95a_.
> Could not get unknown property 'originalMetadata' for org.jenkins-ci.plugins:structs:1.23 of type org.gradle.api.internal.artifacts.repositories.resolver.DirectDependencyMetadataAdapter.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.8/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
My end goal is to build this in air gap environment. I really want to build without above dependencies. We have above dependencies in our Jenkins already.
Jenkins Version
2.452.1
JTE Version
2.5.3
Bug Description
I am trying to create a plugin with our JTE library. I am running in to weirded dependency error. I am using Java 22, and gradle 8.8. I thought i updated all the required version of plugins but i keep getting following error whenever i try to build plugin using ./gradlew jte. I do not know where the structs dependency is coming from. I even tried to exclude some dependencies, but it seems it includes those no matter. Any pointers would help us since we are going to be running minimum 100s of pipeline simultaneously and we can't keep going to repo to download each libraries.
Relevant log output
Steps to Reproduce
Add following build.gradle
My end goal is to build this in air gap environment. I really want to build without above dependencies. We have above dependencies in our Jenkins already.