Skip to content

Commit

Permalink
moved jdk version config back to main gradle build file, version cons…
Browse files Browse the repository at this point in the history
…istency
  • Loading branch information
irmen committed Dec 19, 2024
1 parent f93b7e3 commit 3804fba
Show file tree
Hide file tree
Showing 13 changed files with 42 additions and 112 deletions.
14 changes: 12 additions & 2 deletions .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions beanshell/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,6 @@ plugins {
kotlin("jvm")
}

java {
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_11
}

kotlin {
compilerOptions.jvmTarget = JvmTarget.JVM_11
}

val serverMainClassName = "prog8lsp.MainKt"
val applicationName = "prog8-beanshell"

Expand Down
16 changes: 16 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,26 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget

plugins {
kotlin("jvm") version "2.1.0"
}

allprojects {
apply(plugin="kotlin")

repositories {
mavenLocal()
mavenCentral()
}

kotlin {
compilerOptions {
freeCompilerArgs = listOf("-Xwhen-guards")
jvmTarget = JvmTarget.JVM_11
}
}

java {
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_11
}
}
11 changes: 1 addition & 10 deletions codeCore/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,9 @@ plugins {
kotlin("jvm")
}

java {
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_11
}

kotlin {
compilerOptions.jvmTarget = JvmTarget.JVM_11
}

dependencies {
// should have no dependencies to other modules
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
// implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("com.michael-bull.kotlin-result:kotlin-result-jvm:2.0.0")
}

Expand Down
14 changes: 2 additions & 12 deletions codeGenCpu6502/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,15 @@ plugins {
kotlin("jvm")
}

java {
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_11
}

kotlin {
compilerOptions.jvmTarget = JvmTarget.JVM_11
}


dependencies {
implementation(project(":codeCore"))
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
// implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
// implementation "org.jetbrains.kotlin:kotlin-reflect"
implementation("com.michael-bull.kotlin-result:kotlin-result-jvm:2.0.0")

testImplementation("io.kotest:kotest-runner-junit5-jvm:5.9.1")
testImplementation("io.kotest:kotest-framework-datatest:5.9.1")
testImplementation("org.junit.jupiter:junit-jupiter:5.9.2")
testImplementation("org.junit.jupiter:junit-jupiter:5.9.1")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}

Expand Down
12 changes: 1 addition & 11 deletions codeGenExperimental/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,11 @@ plugins {
kotlin("jvm")
}

java {
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_11
}

kotlin {
compilerOptions.jvmTarget = JvmTarget.JVM_11
}


dependencies {
implementation(project(":codeCore"))
implementation(project(":intermediate"))
implementation(project(":codeGenIntermediate"))
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
// implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
// implementation "org.jetbrains.kotlin:kotlin-reflect"
implementation("com.michael-bull.kotlin-result:kotlin-result-jvm:2.0.0")
}
Expand Down
12 changes: 2 additions & 10 deletions codeGenIntermediate/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,16 @@ plugins {
kotlin("jvm")
}

java {
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_11
}

kotlin {
compilerOptions.jvmTarget = JvmTarget.JVM_11
}

dependencies {
implementation(project(":codeCore"))
implementation(project(":intermediate"))
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
// implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
// implementation "org.jetbrains.kotlin:kotlin-reflect"
implementation("com.michael-bull.kotlin-result:kotlin-result-jvm:2.0.0")

testImplementation("io.kotest:kotest-runner-junit5-jvm:5.9.1")
testImplementation("org.junit.jupiter:junit-jupiter:5.9.2")
testImplementation("org.junit.jupiter:junit-jupiter:5.9.1")
testImplementation("io.kotest:kotest-framework-datatest:5.9.1")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
Expand Down
12 changes: 1 addition & 11 deletions codeOptimizers/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,10 @@ plugins {
kotlin("jvm")
}

java {
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_11
}

kotlin {
compilerOptions.jvmTarget = JvmTarget.JVM_11
}


dependencies {
implementation(project(":codeCore"))
implementation(project(":compilerAst"))
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
// implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("com.michael-bull.kotlin-result:kotlin-result-jvm:2.0.0")
// implementation "org.jetbrains.kotlin:kotlin-reflect"
}
Expand Down
13 changes: 2 additions & 11 deletions compiler/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,6 @@ plugins {
id("com.peterabeles.gversion") version "1.10.3"
}

java {
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_11
}

kotlin {
compilerOptions.jvmTarget = JvmTarget.JVM_11
}

dependencies {
implementation(project(":codeCore"))
implementation(project(":codeOptimizers"))
Expand All @@ -27,7 +18,7 @@ dependencies {
implementation(project(":virtualmachine"))
// implementation(project(":beanshell"))
implementation("org.antlr:antlr4-runtime:4.13.2")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
// implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
// implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlinx:kotlinx-cli:0.3.6")
implementation("com.michael-bull.kotlin-result:kotlin-result-jvm:2.0.0")
Expand All @@ -36,7 +27,7 @@ dependencies {
testImplementation(project(":intermediate"))
testImplementation("io.kotest:kotest-runner-junit5-jvm:5.9.1")
testImplementation("io.kotest:kotest-framework-datatest:5.9.1")
testImplementation("org.junit.jupiter:junit-jupiter:5.9.2")
testImplementation("org.junit.jupiter:junit-jupiter:5.9.1")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}

Expand Down
11 changes: 1 addition & 10 deletions compilerAst/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,9 @@ plugins {
kotlin("jvm")
}

java {
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_11
}

kotlin {
compilerOptions.jvmTarget = JvmTarget.JVM_11
}

dependencies {
implementation(project(":codeCore"))
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
// implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("org.antlr:antlr4-runtime:4.13.2")
implementation("com.michael-bull.kotlin-result:kotlin-result-jvm:2.0.0")
implementation(project(":parser"))
Expand Down
13 changes: 2 additions & 11 deletions intermediate/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,12 @@ plugins {
kotlin("jvm")
}

java {
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_11
}

kotlin {
compilerOptions.jvmTarget = JvmTarget.JVM_11
}

dependencies {
implementation(project(":codeCore"))
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
// implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
testImplementation("io.kotest:kotest-runner-junit5-jvm:5.9.1")
testImplementation("io.kotest:kotest-framework-datatest:5.9.1")
testImplementation("org.junit.jupiter:junit-jupiter:5.9.2")
testImplementation("org.junit.jupiter:junit-jupiter:5.9.1")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}

Expand Down
5 changes: 0 additions & 5 deletions parser/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ plugins {
id("java")
}

java {
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_11
}

dependencies {
antlr("org.antlr:antlr4:4.13.2")
implementation("org.antlr:antlr4-runtime:4.13.2")
Expand Down
12 changes: 2 additions & 10 deletions virtualmachine/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,15 @@ plugins {
kotlin("jvm")
}

java {
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_11
}

kotlin {
compilerOptions.jvmTarget = JvmTarget.JVM_11
}

dependencies {
implementation(project(":codeCore"))
implementation(project(":intermediate"))
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
// implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("com.michael-bull.kotlin-result:kotlin-result-jvm:2.0.0")
testImplementation("io.kotest:kotest-runner-junit5-jvm:5.9.1")
testImplementation("io.kotest:kotest-framework-datatest:5.9.1")
testImplementation("org.junit.jupiter:junit-jupiter:5.9.2")
testImplementation("org.junit.jupiter:junit-jupiter:5.9.1")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}

Expand Down

0 comments on commit 3804fba

Please sign in to comment.