Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gradle/kotlin-dsl-samples
Samples builds using the Gradle Kotlin DSL
https://github.com/gradle/kotlin-dsl-samples
gradle kotlin
Last synced: 3 months ago
JSON representation
Samples builds using the Gradle Kotlin DSL
- Host: GitHub
- URL: https://github.com/gradle/kotlin-dsl-samples
- Owner: gradle
- License: other
- Archived: true
- Created: 2016-04-27T22:16:07.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-07-31T19:33:45.000Z (over 4 years ago)
- Last Synced: 2024-08-11T17:10:10.892Z (4 months ago)
- Topics: gradle, kotlin
- Language: Kotlin
- Homepage: https://gradle.org/kotlin/
- Size: 7.84 MB
- Stars: 3,710
- Watchers: 140
- Forks: 429
- Open Issues: 38
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-kotlin - kotlin-dsl-samples - Samples builds using the Gradle Kotlin DSL (Libraries)
- trackawesomelist - gradle/kotlin-dsl-samples (⭐3.7k) - Kotlin language support for Gradle build scripts. (Recently Updated / [Oct 28, 2024](/content/2024/10/28/README.md))
README
Gradle Kotlin DSL Samples
=========================[![License](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](http://www.apache.org/licenses/LICENSE-2.0)
Welcome! The _Gradle Kotlin DSL_ provides support for writing [Gradle](http://gradle.org) build scripts using JetBrains' [Kotlin](http://kotlinlang.org) language. It aims to provide Gradle users with a rich, flexible and statically-typed approach to developing build logic in conjunction with the best IDE and tooling experience possible.
Getting Started
---------------The fastest way to get up and running with a Kotlin-based Gradle build is to use [gradle init](https://docs.gradle.org/current/userguide/build_init_plugin.html)
```
gradle init --dsl kotlin
```or, if you don't have Gradle installed already, you can generate Gradle builds online at https://gradle-initializr.cleverapps.io/.
The Gradle Kotlin DSL is documented in a [dedicated chapter](https://docs.gradle.org/current/userguide/kotlin_dsl.html) in the Gradle user manual.
Moreover, the Gradle [user manual](https://docs.gradle.org/current/userguide/userguide.html) and [guides](https://gradle.org/guides/) contain build script excerpts that demonstrate both the Groovy DSL and the Kotlin DSL. This is the best place where to find how to do this and that with the Gradle Kotlin DSL; and it covers all Gradle features from [using plugins](https://docs.gradle.org/current/userguide/plugins.html#plugins) to [customizing the dependency resolution behavior](https://docs.gradle.org/current/userguide/customizing_dependency_resolution_behavior.html#customizing_dependency_resolution_behavior). All snippets in the user manual demonstrate both Groovy and Kotlin DSL.
If you are looking into migrating an existing build to the Gradle Kotlin DSL, please also check out the [migration guide](https://guides.gradle.org/migrating-build-logic-from-groovy-to-kotlin/).
You can read more about the project in our [announcement blog post](http://gradle.org/blog/kotlin-meets-gradle) and check out the [frequently asked questions](https://github.com/gradle/kotlin-dsl/wiki/Frequently-Asked-Questions) in the project wiki.
Issue Tracking
--------------This repository is only for Gradle Kotlin DSL Samples.
Found a bug in one of the samples, have an idea for an improvement or for a new sample? Feel free to [add an issue](../../issues).
If you're dealing with what you believe to be an issue with Gradle or the Gradle Kotlin DSL, please [open an issue](https://github.com/gradle/gradle/issues) on the `gradle/gradle` repository.
If you're dealing with what you believe to be an issue with Kotlin itself or the Kotlin Plugin for IDEA, you may want to search JetBrains' [YouTrack](https://youtrack.jetbrains.com/issues/KT) first to see if it is a known issue. In any case, feel free to add an issue here for it as well. We'd like to know and track what our users are experiencing regardless whether the issue is with the Gradle Kotlin DSL or with Kotlin itself.
Staying in Touch
----------------Come chat with us in the #kotlin-dsl channel of the public [Gradle Community Slack](https://join.slack.com/t/gradle-community/shared_invite/enQtNDE3MzAwNjkxMzY0LTYwMTk0MWUwN2FiMzIzOWM3MzBjYjMxNWYzMDE1NGIwOTJkMTQ2NDEzOGM2OWIzNmU1ZTk5MjVhYjFhMTI3MmE) instance.
License
-------
Like the rest of Gradle, the _Gradle Kotlin DSL Samples_ are released under version 2.0 of the [Apache License](LICENSE.md).Contributing
------------Please see [CONTRIBUTING.md](.github/CONTRIBUTING.md) for details of how to build and contribute to _Gradle Kotlin DSL Samples_.