File tree 1 file changed +62
-0
lines changed
1 file changed +62
-0
lines changed Original file line number Diff line number Diff line change
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
+ pull_request :
12
+ paths :
13
+ - kotlin/**
14
+ - .github/workflows/gradle.yml
15
+
16
+ push :
17
+ branches : [ "main" ]
18
+ paths :
19
+ - kotlin/**
20
+ - .github/workflows/gradle.yml
21
+
22
+ jobs :
23
+ build :
24
+
25
+ runs-on : ubuntu-latest
26
+ permissions :
27
+ contents : read
28
+
29
+ steps :
30
+ - uses : actions/checkout@v4
31
+ - name : Set up JDK 17
32
+ uses : actions/setup-java@v4
33
+ with :
34
+ java-version : ' 17'
35
+ distribution : ' temurin'
36
+ - name : Setup Gradle
37
+ uses : gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
38
+ - name : Build with Gradle Wrapper
39
+ run : ./gradlew jar
40
+ working-directory : kotlin
41
+
42
+ dependency-submission :
43
+
44
+ runs-on : ubuntu-latest
45
+ permissions :
46
+ contents : write
47
+
48
+ steps :
49
+ - uses : actions/checkout@v4
50
+ - name : Set up JDK 17
51
+ uses : actions/setup-java@v4
52
+ with :
53
+ java-version : ' 17'
54
+ distribution : ' temurin'
55
+ - run : cd kotlin
56
+
57
+ # Generates and submits a dependency graph, enabling Dependabot Alerts for all project dependencies.
58
+ # See: https://github.com/gradle/actions/blob/main/dependency-submission/README.md
59
+ - name : Generate and submit dependency graph
60
+ uses : gradle/actions/dependency-submission@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
61
+ with :
62
+ build-root-directory : kotlin
You can’t perform that action at this time.
0 commit comments