Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Getting started building Kotlin libraries #95
Kotlin is getting more popular, especially in Android projects. JetBrains provides official Kotlin Gradle plugin. See https://kotlinlang.org/docs/reference/using-gradle.html. I asked them if they are interested in contributing a getting started guide.
added a commit
Sep 8, 2017
@eriwen The guide looks good to me!
Here's my feedback:
@eriwen Looking good. I have a couple of comments.
Great to see the Kotlin DSL there. A few comments:
Thank you everyone for you feedback. I have addressed it in gradle-guides/building-kotlin-jvm-libraries@ebc2cdb.
I don't disagree, but I don't see this is a large motivation to pick up the story we have for this.
The green is intentional as part of the
I note in the guide that it's important to know that the Kotlin plugin applies the Java plugin, which we can only figure out via a build scan, and that we'll be using configurations from the Java plugin later. This is why that is useful and important.
They publish it incorrectly, and there is a GitHub issue I commented on about it and voted on.
I agree, and this is what I started with. I could not get the examples to look as I wanted with 1 project after much effort, so I found it more pragmatic to do search and replace.
I started with this, but I think it's more important to have the example work for Gradle 4.1 then to show off the latest hotness.