Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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