JavaFXSmartGraph icon indicating copy to clipboard operation
JavaFXSmartGraph copied to clipboard

[Feature Add] It would be nice if a gradle configuration was supported

Open madhephaestus opened this issue 2 years ago • 1 comments

Using this project as a gradle sub-module would be a very useful feature. To add support for that a build.gradle file needs to be added, and the resources need to be moved into a directory.

madhephaestus avatar Aug 03 '21 14:08 madhephaestus

For anyone who wants to include this library in their gradle.build file but does not know how, you can include it in your project like this. It will not be a sub-module but you will be able to use it in your code.

Add the following to your build.gradle:

repositories {
    flatDir {
    dirs '<path-to-directory-where-you-stored-the-jar>'
    }
}

dependencies {
    implementation name:'JavaFXSmartGraph-x.x.x', ext:'jar'
}

Where you replace <path-to-directory-where-you-stored-the-jar> with the absolute path of the directory where the library is stored, and x.x.xwith the version of JavaFXSmartGraph you have as a jar.

CasparNuel avatar Oct 20 '21 21:10 CasparNuel

It's now available at Maven Central (see README). It should be easily integrated into a Gradle build.

brunomnsilva avatar May 04 '23 21:05 brunomnsilva