FibreFoX / javafx-gradle-plugin

Gradle plugin for JavaFX
Apache License 2.0
427 stars 59 forks source link

Make it compatible with Gradle 6.0 in future release #147

Open KleinDevDE opened 5 years ago

KleinDevDE commented 5 years ago

Error

Build file '/home/klein/Dokumente/Development/Workspace/Java/Office/CreditCardBilling/build.gradle' line: 72
A problem occurred evaluating root project 'CreditCardBilling'.
> Failed to apply plugin [id 'javafx-gradle-plugin']
   > Could not create task ':jfxJar'.
      > Unnecessarily replacing a task that does not exist is not supported.  Use create() or register() directly instead.  You attempted to replace a task named 'jfxJar', but there is no existing task with that name.

build.gradle

apply plugin: 'javafx-gradle-plugin'

jfx {
    // minimal requirement for jfxJar-task
    mainClass = 'de.b1systems.trainees.creditcardbilling.Main'

    // minimal requirement for jfxNative-task
    vendor = 'SendMail'
}

./gradle -v

------------------------------------------------------------
Gradle 6.0-20190926235010+0000
------------------------------------------------------------

Build time:   2019-09-26 23:50:10 UTC
Revision:     1da0cdd4c2785cf436cbe262ecd3b43aadf92f14

Kotlin:       1.3.50
Groovy:       2.5.8
Ant:          Apache Ant(TM) version 1.9.14 compiled on March 12 2019
JVM:          13 (Ubuntu 13+13-Ubuntu-0ubunt1)
OS:           Linux 5.0.0-29-generic amd64
FibreFoX commented 5 years ago

Interesting ... so they removed some "vital" parts of my plugin :( thanks for reporting this (I wasn't aware that the Gradle-project does change that much)

octo-kumo commented 4 years ago

So is this not going to be fixed?

debuglevel commented 3 years ago

I just looked around in the forks if someone fixed this. I did not verified it, but https://github.com/icebergteam/javafx-gradle-plugin/commit/8ee1e75b57ca784799ebec284604acb02ae03543 looks like @icebergteam fixed something that seems to to be related. Maybe you could take a look if this is indeed a fix?

FibreFoX commented 3 years ago

Thanks for the hint @debuglevel , I will look into it. 2020 was not my best year, so good way for "new year resolutions" 😺

LionZXY commented 3 years ago

@FibreFoX Can I support you somehow? Donate, perhaps?

WIPARNAB commented 1 year ago

Hi @FibreFoX , Is there any update on the same?