Skip to content

Commit e6eb7cd

Browse files
chore(docs): add example project (#367)
1 parent b3dbe0b commit e6eb7cd

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
plugins {
2-
id("application")
3-
id("finch.java")
2+
id("finch.kotlin")
3+
id("java")
4+
application
45
}
56

67
dependencies {
78
implementation(project(":finch-java"))
89
}
910

11+
tasks.withType<JavaCompile>().configureEach {
12+
// Allow using more modern APIs, like `List.of` and `Map.of`, in examples.
13+
options.release.set(9)
14+
}
15+
1016
application {
11-
mainClass.set("com.tryfinch.api.example.Main")
17+
mainClass = "com.tryfinch.api.example.Main"
1218
}

0 commit comments

Comments
 (0)