Coder Social home page Coder Social logo

Comments (6)

frnusmartobjects avatar frnusmartobjects commented on June 9, 2024 1

@FibreFoX Hi, thanks for the follow up. Not for now. I decided to run the jar task manually for each project since I am a bit short in time, although when I have more time I will investigate how to automate this, and I will post here the followup

from javafx-gradle-plugin.

FibreFoX avatar FibreFoX commented on June 9, 2024

You might need to adjust the order of the projects depending on each other. To avoid some misconfiguration, please use afterEvaluate { project -> } as this plugin does change the jfx-tasks after the project got evaluated. (This was done because of detecting missing jfx-classes)

from javafx-gradle-plugin.

frnusmartobjects avatar frnusmartobjects commented on June 9, 2024

Thank you very much for you fast response. I am not very experienced in gradle, so if it isn't a problem for you, could you explain a bit more what you mean with "adjust the order of the projects" and how should I use afterEvaluate { project -> } ?

What I had in mind is craete a task that runs before jfx, but I am not sure how to accomplish this and also when I add any dependsOn to the jfx task it says that it can't find the task it should depend to

from javafx-gradle-plugin.

frnusmartobjects avatar frnusmartobjects commented on June 9, 2024

Aditionally, what do you mean with "detecting missing jfx-classes"? What kind of classes could be missing, for example custom components?

from javafx-gradle-plugin.

FibreFoX avatar FibreFoX commented on June 9, 2024

Gradle maintains it's own order of processing your build-instructions. As they (the authors of Gradle) think that they do know better, they are giving you a way for controlling the ordering, you might want to lookup this inside the documentation: https://docs.gradle.org/current/userguide/build_lifecycle.html

Regarding the detection: when a java class gets instanciated, all import-instructions are getting resolved, but when working with OpenJDK, you are missing the JavaFX-parts (as they are not part of the main-standard). The so called OracleJDK (the JDK which is distributed by Oracle itself) does contain the core JDK + the JavaFX addendum part (they will change this with JDK11 again).

So in order to have the tasks being available as buildscript extensions, I rewrote some parts after that evaluation-process happened,, but changed that approach in later versions of this plugin, because it made a lot of trouble.

Just a small reminder: #119
This plugin will get replaced by a different plugin (I really hope to have this prior JDK11 .... but personal life makes it very hard to get time for this)

from javafx-gradle-plugin.

FibreFoX avatar FibreFoX commented on June 9, 2024

@frnusmartobjects any progress on your side?

from javafx-gradle-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.