Include the sourceSet rune for kotlin gradle (#307)

Include to necessary rune for kotlin based gradle files to assist people starting from the JetBrains/intellij-platform-plugin-template repo, which uses `build.gradle.kts` by default.

Related issue: JetBrains/intellij-platform-plugin-template#17
This commit is contained in:
Niels Thykier 2020-07-20 09:22:22 +00:00 committed by GitHub
parent f093c3e0bc
commit a03670ab94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,11 @@ To include those files, the project's `sourceSets` must be expanded by inserting
sourceSets.main.java.srcDirs 'src/main/gen'
```
Or the following line in the project's `build.gradle.kts` file:
```kotlin
sourceSets["main"].java.srcDirs("src/main/gen")
```
## 4.1. Define a Lexer
Define a `Simple.flex` file with rules for the Simple Language lexer, as demonstrated in `org.intellij.sdk.language.Simple.flex`.