Kotlin and Java 0.1.0-beta.7 are released
Itinera has two more languages. The first release of itinera-j, Itinera's implementation for the JVM, is on Maven Central under the group org.itinera-dev, for Kotlin and for Java at once. It implements specification 0.1.0 and claims tier 1. Kotlin has synchronous and asynchronous executors and support for testing workflows; Java has a synchronous executor and support for testing workflows. Both pass the conformance cases tagged v0.1.0-rc.20, and both conformance reports are attached to its release on GitHub.
What it brings
The meaning is the one the specification defines, so a workflow means in Kotlin and in Java what it means in Rust and in TypeScript. The way you write it belongs to the JVM:
- One core for both languages. The core is written in Kotlin and used from Kotlin and Java alike.
itinera-kotlin, which every Kotlin application adds, reads Kotlin classes and data classes as Kotlin declares them and runs asynchronous workflows on coroutines, anditinera-javaadds requests in Java's own forms, such as an optional input that arrives as anOptional. - Annotations declare everything. A step, a policy or a workflow is a plain class implementing one of Itinera's interfaces, and an annotation such as
@Stepor@Workflowsays what it is. A builder puts the same workflow together without them. - Records and data classes are values too, read from the data bag with a type token that keeps generics and nullability.
- Some mistakes do not compile. A lifecycle a hook may not return, a part of the other execution mode in a workflow, a rescue step that skips, and a write through an input adapter's access to the data bag are caught when the program compiles: by the types, and in annotated classes by
itinera-checker, a javac plugin and a KSP processor you add to your build. Without it, they are refused when the workflow is described. - One version for every artifact, which the bill of materials,
itinera-bom, names once.
The changelog lists everything the release contains.
Try it
Add itinera-kotlin or itinera-java to your build, with itinera-testing for your tests. Languages has the Gradle lines and what else each language needs, for Kotlin and for Java, with links to each edition of the book and to the API reference.