We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3dbe0b commit e6eb7cdCopy full SHA for e6eb7cd
1 file changed
finch-java-example/build.gradle.kts
@@ -1,12 +1,18 @@
1
plugins {
2
- id("application")
3
- id("finch.java")
+ id("finch.kotlin")
+ id("java")
4
+ application
5
}
6
7
dependencies {
8
implementation(project(":finch-java"))
9
10
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
+
16
application {
- mainClass.set("com.tryfinch.api.example.Main")
17
+ mainClass = "com.tryfinch.api.example.Main"
18
0 commit comments