Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not create task ':example:nativeRunAgent' error on subprojects #179

Closed
nlisker opened this issue Sep 4, 2023 · 4 comments
Closed

Comments

@nlisker
Copy link

nlisker commented Sep 4, 2023

After openjfx/javafx-gradle-plugin#151, the problem fixed in #107 (#102) was revived.

The critical part of the build file:

plugins {
	id 'org.openjfx.javafxplugin' version '0.0.15-SNAPSHOT' apply false
	id 'com.gluonhq.gluonfx-gradle-plugin' version '+' apply false
}

subprojects {

	if (project.name == 'gui') {
		apply plugin: 'application'
		apply plugin: 'org.openjfx.javafxplugin'
		apply plugin: 'com.gluonhq.gluonfx-gradle-plugin' // this line causes an error
	}

This is the error:

> Failed to apply plugin 'com.gluonhq.gluonfx-gradle-plugin'.
   > Could not create task ':gui:nativeRunAgent'.
      > Could not create task of type 'NativeRunAgentTask'.
         > javafxplugin:configJavafxRun task not found.

When version 0.0.15 if the javafx plugin is released, it will break current applications that use this plugin, so this plugin needs to be patched beforehand.

@jjohannes
Copy link

This was expected to happen. See this comment thread for how it should be fixed:

openjfx/javafx-gradle-plugin#151 (comment)

@jperedadnr
Copy link
Collaborator

@nlisker can you test the latest snapshot and see if this is still an issue?
1.0.21-SNAPSHOT from https://oss.sonatype.org/content/repositories/snapshots

@nlisker
Copy link
Author

nlisker commented Sep 20, 2023

I can confirm that the error that occurs with 1.0.20 is resolved with 1.0.21-SNAPSHOT.

@nlisker nlisker closed this as completed Sep 20, 2023
@nlisker
Copy link
Author

nlisker commented Sep 20, 2023

Maybe #128 is also resolved now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants