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

Update to support Java Modules Plugin version 1.6.0 #59

Closed
msgilligan opened this issue Sep 1, 2019 · 13 comments
Closed

Update to support Java Modules Plugin version 1.6.0 #59

msgilligan opened this issue Sep 1, 2019 · 13 comments

Comments

@msgilligan
Copy link

msgilligan commented Sep 1, 2019

The Java Module Plugin version 1.6.0 introduced some refactoring (see gradle-modules-plugin Issue 80) that causes java.lang.ClassNotFoundException: org.javamodularity.moduleplugin.tasks.ModuleOptions -- see this CI build log example.

@tlinkowski
Copy link

To update org.javamodularity.moduleplugin to 1.6.0, please replace org.javamodularity.moduleplugin.tasks.ModuleOptions with org.javamodularity.moduleplugin.extensions.RunModuleOptions here:

import org.javamodularity.moduleplugin.tasks.ModuleOptions;

and ModuleOptions with RunModuleOptions here:
ModuleOptions moduleOptions = execTask.getExtensions().findByType(ModuleOptions.class);

@msgilligan
Copy link
Author

@johanvos Any chance this update can be made as part of (or shortly following) any updates for OpenJFX 13?

@jperedadnr
Copy link
Collaborator

@msgilligan, @tlinkowski, @yuliu2016, now that the PR #62 has been merged, a new snapshot of the plugin is available here.

It would be great if you could test it and provide some feedback before we release it?

You know how to do it, but just in case, add this to your settings.gradle file:

pluginManagement {
    repositories {
        maven {
            url "https://oss.sonatype.org/content/repositories/snapshots"
        }
        gradlePluginPortal()
    }
}

@yuliu2016
Copy link
Contributor

I've tried this out with my projects. The JavaFX plugin itself was fine and working, but the Modules plugin has some refactoring/breaking changes in version 1.6.0. Specifically, I had an issue with java9-modularity/gradle-modules-plugin#118 (project doesn't work with the Kotlin plugin applied), but I worked around it by having another submodule (without the Kotlin plugin) depend on the Kotlin module.

@jperedadnr
Copy link
Collaborator

@yuliu2016 Thanks for testing. So nothing that can be fixed from the JavaFX gradle plugin, right?

@yuliu2016
Copy link
Contributor

I don't think there's anything to be done

@msgilligan
Copy link
Author

msgilligan commented Oct 22, 2019

@jperedadnr I finally created a branch of my ConsensusJ/wallet-framework project that uses 0.0.9-SNAPSHOT and Modules Plugin 1.6.0. Note that I'm also using the Badass Jlink Plugin. Everything builds and runs correctly!

Here's a WIP PR with the changes: ConsensusJ/wallet-framework#7 -- you can see that both Github Actions and GitLab CI were able to build the branch.

When 0.0.9 final is released, I'll update this PR and merge it into master.

@msgilligan
Copy link
Author

@tlinkowski Have you tested the snapshot? Any reason not to release it?

@jperedadnr Are you ready to release 0.0.9?

(I'm ready to upgrade my projects to 0.0.9 release and Modules plugin 1.6.0 😁)

@tlinkowski
Copy link

@tlinkowski Have you tested the snapshot? Any reason not to release it?

No, I haven't.

Sorry, but I have never even used javafx-gradle-plugin. I came here from java9-modularity/gradle-modules-plugin#80 (comment) to share an overview on how to update this plugin (as I know the internals of gradle-modules-plugin).

Unfortunately, gradle-modules-plugin has some major bugs (e.g. mentioned java9-modularity/gradle-modules-plugin#118), but I won't find the time to fix them in the foreseeable future.

@msgilligan
Copy link
Author

Unfortunately, gradle-modules-plugin has some major bugs

Are those bugs present in 1.6.0 but not in 1.5.0?

@tlinkowski
Copy link

I'm not sure about the other bugs, but java9-modularity/gradle-modules-plugin#118 (mentioned before) is almost certainly a regression introduced in 1.6.0 by java9-modularity/gradle-modules-plugin#101.

@tobiasdiez
Copy link

Since the version 1.7 of the gradle modules plugin was just released, is there any chance 0.0.9 gets released soon as well?

@samypr100
Copy link
Contributor

samypr100 commented Jul 21, 2020

It seems 0.0.9 was released on 28 June 2020. I believe this can be closed.

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

6 participants