Skip to content

Commit 45288b0

Browse files
committed
dev: workflows, gradle wrapper
1 parent cb1354c commit 45288b0

4 files changed

Lines changed: 72 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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: Build Java
9+
10+
on:
11+
push:
12+
branches: [ "main" ]
13+
pull_request:
14+
branches: [ "main" ]
15+
workflow_dispatch:
16+
17+
jobs:
18+
build:
19+
20+
runs-on: ubuntu-22.04
21+
permissions:
22+
contents: read
23+
24+
steps:
25+
- name: Checkout sources
26+
uses: actions/checkout@v6
27+
28+
- name: Set up Java
29+
uses: actions/setup-java@v5
30+
with:
31+
java-version: '21'
32+
distribution: 'temurin'
33+
34+
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
35+
- name: Setup Gradle
36+
uses: gradle/actions/setup-gradle@v6
37+
38+
- name: Make gradlew executable
39+
run: chmod +x ./gradlew
40+
41+
- name: Build with Gradle Wrapper
42+
run: ./gradlew build --scan
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Dependency Submission
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
workflow_dispatch:
7+
8+
jobs:
9+
dependency-submission:
10+
runs-on: ubuntu-22.04
11+
permissions:
12+
contents: write
13+
14+
steps:
15+
- name: Checkout sources
16+
uses: actions/checkout@v6
17+
18+
- name: Set up Java
19+
uses: actions/setup-java@v5
20+
with:
21+
java-version: '21'
22+
distribution: 'temurin'
23+
24+
# See: https://github.com/gradle/actions/blob/main/dependency-submission/README.md
25+
- name: Generate and submit dependency graph
26+
uses: gradle/actions/dependency-submission@v6

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
# build folder
1919
build
2020

21+
#generated files
22+
generated-sources
23+
2124
# Package Files #
2225
*.jar
2326
*.war

gradlew

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)