From d887873fa829d3b236111305725e921d01830ae3 Mon Sep 17 00:00:00 2001 From: cuttestkittensrule Date: Sun, 7 Jan 2024 18:24:31 -0800 Subject: [PATCH] Fixed circularity bug; ./gradlew build will allways succedd --- .github/workflows/gradle.yml | 5 +---- Robot2024/build.gradle | 2 ++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 95e87c0..57d03cf 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -16,9 +16,6 @@ jobs: cache: gradle - name: Setup Gradle uses: gradle/gradle-build-action@v2 - - name: Build lib jars - working-directory: Robot2024 - run: ./gradlew lib:jar - - name: Run build for main project with Gradle Wrapper + - name: Run build with Gradle Wrapper working-directory: Robot2024 run: ./gradlew build diff --git a/Robot2024/build.gradle b/Robot2024/build.gradle index 9421641..1264c85 100644 --- a/Robot2024/build.gradle +++ b/Robot2024/build.gradle @@ -93,6 +93,8 @@ jar { duplicatesStrategy = DuplicatesStrategy.INCLUDE } +downloadDepsPreemptively.dependsOn "lib:jar" + // Configure jar and deploy tasks deployArtifact.jarTask = jar wpi.java.configureExecutableTasks(jar)