RichTextFX icon indicating copy to clipboard operation
RichTextFX copied to clipboard

Issue using classifier with gradle version 8+

Open Symeon94 opened this issue 6 months ago • 2 comments

Hello,

I'm trying to build with the latest Gradle (it would be handy to have somewhere in the README a mention of the version used to build the library) and I get an error in building

* What went wrong:
A problem occurred evaluating project ':richtextfx'.
> Could not set unknown property 'classifier' for task ':richtextfx:javadocJar' of type org.gradle.api.tasks.bundling.Jar.

From quickly looking, it seems that it is simply due to deprecated "classifier" used in the build: It seems that instead

jar {
    classifier = 'sources'
}

For version 8+ you should use:

jar {
    archiveClassifier.set('sources')
}

Symeon94 avatar Jul 02 '25 06:07 Symeon94

It seems additionally that the plugin org.unbroken-dome.test-sets version 4.0.0 is not compatible with the 8+ version (for the same reason). Upgrade to version 4.1.0 (the latest fixes it).

We should probably document version in the README to make sure future people wanting to build have the information.

Symeon94 avatar Jul 02 '25 08:07 Symeon94

Have upgraded to Gradle 8.5 and bumped "org.unbroken-dome.test-sets" to version 4.1.0

Jugen avatar Jul 31 '25 12:07 Jugen