forked from loafle/openapi-generator-original
* Add the applicationName parameter to support generation of multiple clients * Change indentation in application.yml to double-space * Update swagger annotations version, and option to choose not to generate the annotations * Generate operations only in the first defined tag class for micronaut server * Improve micronaut client options by setting the correct default values in the JavaMicronautAbstractCodegen constructor * Fix visitor pattern having abstract method in non-abstract class. Update samples * Update server sample FILES * Minor refactor * Fix for context path
44 lines
1.0 KiB
Groovy
44 lines
1.0 KiB
Groovy
plugins {
|
|
id("groovy")
|
|
id("com.github.johnrengelman.shadow") version "7.1.1"
|
|
id("io.micronaut.application") version "3.1.1"
|
|
}
|
|
|
|
version = "1.0.0"
|
|
group = "org.openapitools"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
micronaut {
|
|
runtime("netty")
|
|
testRuntime("spock2")
|
|
processing {
|
|
incremental(true)
|
|
annotations("org.openapitools.*")
|
|
}
|
|
}
|
|
|
|
|
|
dependencies {
|
|
annotationProcessor("io.micronaut:micronaut-http-validation")
|
|
implementation("io.micronaut:micronaut-http-client")
|
|
implementation("io.micronaut:micronaut-runtime")
|
|
implementation("io.micronaut:micronaut-validation")
|
|
implementation("io.micronaut.reactor:micronaut-reactor")
|
|
implementation("io.swagger.core.v3:swagger-annotations:2.2.0")
|
|
runtimeOnly("ch.qos.logback:logback-classic")
|
|
}
|
|
|
|
// TODO Set the main class
|
|
application {
|
|
mainClass.set("org.openapitools.Application")
|
|
}
|
|
java {
|
|
sourceCompatibility = JavaVersion.toVersion("1.8")
|
|
targetCompatibility = JavaVersion.toVersion("1.8")
|
|
}
|
|
|
|
graalvmNative.toolchainDetection = false
|