Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bamboo/kts-from-sourceset
https://github.com/bamboo/kts-from-sourceset
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/bamboo/kts-from-sourceset
- Owner: bamboo
- Created: 2018-01-31T13:14:46.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-18T14:18:29.000Z (over 6 years ago)
- Last Synced: 2024-10-28T19:57:32.306Z (3 months ago)
- Language: Kotlin
- Size: 730 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Precompiled Gradle Kotlin DLS scripts as Gradle plugins
This project demonstrates the first steps towards having Gradle plugins implemented via Kotlin scripts:
1. the ability to compile `*.gradle.kts` scripts from regular Kotlin sourcesets;
2. the ability to load the compiled scripts from referencing sourcesets (such as `src/test/kotlin` in this example)Everything works fine from the command line and the test passes:
./gradlew check
BUILD SUCCESSFUL in 2s
5 actionable tasks: 5 executedUnfortunately, running the tests via the IntelliJ IDEA test runner fails with a `java.lang.ClassNotFoundException: My_gradle_plugin_gradle`:
![IDEA test runner fails](./kts-from-sourceset.png)