Skip to content

Commit

Permalink
Ensure library is compatible with older java compilers (>= Java 11) (#3)
Browse files Browse the repository at this point in the history
* Ensure library compatible with older java compilers

* Revert kotlin upgrade

* Remove java block where not required
  • Loading branch information
ed0906 authored Mar 25, 2024
1 parent c99dc2c commit 3bcdd1d
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 19 deletions.
4 changes: 3 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ subprojects {
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "13"

// Users of this project need the below Java Version as a minimum
jvmTarget = "11"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ rootProject.name = "spring-boot-test-dbunit"
include("spring-boot-test-dbunit")
include("spring-boot-test-dbunit-demo")
include("spring-boot-test-dbunit-integration-tests")
include("spring-boot-test-dbunit-publishing-integration-tests")
//include("spring-boot-test-dbunit-publishing-integration-tests")
5 changes: 0 additions & 5 deletions spring-boot-test-dbunit-demo/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ plugins {
kotlin("plugin.spring") version "1.6.21"
}

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

dependencies {
implementation(project(":spring-boot-test-dbunit"))
implementation("org.springframework.boot:spring-boot-starter-data-jdbc")
Expand Down
5 changes: 0 additions & 5 deletions spring-boot-test-dbunit-integration-tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ plugins {
kotlin("plugin.spring") version "1.6.21"
}

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

dependencies {
implementation(project(":spring-boot-test-dbunit"))
implementation("org.springframework.boot:spring-boot-starter-data-jdbc")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ plugins {
kotlin("plugin.spring") version "1.6.21"
}

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

repositories {
mavenCentral()
maven("https://oss.sonatype.org/content/repositories/snapshots/")
Expand Down Expand Up @@ -39,4 +34,13 @@ tasks {
bootJar {
enabled = false
}

withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")

// Users of this project need the below Java Version as a minimum
jvmTarget = JavaVersion.VERSION_17.toString()
}
}
}
2 changes: 0 additions & 2 deletions spring-boot-test-dbunit/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ repositories {
}

java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
withSourcesJar()
withJavadocJar()
}
Expand Down

0 comments on commit 3bcdd1d

Please sign in to comment.