From e9d342bc0b26ec8dd0be907f99d94dc13ef180db Mon Sep 17 00:00:00 2001 From: Anthony Lau Date: Tue, 17 Jan 2023 00:31:51 -0800 Subject: [PATCH] add test --- build-and-test-all-mysql-kafka-spring-boot-3.sh | 10 ++++++++++ build.gradle | 10 +++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100755 build-and-test-all-mysql-kafka-spring-boot-3.sh diff --git a/build-and-test-all-mysql-kafka-spring-boot-3.sh b/build-and-test-all-mysql-kafka-spring-boot-3.sh new file mode 100755 index 00000000..cce90198 --- /dev/null +++ b/build-and-test-all-mysql-kafka-spring-boot-3.sh @@ -0,0 +1,10 @@ +#! /bin/bash + +set -e + +export DATABASE=mysql +export MODE=binlog +export BROKER=kafka +export COORDINATOR=zookeeper + +./_build-and-test-all.sh -P springBootVersion=3.0.1 diff --git a/build.gradle b/build.gradle index 942e79cb..21ca5e93 100644 --- a/build.gradle +++ b/build.gradle @@ -24,9 +24,6 @@ apply plugin: "io.eventuate.plugins.gradle.publish.EventuatePublish" allprojects { - sourceCompatibility = 1.8 - targetCompatibility = 1.8 - repositories { mavenCentral() maven { url "https://repo.spring.io/milestone" } @@ -45,6 +42,13 @@ allprojects { } } +subprojects { project -> + java { + toolchain { + languageVersion.set(JavaLanguageVersion.of(project.ext.get("springBootVersion").startsWith("3") ? 17 : 8)); + } + } +} gradle.projectsEvaluated { task aggregateJavaDocs(type: Javadoc) {