mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-13 21:20:56 +00:00
* [KOTLIN] feat: adds maven-publish to 'kotlin' client generator * [KOTLIN] chore: regenerate samples
43 lines
1.2 KiB
Groovy
43 lines
1.2 KiB
Groovy
group 'org.openapitools'
|
|
version '1.0.0'
|
|
|
|
wrapper {
|
|
gradleVersion = '7.5'
|
|
distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip"
|
|
}
|
|
|
|
buildscript {
|
|
ext.kotlin_version = '1.7.21'
|
|
ext.retrofitVersion = '2.9.0'
|
|
|
|
repositories {
|
|
maven { url "https://repo1.maven.org/maven2" }
|
|
}
|
|
dependencies {
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
}
|
|
}
|
|
|
|
apply plugin: 'kotlin'
|
|
apply plugin: 'maven-publish'
|
|
|
|
repositories {
|
|
maven { url "https://repo1.maven.org/maven2" }
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
dependencies {
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
|
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
|
implementation "com.squareup.moshi:moshi-kotlin:1.13.0"
|
|
implementation "com.squareup.moshi:moshi-adapters:1.13.0"
|
|
implementation "com.squareup.okhttp3:logging-interceptor:4.10.0"
|
|
implementation "com.squareup.retrofit2:retrofit:$retrofitVersion"
|
|
implementation "com.squareup.retrofit2:converter-moshi:$retrofitVersion"
|
|
implementation "com.squareup.retrofit2:converter-scalars:$retrofitVersion"
|
|
testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2"
|
|
}
|