mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-30 10:17:50 +08:00
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:
parent
f093c3e0bc
commit
a03670ab94
@ -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`.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user