From 890b1f13f053a4a882dc48c8de3887bfe2f9294f Mon Sep 17 00:00:00 2001 From: Gitter499 Date: Thu, 18 Jan 2024 19:40:03 -0500 Subject: [PATCH 1/3] fix(CI): Fixed workflow file typo and spotless BuildConstants bug --- .github/workflows/main.yaml | 2 +- build.gradle | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index edc469f..025a0ad 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -44,7 +44,7 @@ jobs: build: runs-on: ubuntu-latest - container: wpilib/roborio-cross-ubuntu:2024-22.04 + container: wpilib/roborio-cross-ubuntu:2024-22.04 steps: - uses: actions/checkout@v3 - name: Add repository to git safe directories diff --git a/build.gradle b/build.gradle index 1f93411..110e305 100644 --- a/build.gradle +++ b/build.gradle @@ -148,7 +148,7 @@ spotless { format 'misc', { target fileTree('.') { include '**/*.md', '**/.gitignore' - exclude '**/build/**', '**/build-*/**' + exclude '**/build/**', '**/build-*/**', '**/BuildConstants.java' } trimTrailingWhitespace() indentWithSpaces(2) From 5a349dd5b4ab3ba4aecd4a29ea5cda7d4ee9ecbd Mon Sep 17 00:00:00 2001 From: Gitter499 Date: Thu, 18 Jan 2024 19:43:58 -0500 Subject: [PATCH 2/3] fix(CI): Fix spotless BuildConstants bug --- README.md | 2 +- build.gradle | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ecf7e73..2212a7a 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -## WIP \ No newline at end of file +## WIP diff --git a/build.gradle b/build.gradle index 110e305..c4ef2db 100644 --- a/build.gradle +++ b/build.gradle @@ -104,7 +104,7 @@ spotless { java { target fileTree('.') { include '**/*.java' - exclude '**/build/**', '**/build-*/**' + exclude '**/build/**', '**/build-*/**','**/BuildConstants.java' } toggleOffOn() googleJavaFormat().reflowLongStrings() From 6f27170a2cbfcc3e8a09f9dca94b598405cb30ef Mon Sep 17 00:00:00 2001 From: Gitter499 Date: Thu, 18 Jan 2024 19:44:33 -0500 Subject: [PATCH 3/3] fix(CI): Added BuildConstants --- .../org/robolancers321/BuildConstants.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/main/java/org/robolancers321/BuildConstants.java diff --git a/src/main/java/org/robolancers321/BuildConstants.java b/src/main/java/org/robolancers321/BuildConstants.java new file mode 100644 index 0000000..c52be06 --- /dev/null +++ b/src/main/java/org/robolancers321/BuildConstants.java @@ -0,0 +1,19 @@ +package org.robolancers321; + +/** + * Automatically generated file containing build version information. + */ +public final class BuildConstants { + public static final String MAVEN_GROUP = ""; + public static final String MAVEN_NAME = "321-Crescendo-2024"; + public static final String VERSION = "unspecified"; + public static final int GIT_REVISION = 4; + public static final String GIT_SHA = "890b1f13f053a4a882dc48c8de3887bfe2f9294f"; + public static final String GIT_DATE = "2024-01-18 19:40:03 EST"; + public static final String GIT_BRANCH = "dev"; + public static final String BUILD_DATE = "2024-01-18 19:43:26 EST"; + public static final long BUILD_UNIX_TIME = 1705625006821L; + public static final int DIRTY = 1; + + private BuildConstants(){} +}