File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 1
1
plugins {
2
2
id(" io.micronaut.application" )
3
+ id(" org.openapi.generator" )
3
4
}
4
5
5
6
application {
@@ -11,6 +12,24 @@ micronaut {
11
12
testRuntime(" junit5" )
12
13
}
13
14
15
+ openApiGenerate {
16
+ inputSpec.set(layout.buildDirectory.dir(" classes/java/main/META-INF/swagger" ).get().file(" pledger-2.0.0.yml" ).toString())
17
+ outputDir.set(layout.buildDirectory.dir(" asciidoc" ).get().toString())
18
+ cleanupOutput.set(true )
19
+ generatorName.set(" asciidoc" )
20
+ skipValidateSpec.set(true )
21
+ }
22
+
23
+ publishing {
24
+ publications {
25
+ create<MavenPublication >(" documentation" ) {
26
+ groupId = " com.jongsoft.finance"
27
+ version = System .getProperty(" version" )
28
+ artifacts.add(artifact(layout.buildDirectory.dir(" asciidoc" ).get().file(" index.adoc" )))
29
+ }
30
+ }
31
+ }
32
+
14
33
val integration by sourceSets.creating
15
34
16
35
configurations[integration.implementationConfigurationName].extendsFrom(configurations.testImplementation.get())
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ pluginManagement {
7
7
id(" io.micronaut.application" ).version(" 4.4.2" )
8
8
id(" io.freefair.lombok" ).version(" 8.10" )
9
9
id(" org.sonarqube" ).version(" 5.1.0.4882" )
10
+ id(" org.openapi.generator" ).version(" 7.8.0" )
10
11
11
12
id(" signing" )
12
13
id(" maven-publish" )
You can’t perform that action at this time.
0 commit comments