Skip to content

Commit 8a2a9d1

Browse files
authored
Fix coroutines gradle flag (#702)
1 parent f6936b3 commit 8a2a9d1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

harness/tests/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repositories {
1313
godot {
1414
registrationFileBaseDir.set(projectDir.resolve("scripts").also { it.mkdirs() })
1515
isRegistrationFileHierarchyEnabled.set(true)
16-
enableGodotCoroutines.set(true)
16+
isGodotCoroutinesEnabled.set(true)
1717

1818
//uncomment to test android
1919
// isAndroidExportEnabled.set(true)

kt/plugins/godot-gradle-plugin/src/main/kotlin/godot/gradle/GodotExtension.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ open class GodotExtension(objects: ObjectFactory) {
171171
*
172172
* If set to true, import godot-coroutine-library
173173
*/
174-
val enableGodotCoroutines: Property<Boolean> = objects.property(Boolean::class.java)
174+
val isGodotCoroutinesEnabled: Property<Boolean> = objects.property(Boolean::class.java)
175175

176176
internal fun configureExtensionDefaults(target: Project) {
177177
val androidSdkRoot = System.getenv("ANDROID_SDK_ROOT")?.let { androidSdkRoot ->
@@ -226,7 +226,7 @@ open class GodotExtension(objects: ObjectFactory) {
226226
additionalGraalResourceConfigurationFiles.set(arrayOf())
227227
isGraalVmNativeImageGenerationVerbose.set(false)
228228

229-
enableGodotCoroutines.set(false)
229+
isGodotCoroutinesEnabled.set(false)
230230

231231
System.getenv("VC_VARS_PATH")?.let {
232232
windowsDeveloperVCVarsPath.set(File(it))

kt/plugins/godot-gradle-plugin/src/main/kotlin/godot/gradle/GodotPlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ abstract class GodotPlugin : Plugin<Project> {
3434

3535
// registers the tooling model builder, so it can be used by the ide plugin
3636
afterEvaluate {
37-
if (godotJvmExtension.enableGodotCoroutines.get()) {
37+
if (godotJvmExtension.isGodotCoroutinesEnabled.get()) {
3838
dependencies.add(
3939
"implementation",
4040
dependencies.create("com.utopia-rise:${godotCoroutineLibraryArtifactName}:${GodotBuildProperties.assembledGodotKotlinJvmVersion}")

0 commit comments

Comments
 (0)