-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the task @CacheableTask, and explicitly add @OutputDirectory
- Loading branch information
Showing
5 changed files
with
35 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
# Module OpenAPI Kotlin Gradle Plugin | ||
|
||
OpenAPI Kotlin Gradle Plugin is a Gradle plugin that uses `generation` to generate Kotlin Code. | ||
OpenAPI Kotlin Gradle Plugin is a Gradle plugin that uses `generation` to generate Kotlin Code. | ||
|
||
To use the plugin, you need to add the following to your `build.gradle.kts` file: | ||
|
||
```kotlin | ||
openApiConfig { | ||
spec("OpenAI", file("openai.yaml")) { | ||
// packageName = "io.github.nomisrev.openai" | ||
} | ||
} | ||
``` | ||
|
||
This will generate the Kotlin code from the `openai.yaml` file, | ||
and the generated code will be placed in the `build/generated` directory. | ||
|
||
The Gradle plugin automatically adds the generated code to the source set of the project. |
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