Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dependencies): Forcing oci-java-sdk-objectstorage version for des…
…ired conflict resolution. (#1096) While enforcing the direct and transitive dependencies strictly from kork-bom using "enforcedPlatform" in build.gradle as: implementation(enforcedPlatform("io.spinnaker.kork:kork-bom:$korkVersion")) oci-java-sdk-bom:1.5.17 is overriding the oci-java-sdk-objectstorage:1.19.1 (transitive dependency) version, which is an older version coming from kork-bom mentioned in spinnaker-dependencies.gradle. It is causing an error in front50-oracle module as given below: > Task :front50-oracle:compileJava /home/ubuntu/spinnaker-comp/sb-upgrade-2-3-12/front50/front50-oracle/src/main/java/com/netflix/spinnaker/front50/model/OracleStorageService.java:232: error: cannot find symbol buildObjectKey(objectType, summary.getName()), summary.getTimeModified().getTime()); ^ symbol: method getTimeModified() location: variable summary of type ObjectSummary Note: /home/ubuntu/spinnaker-comp/sb-upgrade-2-3-12/front50/front50-oracle/src/main/java/com/netflix/spinnaker/front50/model/OracleStorageService.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error > Task :front50-oracle:compileJava FAILED FAILURE: Build failed with an exception. In order to fix, we require oci-java-sdk-objectstorage:1.19.1 to force restore. Forcing the specified version will take precedence during conflict resolution and provide desired version.
- Loading branch information