parent
63b2611696
commit
62846f7144
@ -0,0 +1,73 @@ |
||||
plugins { |
||||
id "org.openapi.generator" version "6.2.0" |
||||
} |
||||
|
||||
group = 'de.fettlaus' |
||||
version = '0.1.0' |
||||
|
||||
apply plugin: 'base' |
||||
apply plugin: 'maven-publish' |
||||
apply plugin: 'java' |
||||
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8 |
||||
targetCompatibility = JavaVersion.VERSION_1_8 |
||||
|
||||
repositories { |
||||
// Use Maven Central for resolving dependencies. |
||||
mavenCentral() |
||||
} |
||||
|
||||
sourceSets { |
||||
main.java.srcDirs = ["$buildDir/generated/src/main/java"] |
||||
} |
||||
|
||||
openApiGenerate { |
||||
generatorName = "java" |
||||
inputSpec = "$rootDir/aoclient_v1.yml".toString() |
||||
outputDir = "$buildDir/generated".toString() |
||||
apiPackage = "de.fettlaus.aoclient.api" |
||||
invokerPackage = "de.fettlaus.aoclient.invoker" |
||||
modelPackage = "de.fettlaus.aoclient.model" |
||||
groupId = "de.fettlaus" |
||||
id = "aoclient" |
||||
version = "0.0.1" |
||||
configOptions = [ |
||||
dateLibrary: "java8" |
||||
] |
||||
} |
||||
|
||||
compileJava.dependsOn tasks.openApiGenerate |
||||
|
||||
dependencies { |
||||
implementation 'io.swagger:swagger-annotations:1.6.5' |
||||
implementation "com.google.code.findbugs:jsr305:3.0.2" |
||||
implementation 'com.squareup.okhttp3:okhttp:4.9.3' |
||||
implementation 'com.squareup.okhttp3:logging-interceptor:4.9.3' |
||||
implementation 'com.google.code.gson:gson:2.9.0' |
||||
implementation 'io.gsonfire:gson-fire:1.8.5' |
||||
implementation 'javax.ws.rs:jsr311-api:1.1.1' |
||||
implementation 'javax.ws.rs:javax.ws.rs-api:2.1.1' |
||||
implementation 'org.openapitools:jackson-databind-nullable:0.2.3' |
||||
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0' |
||||
implementation "jakarta.annotation:jakarta.annotation-api:1.3.5" |
||||
} |
||||
|
||||
publishing { |
||||
repositories { |
||||
maven { |
||||
url = 'https://git.fettlaus.de/api/packages/fettlaus/maven' |
||||
name = 'gitea' |
||||
authentication { |
||||
header(HttpHeaderAuthentication) |
||||
} |
||||
credentials(HttpHeaderCredentials) |
||||
} |
||||
} |
||||
|
||||
publications { |
||||
maven(MavenPublication) { |
||||
artifactId = 'aoclient' |
||||
from components.java |
||||
} |
||||
} |
||||
} |
||||
@ -1,44 +0,0 @@ |
||||
plugins { |
||||
id "org.openapi.generator" version "6.2.0" |
||||
} |
||||
|
||||
apply plugin:'base' |
||||
|
||||
repositories { |
||||
// Use Maven Central for resolving dependencies. |
||||
mavenCentral() |
||||
} |
||||
|
||||
openApiGenerate { |
||||
generatorName = "java" |
||||
inputSpec = "$rootDir/aoclient_v1.yml".toString() |
||||
outputDir = "$buildDir/generated".toString() |
||||
apiPackage = "de.fettlaus.aoclient.api" |
||||
invokerPackage = "de.fettlaus.aoclient.invoker" |
||||
modelPackage = "de.fettlaus.aoclient.model" |
||||
groupId = "de.fettlaus" |
||||
id = "aoclient" |
||||
version = "0.0.1" |
||||
configOptions = [ |
||||
dateLibrary: "java8" |
||||
] |
||||
} |
||||
|
||||
project(":api") { |
||||
dependencies { |
||||
project(":gen") |
||||
} |
||||
|
||||
publishing { |
||||
repositories { |
||||
maven { |
||||
url = 'https://git.fettlaus.de/api/packages/fettlaus/maven' |
||||
name = 'gitea' |
||||
authentication { |
||||
header(HttpHeaderAuthentication) |
||||
} |
||||
credentials(HttpHeaderCredentials) |
||||
} |
||||
} |
||||
} |
||||
} |
||||
Binary file not shown.
@ -1,5 +1,5 @@ |
||||
distributionBase=GRADLE_USER_HOME |
||||
distributionPath=wrapper/dists |
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip |
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-milestone-2-bin.zip |
||||
zipStoreBase=GRADLE_USER_HOME |
||||
zipStorePath=wrapper/dists |
||||
|
||||
@ -1,4 +1,4 @@ |
||||
rootProject.name = 'AoClientGen' |
||||
include 'gen' |
||||
|
||||
include 'api' |
||||
project(':api').projectDir = new File(settingsDir, 'build/generated') |
||||
project(":api").name = "aoclient" |
||||
Loading…
Reference in new issue