aws / aws-swf-build-tools

Apache License 2.0
13 stars 27 forks source link

A newly released version of the aws-java-sdk-swf-libraries dependency is causing build failures #8

Open bchandley opened 2 years ago

bchandley commented 2 years ago

I use aws-swf-build-tools, and this morning builds failed because of a breaking change in a new version published today.

Here is the pom:

com.amazonaws aws-java-sdk-swf-libraries [1.10.69,)

in my case, I had been getting version 1.11.22. I was then "upgraded" to, v1.12.0 , causing local and ci to fail.

we were able to fix it by adding this to our parent pom:

`

com.amazonaws
            <artifactId>aws-swf-build-tools</artifactId>
            <version>${version.aws-swf-build-tools}</version>
        </dependency>
        <dependency>
            <groupId>com.amazonaws</groupId>
            <artifactId>aws-java-sdk-swf-libraries</artifactId>
            <version>1.11.22</version>
        </dependency>`

Changing this dependency to this.. might make a more consistent behavior for users.

  <dependency>
        <groupId>com.amazonaws</groupId>
        <artifactId>aws-java-sdk-swf-libraries</artifactId>
        <version>[1.10.69,1.11.22)</version>
    </dependency>

Getting this as an issue for the work around incase others come across this.

davidvandebunte commented 1 year ago

For a gradle fix, see:

    configurations.all {
      resolutionStrategy {
        force 'com.amazonaws:aws-java-sdk-swf-libraries:1.11.22'
      }
    }

Based rather obviously on java - How can I force Gradle to set the same version for two dependencies? - SO.

You can also attempt to fix the issues; see aws/aws-swf-flow-library: AWS Simple Workflow Flow framework library for a list of some things that were broken.