-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skeleton for multi-language docs examples
- Loading branch information
1 parent
21519e7
commit 88357f0
Showing
8 changed files
with
173 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
plugins { | ||
id "groovy" | ||
id "io.spring.dependency-management" | ||
} | ||
|
||
dependencyManagement { | ||
imports { | ||
mavenBom "io.micronaut:micronaut-bom:$micronautVersion" | ||
} | ||
} | ||
|
||
dependencies { | ||
testCompile project(":openapi") | ||
testCompile "io.micronaut:micronaut-inject" | ||
testCompileOnly "io.micronaut:micronaut-inject-groovy" | ||
testCompile "org.testcontainers:spock:1.10.5" | ||
testCompile("org.spockframework:spock-core") { | ||
exclude group: "org.codehaus.groovy", module: "groovy-all" | ||
} | ||
testRuntime "ch.qos.logback:logback-classic:1.2.3" | ||
testCompile "io.projectreactor:reactor-core" | ||
} | ||
|
||
licenseTest.enabled = false | ||
|
||
test { | ||
jvmArgs '-Duser.country=US' | ||
jvmArgs '-Duser.language=en' | ||
testLogging { | ||
showStandardStreams = true | ||
exceptionFormat = 'full' | ||
} | ||
failFast = true | ||
} | ||
|
||
tasks.withType(GroovyCompile) { | ||
groovyOptions.forkOptions.jvmArgs.add('-Dgroovy.parameters=true') | ||
} |
15 changes: 15 additions & 0 deletions
15
docs-examples/example-groovy/src/test/resources/logback.xml
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,15 @@ | ||
<configuration> | ||
|
||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | ||
<!-- encoders are assigned the type | ||
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default --> | ||
<encoder> | ||
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<root level="error"> | ||
<appender-ref ref="STDOUT" /> | ||
</root> | ||
<logger name="io.micronaut.configuration.openapi" level="TRACE"/> | ||
</configuration> |
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,39 @@ | ||
plugins { | ||
id "java" | ||
id "io.spring.dependency-management" | ||
} | ||
|
||
dependencyManagement { | ||
imports { | ||
mavenBom "io.micronaut:micronaut-bom:$micronautVersion" | ||
} | ||
} | ||
|
||
dependencies { | ||
testAnnotationProcessor "io.micronaut:micronaut-inject-java" | ||
testCompile "io.micronaut:micronaut-inject" | ||
testCompile project(":openapi") | ||
testCompile "org.testcontainers:testcontainers:1.10.5" | ||
testCompile 'org.awaitility:awaitility:3.1.6' | ||
testCompile "org.junit.jupiter:junit-jupiter-api:$junitVersion" | ||
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion" | ||
testRuntime "ch.qos.logback:logback-classic:1.2.3" | ||
testCompile "io.projectreactor:reactor-core" | ||
} | ||
|
||
licenseTest.enabled = false | ||
|
||
compileJava.options.compilerArgs += '-parameters' | ||
compileTestJava.options.compilerArgs += '-parameters' | ||
|
||
test { | ||
useJUnitPlatform() | ||
|
||
jvmArgs '-Duser.country=US' | ||
jvmArgs '-Duser.language=en' | ||
testLogging { | ||
showStandardStreams = true | ||
exceptionFormat = 'full' | ||
} | ||
failFast = true | ||
} |
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,15 @@ | ||
<configuration> | ||
|
||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | ||
<!-- encoders are assigned the type | ||
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default --> | ||
<encoder> | ||
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<root level="error"> | ||
<appender-ref ref="STDOUT" /> | ||
</root> | ||
<logger name="io.micronaut.configuration.openapi" level="TRACE"/> | ||
</configuration> |
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,43 @@ | ||
plugins { | ||
id "org.jetbrains.kotlin.jvm" version "1.3.20" | ||
id "org.jetbrains.kotlin.kapt" version "1.3.20" | ||
id "io.spring.dependency-management" | ||
} | ||
|
||
dependencyManagement { | ||
imports { | ||
mavenBom "io.micronaut:micronaut-bom:$micronautVersion" | ||
} | ||
} | ||
|
||
dependencies { | ||
testCompile project(":openapi") | ||
testRuntime "ch.qos.logback:logback-classic:1.2.3" | ||
testCompile "org.testcontainers:testcontainers:1.10.5" | ||
testCompile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion" | ||
testCompile "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion" | ||
kaptTest "io.micronaut:micronaut-inject-java" | ||
testCompile 'io.kotlintest:kotlintest-runner-junit5:3.2.1' | ||
testCompile "io.projectreactor:reactor-core" | ||
} | ||
|
||
licenseTest.enabled = false | ||
|
||
test { | ||
useJUnitPlatform() | ||
|
||
jvmArgs '-Duser.country=US' | ||
jvmArgs '-Duser.language=en' | ||
testLogging { | ||
showStandardStreams = true | ||
exceptionFormat = 'full' | ||
} | ||
failFast = true | ||
} | ||
|
||
compileTestKotlin { | ||
kotlinOptions { | ||
jvmTarget = '1.8' | ||
javaParameters = true | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
docs-examples/example-kotlin/src/test/resources/logback.xml
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,15 @@ | ||
<configuration> | ||
|
||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | ||
<!-- encoders are assigned the type | ||
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default --> | ||
<encoder> | ||
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<root level="error"> | ||
<appender-ref ref="STDOUT" /> | ||
</root> | ||
<logger name="io.micronaut.configuration.openapi" level="TRACE"/> | ||
</configuration> |
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,6 @@ | ||
rootProject.name="openapi-root" | ||
|
||
include "openapi" | ||
include "openapi" | ||
include 'docs-examples:example-groovy' | ||
include 'docs-examples:example-java' | ||
include 'docs-examples:example-kotlin' |