mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 12:40:53 +00:00
* Drop separate version property Not required as all Jackson packages usually tether on a version bump. * Update Jackson to v2.17.1 * Sync Jackson version used by Spring Boot with project version * Sync jackson update to v2.17.1 with generator templates * Regenerate samples with updated versions * Adjust test to current exception msg behavior * Add dependency mgmt to ensure matching version for transitive dependencies * Update library descriptions with correct Jackson version number * Update library descriptions with correct GSON and JSONB versions * Update retrofit library description with correct version number * Update retrofit description to include Jackson as an option This should have been done as part of in #16853. * Update remaining libary version descriptions with correct versions * Generate updated doc
69 lines
2.0 KiB
Groovy
69 lines
2.0 KiB
Groovy
group 'org.openapitools'
|
|
version '1.0.0'
|
|
|
|
wrapper {
|
|
gradleVersion = '8.7'
|
|
distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip"
|
|
}
|
|
|
|
buildscript {
|
|
ext.kotlin_version = '1.9.23'
|
|
ext.spring_boot_version = "3.2.5"
|
|
ext.spotless_version = "6.25.0"
|
|
|
|
repositories {
|
|
maven { url "https://repo1.maven.org/maven2" }
|
|
}
|
|
dependencies {
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
classpath "com.diffplug.spotless:spotless-plugin-gradle:$spotless_version"
|
|
}
|
|
}
|
|
|
|
apply plugin: 'kotlin'
|
|
apply plugin: 'maven-publish'
|
|
apply plugin: 'com.diffplug.spotless'
|
|
|
|
repositories {
|
|
maven { url "https://repo1.maven.org/maven2" }
|
|
}
|
|
|
|
// Use spotless plugin to automatically format code, remove unused import, etc
|
|
// To apply changes directly to the file, run `gradlew spotlessApply`
|
|
// Ref: https://github.com/diffplug/spotless/tree/main/plugin-gradle
|
|
spotless {
|
|
// comment out below to run spotless as part of the `check` task
|
|
enforceCheck false
|
|
|
|
format 'misc', {
|
|
// define the files (e.g. '*.gradle', '*.md') to apply `misc` to
|
|
target '.gitignore'
|
|
|
|
// define the steps to apply to those files
|
|
trimTrailingWhitespace()
|
|
indentWithSpaces() // Takes an integer argument if you don't like 4
|
|
endWithNewline()
|
|
}
|
|
kotlin {
|
|
ktfmt()
|
|
}
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
kotlin {
|
|
jvmToolchain {
|
|
languageVersion.set(JavaLanguageVersion.of(17))
|
|
}
|
|
}
|
|
dependencies {
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
|
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
|
implementation "com.fasterxml.jackson.module:jackson-module-kotlin:2.17.1"
|
|
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.17.1"
|
|
implementation "org.springframework.boot:spring-boot-starter-web:$spring_boot_version"
|
|
testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2"
|
|
}
|