Skip to content

Commit 40659f5

Browse files
authored
Fix: Cast from Abstract Type to Concrete Type. (#6783)
Fixes Cast from Abstract Type to Concrete Type Security Warning. Removes CodeStyle from Gradle. Updated to allow Sentry to collect source code.
2 parents a6b9215 + 38a013e commit 40659f5

File tree

9 files changed

+351
-725
lines changed

9 files changed

+351
-725
lines changed

Diff for: .github/workflows/ci.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: MegaMek CI with Gradle
22

33
on:
44
pull_request:
5-
branches: [master]
5+
branches: [ master ]
66

77
env:
88
GRADLE_OPTS: "-Dscan.link.VCS=${{ github.event.pull_request.html_url }}"
@@ -13,9 +13,9 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
os: [ubuntu-latest]
17-
java-distribution: [temurin]
18-
java-version: [17]
16+
os: [ ubuntu-latest ]
17+
java-distribution: [ temurin ]
18+
java-version: [ 17 ]
1919
fail-fast: false
2020

2121
steps:
@@ -39,7 +39,7 @@ jobs:
3939

4040
- name: Build with Gradle
4141
working-directory: megamek
42-
run: ./gradlew build -x checkstyleMain -x checkstyleTest --stacktrace --scan
42+
run: ./gradlew build sentryUploadSourceBundleJava --stacktrace --scan
4343

4444
- name: Upload Test Logs on Failure
4545
uses: actions/upload-artifact@v4

Diff for: .github/workflows/nightly-ci.yml

+3-9
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414

1515
strategy:
1616
matrix:
17-
os: [ubuntu-latest]
18-
java-distribution: [temurin]
19-
java-version: [17]
17+
os: [ ubuntu-latest ]
18+
java-distribution: [ temurin ]
19+
java-version: [ 17 ]
2020
fail-fast: false
2121

2222
name: Nightly MegaMek CI ${{ matrix.os }} on ${{ matrix.java-distribution }} JDK ${{ matrix.java-version }}
@@ -50,12 +50,6 @@ jobs:
5050
name: ${{ matrix.os }}-${{ matrix.java-distribution }}-jdk${{ matrix.java-version }}-ci-failure-logs
5151
path: megamek/megamek/build/reports/
5252

53-
# - name: Upload Zip Artifacts
54-
# uses: actions/upload-artifact@v4
55-
# with:
56-
# name: mm-release-zip-${{ matrix.java-distribution }}-jdk${{ matrix.java-version }}
57-
# path: ./megamek/megamek/build/distributions/*.zip
58-
5953
- name: Upload TarGZ Release
6054
uses: actions/upload-artifact@v4
6155
with:

0 commit comments

Comments
 (0)