Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with Kotlin Script (.kts) files #177

Open
utybo opened this issue Jun 24, 2019 · 2 comments
Open

Compatibility with Kotlin Script (.kts) files #177

utybo opened this issue Jun 24, 2019 · 2 comments

Comments

@utybo
Copy link

utybo commented Jun 24, 2019

Kotlin (.kt) files are correctly recognized. Kotlin Script files are essentially just Kotlin files and follow the exact same syntax. I believe that they should be added to the plugin as defaults. Do note that it is common for Kotlin Script files to have two extensions, like this: myfile.ext.kts. This is used for recognizing scripting templates, and they should also be recognized as just Kotlin files.

Gradle buildscripts that use the Kotlin DSL are also .kts files. They could probably be excluded by excluding anything that ends in .gradle.kts.

Unknown file extension: <something>\src\test\resources\<something>.story.kts
Updating license header in: <something>\src\test\kotlin\...\<something>.kt
@elect86
Copy link

elect86 commented May 29, 2020

any news on this?

How can I define ext.year and ext.developers?

@utybo
Copy link
Author

utybo commented May 29, 2020

Hi, you might be able to use a custom task for this. I did this on another project to apply some licensing headers to things that weren't in regular sourcesets, see here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants