Skip to content

Commit 9e66ac4

Browse files
github-actions[bot]github-actionsgabrielfeo
authored
Bump GE API spec version to 2023.2 (#100)
https://docs.gradle.com/enterprise/api-manual/#release_history --------- Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Gabriel Feo <gabriel@gabrielfeo.com>
1 parent 0e50b1a commit 9e66ac4

File tree

5 files changed

+6
-3
lines changed

5 files changed

+6
-3
lines changed

examples/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ exampleTestTasks += tasks.register<Exec>("runExampleScript") {
1010
group = "Application"
1111
description = "Runs the 'example-script.main.kts' script"
1212
commandLine("kotlinc", "-script", file("example-script.main.kts"))
13+
environment("JAVA_OPTS", "-Xmx1g")
1314
}
1415

1516
exampleTestTasks += tasks.register<GradleBuild>("runExampleProject") {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file was generated by the Gradle 'init' task.
22
# https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties
3-
3+
org.gradle.jvmargs=-Xmx1g
44
org.gradle.parallel=true
55
org.gradle.caching=true
66

examples/example-script.main.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
*
1414
* - "Some are doing check builds locally, which we set up to trigger our notably slow
1515
* legacy tests. We should suggest they run test instead, leaving check for CI to run."
16+
*
17+
* Run this with at least 1GB of heap to accomodate the fetched data: JAVA_OPTS=-Xmx1g
1618
*/
1719

1820
@file:DependsOn("com.gabrielfeo:gradle-enterprise-api-kotlin:2023.1.0")

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ org.gradle.jvmargs=-Xmx5g
22
org.gradle.caching=true
33
version=SNAPSHOT
44
# Must be later than 2022.1
5-
gradle.enterprise.version=2023.1
5+
gradle.enterprise.version=2023.2
66
group=com.gabrielfeo
77
artifact=gradle-enterprise-api-kotlin

library/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ val downloadApiSpec by tasks.registering {
4040
openApiGenerate {
4141
generatorName.set("kotlin")
4242
val spec = when {
43-
localSpecPath.isPresent() -> localSpecPath.map { File(it).absolutePath }
43+
localSpecPath.isPresent() -> localSpecPath.map { rootProject.file(it).absolutePath }
4444
else -> downloadApiSpec.map { it.outputs.files.first().absolutePath }
4545
}
4646
inputSpec.set(spec)

0 commit comments

Comments
 (0)