Skip to content

Commit ce795ec

Browse files
authored
Merge pull request #89 from Project516/master
0.1.3
2 parents f517a4d + 8331c6e commit ce795ec

39 files changed

+1492
-1496
lines changed

.gitattributes

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
#
2-
# https://help.github.com/articles/dealing-with-line-endings/
3-
#
4-
# Linux start script should use lf
5-
/gradlew text eol=lf
6-
7-
# These are Windows script files and should use crlf
8-
*.bat text eol=crlf
9-
10-
# Binary files should be left untouched
11-
*.jar binary
12-
1+
#
2+
# https://help.github.com/articles/dealing-with-line-endings/
3+
#
4+
# Linux start script should use lf
5+
/gradlew text eol=lf
6+
7+
# These are Windows script files and should use crlf
8+
*.bat text eol=crlf
9+
10+
# Binary files should be left untouched
11+
*.jar binary
12+

.github/dependabot.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
version: 2
2-
updates:
3-
- package-ecosystem: "gradle"
4-
directory: "/"
5-
schedule:
6-
interval: "weekly"
7-
8-
- package-ecosystem: "github-actions"
9-
directory: "/"
10-
schedule:
11-
interval: "weekly"
1+
version: 2
2+
updates:
3+
- package-ecosystem: "gradle"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
8+
- package-ecosystem: "github-actions"
9+
directory: "/"
10+
schedule:
11+
interval: "weekly"

.github/workflows/gradle.yml

Lines changed: 67 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,67 @@
1-
# This workflow uses actions that are not certified by GitHub.
2-
# They are provided by a third-party and are governed by
3-
# separate terms of service, privacy policy, and support
4-
# documentation.
5-
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
6-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
7-
8-
name: Java CI with Gradle
9-
10-
on:
11-
push:
12-
branches: [ "master" ]
13-
pull_request:
14-
branches: [ "master" ]
15-
16-
jobs:
17-
build:
18-
19-
runs-on: ubuntu-latest
20-
permissions:
21-
contents: read
22-
23-
steps:
24-
- uses: actions/checkout@v5
25-
- name: Set up JDK 25
26-
uses: actions/setup-java@v5
27-
with:
28-
java-version: '25'
29-
distribution: 'temurin'
30-
31-
# Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
32-
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
33-
- name: Setup Gradle
34-
uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0
35-
36-
- name: Build with Gradle Wrapper
37-
run: ./gradlew build
38-
39-
# NOTE: The Gradle Wrapper is the default and recommended way to run Gradle (https://docs.gradle.org/current/userguide/gradle_wrapper.html).
40-
# If your project does not have the Gradle Wrapper configured, you can use the following configuration to run Gradle with a specified version.
41-
#
42-
# - name: Setup Gradle
43-
# uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0
44-
# with:
45-
# gradle-version: '8.9'
46-
#
47-
# - name: Build with Gradle 8.9
48-
# run: gradle build
49-
50-
dependency-submission:
51-
52-
runs-on: ubuntu-latest
53-
permissions:
54-
contents: write
55-
56-
steps:
57-
- uses: actions/checkout@v5
58-
- name: Set up JDK 25
59-
uses: actions/setup-java@v5
60-
with:
61-
java-version: '25'
62-
distribution: 'temurin'
63-
64-
# Generates and submits a dependency graph, enabling Dependabot Alerts for all project dependencies.
65-
# See: https://github.com/gradle/actions/blob/main/dependency-submission/README.md
66-
- name: Generate and submit dependency graph
67-
uses: gradle/actions/dependency-submission@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
6+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
7+
8+
name: Java CI with Gradle
9+
10+
on:
11+
push:
12+
branches: [ "master" ]
13+
pull_request:
14+
branches: [ "master" ]
15+
16+
jobs:
17+
build:
18+
19+
runs-on: ubuntu-latest
20+
permissions:
21+
contents: read
22+
23+
steps:
24+
- uses: actions/checkout@v5
25+
- name: Set up JDK 25
26+
uses: actions/setup-java@v5
27+
with:
28+
java-version: '25'
29+
distribution: 'temurin'
30+
31+
# Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
32+
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
33+
- name: Setup Gradle
34+
uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0
35+
36+
- name: Build with Gradle Wrapper
37+
run: ./gradlew build
38+
39+
# NOTE: The Gradle Wrapper is the default and recommended way to run Gradle (https://docs.gradle.org/current/userguide/gradle_wrapper.html).
40+
# If your project does not have the Gradle Wrapper configured, you can use the following configuration to run Gradle with a specified version.
41+
#
42+
# - name: Setup Gradle
43+
# uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0
44+
# with:
45+
# gradle-version: '8.9'
46+
#
47+
# - name: Build with Gradle 8.9
48+
# run: gradle build
49+
50+
dependency-submission:
51+
52+
runs-on: ubuntu-latest
53+
permissions:
54+
contents: write
55+
56+
steps:
57+
- uses: actions/checkout@v5
58+
- name: Set up JDK 25
59+
uses: actions/setup-java@v5
60+
with:
61+
java-version: '25'
62+
distribution: 'temurin'
63+
64+
# Generates and submits a dependency graph, enabling Dependabot Alerts for all project dependencies.
65+
# See: https://github.com/gradle/actions/blob/main/dependency-submission/README.md
66+
- name: Generate and submit dependency graph
67+
uses: gradle/actions/dependency-submission@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0

