Skip to content

Commit

Permalink
change yaml build path to /build/resources/main/openapi
Browse files Browse the repository at this point in the history
  • Loading branch information
tabilzad committed May 1, 2024
1 parent c6177c9 commit 39dd814
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
GROUP=io.github.tabilzad
VERSION_NAME=0.5.3-alpha
VERSION_NAME=0.5.4-alpha

POM_LICENCE_NAME=The Apache Software License, Version 2.0
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ open class KtorMetaPlugin : KotlinCompilerPluginSupportPlugin {
val project = kotlinCompilation.target.project
val swaggerExtension = project.extensions.findByType(KtorDocsExtension::class.java) ?: KtorDocsExtension()

val buildDir = project.layout.buildDirectory.asFile.get().absolutePath
val modulePath = project.projectDir.absolutePath

kotlinCompilation.dependencies {
compileOnly("io.github.tabilzad:ktor-docs-plugin:$ktorDocsVersion")
}
Expand Down Expand Up @@ -92,11 +89,11 @@ open class KtorMetaPlugin : KotlinCompilerPluginSupportPlugin {
val gradleProvidedOptions = listOf(
SubpluginOption(
key = "buildPath",
value = buildDir
value = kotlinCompilation.output.resourcesDir.absolutePath
),
SubpluginOption(
key = "modulePath",
value = modulePath
value = project.projectDir.absolutePath
)
)
return project.provider { gradleProvidedOptions + userProvidedOptions }
Expand Down

0 comments on commit 39dd814

Please sign in to comment.