Skip to content

Commit 927818d

Browse files
committed
Upgrade Gradle plugin build to Gradle 7.6
1 parent a1bd14a commit 927818d

File tree

7 files changed

+21
-24
lines changed

7 files changed

+21
-24
lines changed

appveyor.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ install:
1515
# install gradle
1616
- ps: |
1717
Add-Type -AssemblyName System.IO.Compression.FileSystem
18-
if (!(Test-Path -Path "C:\gradle\gradle-7.5.1" )) {
18+
if (!(Test-Path -Path "C:\gradle\gradle-7.6" )) {
1919
(new-object System.Net.WebClient).DownloadFile(
20-
'https://services.gradle.org/distributions/gradle-7.5.1-bin.zip',
20+
'https://services.gradle.org/distributions/gradle-7.6-bin.zip',
2121
'C:\gradle-bin.zip'
2222
)
2323
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\gradle-bin.zip", "C:\gradle")
2424
}
25-
- cmd: SET PATH=C:\maven\apache-maven-3.8.3\bin;C:\gradle\gradle-7.5.1\bin;%JAVA_HOME%\bin;%PATH%
25+
- cmd: SET PATH=C:\maven\apache-maven-3.8.3\bin;C:\gradle\gradle-7.6\bin;%JAVA_HOME%\bin;%PATH%
2626
- cmd: SET MAVEN_OPTS=-Xmx4g
2727
- cmd: SET JAVA_OPTS=-Xmx4g
2828
- cmd: SET M2_HOME=C:\maven\apache-maven-3.8.3

modules/openapi-generator-gradle-plugin/build.gradle

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import io.github.gradlenexus.publishplugin.CloseNexusStagingRepository
22
import io.github.gradlenexus.publishplugin.ReleaseNexusStagingRepository
3+
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
34

45
plugins {
56
id("com.gradle.plugin-publish") version "1.0.0"
67
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
78
id("java-gradle-plugin")
89
id("maven-publish")
9-
id("org.gradle.kotlin.kotlin-dsl") version "2.3.3"
10-
id("org.jetbrains.kotlin.jvm") version "1.6.21"
10+
id("org.gradle.kotlin.kotlin-dsl") version "2.4.1"
11+
id("org.jetbrains.kotlin.jvm") version "1.7.10"
1112
id("signing")
1213
}
1314

@@ -39,13 +40,12 @@ repositories {
3940

4041
dependencies {
4142
implementation("org.openapitools:openapi-generator:$openApiGeneratorVersion")
42-
testImplementation("org.jetbrains.kotlin:kotlin-test-testng:1.6.21")
43+
testImplementation("org.jetbrains.kotlin:kotlin-test-testng:1.7.10")
4344
}
4445

45-
tasks.named("test").configure {
46+
tasks.named("test", Test).configure {
4647
useTestNG()
4748
testLogging.showStandardStreams = false
48-
failFast = true
4949

5050
beforeTest { descriptor ->
5151
logger.lifecycle("Running test: " + descriptor)
@@ -60,7 +60,7 @@ tasks.named("test").configure {
6060
}
6161
}
6262

63-
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
63+
tasks.withType(KotlinCompile).configureEach {
6464
kotlinOptions {
6565
jvmTarget = "1.8"
6666
}
@@ -81,22 +81,19 @@ tasks.withType(ReleaseNexusStagingRepository).configureEach {
8181
}
8282

8383
gradlePlugin {
84+
website = "https://openapi-generator.tech/"
85+
vcsUrl = "https://github.com/OpenAPITools/openapi-generator"
8486
plugins {
8587
openApiGenerator {
8688
id = "org.openapi.generator"
89+
description = "OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)."
8790
displayName = "OpenAPI Generator Gradle Plugin"
8891
implementationClass = "org.openapitools.generator.gradle.plugin.OpenApiGeneratorPlugin"
89-
description = "OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)."
92+
tags.addAll("openapi-3.0", "openapi-2.0", "openapi", "swagger", "codegen", "sdk")
9093
}
9194
}
9295
}
9396

94-
pluginBundle {
95-
website = "https://openapi-generator.tech/"
96-
vcsUrl = "https://github.com/OpenAPITools/openapi-generator"
97-
tags = ["openapi-3.0", "openapi-2.0", "openapi", "swagger", "codegen", "sdk"]
98-
}
99-
10097
nexusPublishing {
10198
repositories {
10299
sonatype {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

modules/openapi-generator-gradle-plugin/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
<properties>
1919
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
20-
<gradleVersion>7.5.1</gradleVersion>
20+
<gradleVersion>7.6</gradleVersion>
2121
</properties>
2222

2323
<pluginRepositories>

modules/openapi-generator-gradle-plugin/src/test/kotlin/GenerateTaskFromCacheTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class GenerateTaskFromCacheTest : TestBase() {
2222
}
2323

2424
@DataProvider(name = "gradle_version_provider")
25-
private fun gradleVersionProvider(): Array<Array<String>> = arrayOf(arrayOf("6.9.2"), arrayOf("7.5.1"))
25+
private fun gradleVersionProvider(): Array<Array<String>> = arrayOf(arrayOf("6.9.3"), arrayOf("7.6"))
2626

2727
// inputSpec tests
2828

modules/openapi-generator-gradle-plugin/src/test/kotlin/GenerateTaskUpToDateTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import kotlin.test.assertEquals
99
class GenerateTaskUpToDateTest : TestBase() {
1010

1111
@DataProvider(name = "gradle_version_provider")
12-
private fun gradleVersionProvider(): Array<Array<String>> = arrayOf(arrayOf("6.9.2"), arrayOf("7.5.1"))
12+
private fun gradleVersionProvider(): Array<Array<String>> = arrayOf(arrayOf("6.9.3"), arrayOf("7.6"))
1313

1414
// inputSpec tests
1515

shippable.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ build:
1414
- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 23E7166788B63E1E 6A030B21BA07F4FB 4B8EC3BAABDC4346 EB3E94ADBE1229CF 960B2B2623A0BD5D 6B05F25D762E3157
1515
#- rm /etc/apt/sources.list.d/jonathonf-ubuntu-backports-xenial.list
1616
- rm /etc/apt/sources.list.d/basho_riak.list
17-
# install Gradle 7.5.1
18-
- wget https://services.gradle.org/distributions/gradle-7.5.1-bin.zip
17+
# install Gradle 7.6
18+
- wget https://services.gradle.org/distributions/gradle-7.6-bin.zip
1919
- sudo mkdir /opt/gradle
20-
- unzip -d /opt/gradle gradle-7.5.1-bin.zip
21-
- export PATH=/opt/gradle/gradle-7.5.1/bin:$PATH
20+
- unzip -d /opt/gradle gradle-7.6-bin.zip
21+
- export PATH=/opt/gradle/gradle-7.6/bin:$PATH
2222
- gradle -v
2323
- java -version
2424
# ensure all modifications created by 'mature' generators are in the git repo

0 commit comments

Comments
 (0)