-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6018 from rjhancock/javadoc-generated-in-actions
Added JavaDoc building in Actions.
- Loading branch information
Showing
10 changed files
with
521 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
root = true | ||
charset = "utf-8" | ||
|
||
[*.java] | ||
indent_style = "space" | ||
indent_size = 4 | ||
end_of_line = lf | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
max_line_length = 140 # Google Style Guide | ||
curly_bracket_next_line = false | ||
spaces_around_operators = true | ||
spaces_around_brackets = "both" | ||
indent_brace_style = "K&R" | ||
wildcard_import_limit = 10 | ||
continuation_indent_size = 4 # Google Style Guid | ||
|
||
[*.xml] | ||
indent_style = "space" | ||
indent_size = 4 | ||
end_of_line = lf | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.blk] | ||
end_of_line = lf | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.mtf] | ||
end_of_line = lf | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: JavaDoc Generation | ||
|
||
on: | ||
pull_request: | ||
branches: [master] | ||
|
||
env: | ||
GRADLE_OPTS: "-Dscan.link.VCS=${{ github.event.pull_request.html_url }}" | ||
|
||
jobs: | ||
javadoc: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
java-distribution: [temurin] | ||
java-version: [17] | ||
fail-fast: false | ||
|
||
steps: | ||
- name: "Check out MegaMek" | ||
uses: actions/checkout@v4 | ||
with: | ||
path: megamek | ||
|
||
- name: Set up ${{ matrix.java-distribution }} JDK ${{ matrix.java-version }} | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: ${{ matrix.java-distribution }} | ||
java-version: ${{ matrix.java-version }} | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
|
||
- name: Build with Gradle | ||
working-directory: megamek | ||
run: ./gradlew javadoc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#This file is generated by updateDaemonJvm | ||
toolchainVersion=17 |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.