.github/workflows/javadoc.yml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
name: Generate JavaDoc and deploy to GitHub Pages
2-
3-
on:
4-
push:
5-
branches:
6-
[ "master" ]
7-
8-
jobs:
9-
build:
10-
permissions:
11-
contents: write
12-
runs-on: ubuntu-latest
13-
14-
steps:
15-
- name: Checkout repo
16-
uses: actions/checkout@v5
17-
18-
- name: Set up JDK
19-
uses: actions/setup-java@v5
20-
with:
21-
distribution: 'temurin'
22-
java-version: '25'
23-
24-
- name: Generate JavaDoc
25-
run: ./gradlew javadoc
26-
27-
- name: Deploy to GitHub Pages
28-
uses: peaceiris/actions-gh-pages@v4
29-
with:
30-
github_token: ${{ secrets.GITHUB_TOKEN }}
1+
name: Generate JavaDoc and deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
[ "master" ]
7+
8+
jobs:
9+
build:
10+
permissions:
11+
contents: write
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repo
16+
uses: actions/checkout@v5
17+
18+
- name: Set up JDK
19+
uses: actions/setup-java@v5
20+
with:
21+
distribution: 'temurin'
22+
java-version: '25'
23+
24+
- name: Generate JavaDoc
25+
run: ./gradlew javadoc
26+
27+
- name: Deploy to GitHub Pages
28+
uses: peaceiris/actions-gh-pages@v4
29+
with:
30+
github_token: ${{ secrets.GITHUB_TOKEN }}
3131
publish_dir: ./app/build/docs/javadoc

.github/workflows/release.yml

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
1-
name: Build and Upload Release Assets
2-
3-
on:
4-
release:
5-
types: [created]
6-
7-
jobs:
8-
build-and-upload:
9-
runs-on: ubuntu-latest
10-
permissions:
11-
contents: write
12-
13-
steps:
14-
- name: Checkout code
15-
uses: actions/checkout@v5
16-
17-
- name: Set up JDK 25
18-
uses: actions/setup-java@v5
19-
with:
20-
java-version: '25'
21-
distribution: 'temurin'
22-
23-
- name: Setup Gradle
24-
uses: gradle/actions/setup-gradle@v5
25-
26-
- name: Build JAR with Gradle
27-
run: ./gradlew build
28-
29-
- name: Build Debian package
30-
run: ./package-deb.sh
31-
32-
- name: Build ZIP archive
33-
run: ./package-zip.sh
34-
35-
- name: Build Windows package with bundled JRE
36-
run: ./package-win.sh
37-
38-
- name: Build macOS package with bundled JRE
39-
run: ./package-macos.sh
40-
41-
- name: Build Linux package with bundled JRE
42-
run: ./package-linux.sh
43-
44-
- name: Upload release assets
45-
uses: softprops/action-gh-release@v2
46-
with:
47-
files: |
48-
./app/build/libs/app.jar
49-
./numberguessinggame.deb
50-
./archive.zip
51-
./NumberGuessingGame-windows.zip
52-
./NumberGuessingGame-macos.zip
53-
./NumberGuessingGame-linux.tar.gz
1+
name: Build and Upload Release Assets
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build-and-upload:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v5
16+
17+
- name: Set up JDK 25
18+
uses: actions/setup-java@v5
19+
with:
20+
java-version: '25'
21+
distribution: 'temurin'
22+
23+
- name: Setup Gradle
24+
uses: gradle/actions/setup-gradle@v5
25+
26+
- name: Build JAR with Gradle
27+
run: ./gradlew build
28+
29+
- name: Build Debian package
30+
run: ./package-deb.sh
31+
32+
- name: Build ZIP archive
33+
run: ./package-zip.sh
34+
35+
- name: Build Windows package with bundled JRE
36+
run: ./package-win.sh
37+
38+
- name: Build macOS package with bundled JRE
39+
run: ./package-macos.sh
40+
41+
- name: Build Linux package with bundled JRE
42+
run: ./package-linux.sh
43+
44+
- name: Upload release assets
45+
uses: softprops/action-gh-release@v2
46+
with:
47+
files: |
48+
./app/build/libs/app-all.jar
49+
./numberguessinggame.deb
50+
./archive.zip
51+
./NumberGuessingGame-windows.zip
52+
./NumberGuessingGame-macos.zip
53+
./NumberGuessingGame-linux.tar.xz

0 commit comments

Comments
 (0)