microsoft / build-server-for-gradle

An implementation of the Build Server Protocol for Gradle
MIT License
45 stars 7 forks source link

Add Kotlin support #120

Open Arthurm1 opened 6 months ago

Arthurm1 commented 6 months ago

Adds Kotlin support.

I don't use Kotlin but I thought it would be good to get support for a few languages to help decide on best design for handling multiple languages.

BSP spec is not finalised for Kotlin. See here. I've no idea about how to setup associates in a Gradle build so I've ignored it.

Kotlin plugin doesn't seem to be part of Gradle so everything here is done with reflection - I guess you could add the Kotlin library into the plugin project if you don't want to use reflection.

Up to you if you want to merge. I could change this to a draft PR.

Arthurm1 commented 3 months ago

rebased