kermitt2 / grobid

A machine learning software for extracting information from scholarly documents
https://grobid.readthedocs.io
Apache License 2.0
3.61k stars 461 forks source link

Add Kotlin language #1096

Closed lfoppiano closed 6 months ago

lfoppiano commented 7 months ago

This PR enable Kotlin in the Grobid build. #992

Kotlin is a fully JVM compatible language that allow to write code in a more efficient way. It's a compiled language that integrate seamlessly in the Java JVM machine.

We have successfully used Kotlin in Grobid-quantities since version 0.7.3 for both tests and new code.

The approach so far is to gradually move to Kotlin only for new code, in particular it fits well for writing JUnit and integration tests.

In this PR, beside enabling Kotlin I added a small test to validate that it's working.

coveralls commented 7 months ago

Coverage Status

coverage: 39.923% (+0.02%) from 39.906% when pulling 9db86676a132542b0dda29e7c7651d52960529a3 on feature/kotlin into d98129f2953fd5a595bf88890b97a546fe763384 on master.