Skip to content

Commit

Permalink
gradle fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Fornitx committed Jun 7, 2024
1 parent afdcd14 commit 3a1180d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ out/
### VS Code ###
.vscode/

### Kotlin ###
.kotlin

### Mac OS ###
.DS_Store

Expand Down
15 changes: 9 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
kotlin("jvm") version System.getProperty("kotlin_version")
}
Expand All @@ -12,15 +10,20 @@ allprojects {
subprojects {
apply(plugin = "org.jetbrains.kotlin.jvm")

java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}

dependencies {
testImplementation("org.jetbrains.kotlin:kotlin-test")
testImplementation("org.junit.jupiter:junit-jupiter:5.9.3")
}

tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs += "-Xjsr305=strict"
jvmTarget = "21"
kotlin {
compilerOptions {
freeCompilerArgs.addAll("-Xjsr305=strict")
}
}

Expand Down

0 comments on commit 3a1180d

Please sign in to comment.