javafx-gradle-plugin icon indicating copy to clipboard operation
javafx-gradle-plugin copied to clipboard

Make it compatible with Gradle 6.0 in future release

Open KleinDevDE opened this issue 6 years ago • 6 comments

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

KleinDevDE avatar Sep 27 '19 11:09 KleinDevDE

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)

FibreFoX avatar Sep 27 '19 20:09 FibreFoX

So is this not going to be fixed?

octo-kumo avatar Aug 07 '20 13:08 octo-kumo

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?

debuglevel avatar Jan 03 '21 13:01 debuglevel

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

FibreFoX avatar Jan 03 '21 13:01 FibreFoX

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

LionZXY avatar Jan 04 '21 15:01 LionZXY

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

WIPARNAB avatar Jan 20 '23 12:01 WIPARNAB