Skip to content

Commit

Permalink
Bump GE API spec version to 2023.2 (#100)
Browse files Browse the repository at this point in the history
https://docs.gradle.com/enterprise/api-manual/#release_history

---------

Co-authored-by: github-actions <[email protected]>
Co-authored-by: Gabriel Feo <[email protected]>
  • Loading branch information
3 people authored Oct 10, 2023
1 parent 0e50b1a commit 9e66ac4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions examples/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ exampleTestTasks += tasks.register<Exec>("runExampleScript") {
group = "Application"
description = "Runs the 'example-script.main.kts' script"
commandLine("kotlinc", "-script", file("example-script.main.kts"))
environment("JAVA_OPTS", "-Xmx1g")
}

exampleTestTasks += tasks.register<GradleBuild>("runExampleProject") {
Expand Down
2 changes: 1 addition & 1 deletion examples/example-project/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file was generated by the Gradle 'init' task.
# https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties

org.gradle.jvmargs=-Xmx1g
org.gradle.parallel=true
org.gradle.caching=true

2 changes: 2 additions & 0 deletions examples/example-script.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
*
* - "Some are doing check builds locally, which we set up to trigger our notably slow
* legacy tests. We should suggest they run test instead, leaving check for CI to run."
*
* Run this with at least 1GB of heap to accomodate the fetched data: JAVA_OPTS=-Xmx1g
*/

@file:DependsOn("com.gabrielfeo:gradle-enterprise-api-kotlin:2023.1.0")
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ org.gradle.jvmargs=-Xmx5g
org.gradle.caching=true
version=SNAPSHOT
# Must be later than 2022.1
gradle.enterprise.version=2023.1
gradle.enterprise.version=2023.2
group=com.gabrielfeo
artifact=gradle-enterprise-api-kotlin
2 changes: 1 addition & 1 deletion library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ val downloadApiSpec by tasks.registering {
openApiGenerate {
generatorName.set("kotlin")
val spec = when {
localSpecPath.isPresent() -> localSpecPath.map { File(it).absolutePath }
localSpecPath.isPresent() -> localSpecPath.map { rootProject.file(it).absolutePath }
else -> downloadApiSpec.map { it.outputs.files.first().absolutePath }
}
inputSpec.set(spec)
Expand Down

0 comments on commit 9e66ac4

Please sign in to comment.