diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d18d33bda..2f491b8dc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,6 @@ jobs: name: PR Workflow # If any dependent jobs fails, this WF skips which won't block merging PRs # calling always() is required for this WF to run all the time - if: github.repository_owner == 'aws' && always() runs-on: ubuntu-latest needs: - unit-functional @@ -197,7 +196,6 @@ jobs: java-gradle-integration: name: ${{ matrix.os }} / ${{ matrix.python }} / java gradle - if: github.repository_owner == 'aws' runs-on: ${{ matrix.os }} env: GRADLE_OPTS: -Dorg.gradle.daemon=false @@ -205,7 +203,6 @@ jobs: fail-fast: false matrix: os: - - ubuntu-latest - windows-latest python: - "3.8" @@ -220,7 +217,7 @@ jobs: python-version: ${{ matrix.python }} - uses: actions/setup-java@v4 with: - distribution: 'zulu' + distribution: 'corretto' java-version: '21' - run: make init - run: pytest -vv tests/integration/workflows/java_gradle diff --git a/aws_lambda_builders/workflows/java_gradle/gradle.py b/aws_lambda_builders/workflows/java_gradle/gradle.py index ffdf38c4d..a64cb770c 100644 --- a/aws_lambda_builders/workflows/java_gradle/gradle.py +++ b/aws_lambda_builders/workflows/java_gradle/gradle.py @@ -33,7 +33,7 @@ def build(self, source_dir, build_file, cache_dir=None, init_script_path=None, p if not self.os_utils.exists(build_file): raise BuildFileNotFoundError(build_file) - args = ["build", "--build-file", build_file] + args = ["build", "--build-file", build_file, "--no-build-cache"] if cache_dir is not None: args.extend(["--project-cache-dir", cache_dir]) if properties is not None: