Skip to content
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

fix(dependency): Forcing oci-java-sdk-objectstorage version for desired conflict resolution. #1096

Merged
merged 1 commit into from
Feb 26, 2022

Commits on Feb 25, 2022

  1. fix(dependencies): Forcing oci-java-sdk-objectstorage version for des…

    …ired conflict resolution.
    
    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.
    j-sandy committed Feb 25, 2022
    Configuration menu
    Copy the full SHA
    5657bd7 View commit details
    Browse the repository at this point in the history