Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for Kotlin compiler. #220

Merged
merged 1 commit into from
Jul 27, 2018

Conversation

dvlato
Copy link
Contributor

@dvlato dvlato commented Jul 27, 2018

Added support for Kotlin compiler in the parent pom 'management' blocks.
Specific sub-projects that want to include Kotlin should declare the dependency kotlin-stdlib-jdk8 (and kotlin-test if needed) and the kotlin-maven-plugin plugin.

We should consider adding nullability annotations to the Java code so we can have null-safe Kotlin even if most of our code base is in Java. See: https://nklmish.wordpress.com/2017/11/01/null-safety-calling-java-from-kotlin/, https://kotlinlang.org/docs/reference/java-interop.html#nullability-annotations . I would go for setting "Not Null by default" and then specifically annotate with @nullable when needed.

In Java we could use these annotations to generate non null checks in runtime (as Kotlin does) via using this tool: http://traute.oss.harmonysoft.tech/

…fic sub-projects that want to include Kotlin should declare the dependency kotlin-stdlib-jdk8 (and kotlin-test if needed) and the kotlin-maven-plugin plugin.
@dvlato dvlato merged commit 00610e6 into ExpediaGroup:styx-1.0-dev Jul 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants