Skip to content

Commit

Permalink
chore(docs): add example project (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Dec 19, 2024
1 parent 7ace870 commit 592ed0b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions modern-treasury-java-example/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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<JavaCompile>().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"
}

0 comments on commit 592ed0b

Please sign in to comment.