Skip to content

Commit

Permalink
Update - and add some exercises
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissearle committed Jan 11, 2024
1 parent 6d95ed4 commit f5b372a
Show file tree
Hide file tree
Showing 46 changed files with 438 additions and 124 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Set up JDK 20
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '20'
java-version: '21'
distribution: 'temurin'

- name: Validate gradle wrapper
Expand Down
13 changes: 10 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ group = "com.itera"
version = "0.0.1"

kotlin {
jvmToolchain(20)
jvmToolchain(21)
}

repositories {
Expand All @@ -36,7 +36,7 @@ dependencies {

tasks {
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
compilerOptions {
freeCompilerArgs = listOf("-Xcontext-receivers")
}
}
Expand All @@ -51,8 +51,15 @@ tasks.test {
}

tasks.jacocoTestReport {
dependsOn(tasks.test)

reports {
xml.required.set(true)
}
dependsOn(tasks.test)
}


tasks.named("check") {
dependsOn(tasks.jacocoTestReport)
}

2 changes: 1 addition & 1 deletion gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ set JAVA_EXE=java.exe
if %ERRORLEVEL% equ 0 goto execute

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo ERROR: JAVA_HOME is not set and com 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
Expand Down
Loading

0 comments on commit f5b372a

Please sign in to comment.