From 592ed0b45702cfd57b95cd724e3756581ef23673 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 19 Dec 2024 05:42:18 +0000 Subject: [PATCH] chore(docs): add example project (#291) --- modern-treasury-java-example/build.gradle.kts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/modern-treasury-java-example/build.gradle.kts b/modern-treasury-java-example/build.gradle.kts index f5fb0558..1cd16cfd 100644 --- a/modern-treasury-java-example/build.gradle.kts +++ b/modern-treasury-java-example/build.gradle.kts @@ -1,12 +1,18 @@ plugins { - id("application") - id("modern-treasury.java") + id("modern-treasury.kotlin") + id("java") + application } dependencies { implementation(project(":modern-treasury-java")) } +tasks.withType().configureEach { + // Allow using more modern APIs, like `List.of` and `Map.of`, in examples. + options.release.set(9) +} + application { - mainClass.set("com.moderntreasury.example.Main") + mainClass = "com.moderntreasury.api.example.Main" }