diff --git a/build.gradle b/build.gradle index fcebbf0..1bc3ed0 100644 --- a/build.gradle +++ b/build.gradle @@ -8,21 +8,21 @@ mainClass = project.hasProperty("mainClass") ? project.getProperty("mainClass") : defaultMainClassName; } -compileJava { - sourceCompatibility = "1.8"; - targetCompatibility = "1.8"; +java { + sourceCompatibility = "17"; + targetCompatibility = "17"; } repositories { mavenCentral() - // since the Jasper devs keep using their own custom builds of ancient - // versions of other projects we need to add a repository for their - // "special" versions. - maven { - url "https://jaspersoft.jfrog.io/jaspersoft/third-party-ce-artifacts/" - } + // since the Jasper devs keep using their own custom builds of ancient + // versions of other projects we need to add a repository for their + // "special" versions. + maven { + url "https://jaspersoft.jfrog.io/jaspersoft/third-party-ce-artifacts/" + } } dependencies { @@ -33,6 +33,11 @@ implementation group: "javax.xml.bind", name: "jaxb-api", version: "2.3.1"; implementation group: "org.slf4j", name: "slf4j-api", version: "2.0.7"; implementation group: "ch.qos.logback", name: "logback-classic", version: "1.4.7"; + implementation group: "io.github.resilience4j", name: "resilience4j-retry", version: "2.0.2"; + implementation group: "io.github.resilience4j", name: "resilience4j-circuitbreaker", version: "2.0.2"; + + testImplementation group: 'com.icegreen', name: 'greenmail', version: '2.0.0' + } project.configurations.implementation.setCanBeResolved(true) @@ -53,7 +58,7 @@ description = "Copy all dependencies into a 'libs' folder in the root of the project."; from configurations.implementation - into 'libs/' + into 'libs/' } tasks.register("createMissingSourceDirs") {