-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from ty1824/actionJavaVersion8
Update github action Java version to 8, add README information
- Loading branch information
Showing
6 changed files
with
50 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,44 @@ | ||
# dialector | ||
A language workbench for anyone. | ||
|
||
Dialector provides a series of libraries designed to simplify development of language servers & other language tooling. | ||
|
||
## Consumer Quick Start (For Kotlin projects using Gradle) | ||
|
||
Add dialector-kt and dialector-kt-processor to your dependencies: | ||
``` | ||
val dialectorVersion = "0.2.0 | ||
dependencies { | ||
... | ||
api("dev.dialector:dialector-kt:${dialectorVersion}") | ||
ksp("dev.dialector:dialector-kt-processor:${dialectorVersion}") | ||
... | ||
} | ||
``` | ||
|
||
Add the Kotlin Symbol Processor (KSP) plugin to your gradle build | ||
``` | ||
plugins { | ||
... | ||
kotlin("jvm") version("1.7.10") | ||
id("com.google.devtools.ksp") version("1.7.10-1.0.6") // Be sure to use a KSP version that is compatible with your Kotlin version!! | ||
... | ||
} | ||
``` | ||
|
||
Add KSP configuration to set the output package for your generated code | ||
``` | ||
ksp { | ||
arg("dev.dialector.targetPackage", "org.example.output") // Replace "org.example.output" with a package relevant to your project | ||
} | ||
``` | ||
|
||
If you are using IntelliJ, add the following to ensure your generated code is indexed: | ||
``` | ||
sourceSets.getByName("main").java | ||
srcDir("build/generated/ksp/main/kotlin") | ||
} | ||
``` | ||
|
||
At this point, you can start using Dialector! Running a gradle build will generate sources and include them in compilation automatically. | ||
A more thorough introduction of how Dialector works and common use cases will be provided soon. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# dialector-kt-processor | ||
|
||
A Kotlin Symbol Processor for dialector-kt that generates Node implementations and builders for annotated Node interfaces. |