File tree 3 files changed +39
-11
lines changed 3 files changed +39
-11
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
+ 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@v4
25
+ - name : Set up JDK
26
+ uses : actions/setup-java@v4
27
+ with :
28
+ java-version : ' 18'
29
+ distribution : ' temurin'
30
+ - name : Build
31
+ run : ./gradlew build
32
+ - name : Test
33
+ run : ./gradlew test
Original file line number Diff line number Diff line change 1
1
plugins {
2
- id ' org.jetbrains.kotlin.jvm' version ' 1.2.51 '
2
+ id " org.jetbrains.kotlin.jvm" version " 1.9.22 "
3
3
}
4
4
5
5
group ' it.campeis'
@@ -10,9 +10,8 @@ repositories {
10
10
}
11
11
12
12
dependencies {
13
- implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk8"
14
- testCompile(' org.junit.jupiter:junit-jupiter-api:5.2.0' )
15
- testRuntime(' org.junit.jupiter:junit-jupiter-engine:5.2.0' )
13
+ testImplementation ' org.junit.jupiter:junit-jupiter:5.7.1'
14
+ testRuntimeOnly ' org.junit.platform:junit-platform-launcher'
16
15
}
17
16
18
17
test {
@@ -21,15 +20,11 @@ test {
21
20
testLogging {
22
21
events " passed" , " skipped" , " failed"
23
22
}
24
-
25
- reports {
26
- html. enabled = true
27
- }
28
23
}
29
24
30
25
compileKotlin {
31
- kotlinOptions. jvmTarget = " 1.8 "
26
+ kotlinOptions. jvmTarget = " 18 "
32
27
}
33
28
compileTestKotlin {
34
- kotlinOptions. jvmTarget = " 1.8 "
29
+ kotlinOptions. jvmTarget = " 18 "
35
30
}
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
3
3
distributionPath =wrapper/dists
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
6
- distributionUrl =https\://services.gradle.org/distributions/gradle-4.8.1-all .zip
6
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.6-bin .zip
You can’t perform that action at this time.
0 commit comments