Gradle build example

25 views
Skip to first unread message

Daniel Felix Ferber

unread,
Feb 17, 2017, 12:53:45 PM2/17/17
to JRebirth Users
Hi

I read that it would be possible to build a JRebith Application with Gradle, right?
Would be there an example for a Gradle build file?

Best regards,
Daniel

Sebastien Bordes

unread,
Feb 18, 2017, 9:27:49 AM2/18/17
to JRebirth Users
Hi Daniel,

I'm not very familiar to Gradle build system but it seems that you can transform a maven build to a gradle one by simply running gradle init into the project folder.

It will add all gradle required files.

I've just done it for ComparisonTool sample application (an app that compare plugins versions of 2 Eclipse installation) : https://github.com/JRebirth/ComparisonTool

It has created the following build.gradle file:

apply plugin: 'java'
apply plugin: 'maven'

group = 'org.jrebirth.demo'
version = '1.0.0-SNAPSHOT'

description = """Comparison Tool Comparator"""

sourceCompatibility = 1.8
targetCompatibility = 1.8



repositories {
       
     maven { url "http://repo.maven.apache.org/maven2" }
}
dependencies {
    compile group: 'ch.qos.logback', name: 'logback-classic', version:'1.0.13'
    compile group: 'org.jrebirth.af', name: 'preloader', version:'8.5.1-SNAPSHOT'
    compile group: 'org.jrebirth.af', name: 'core', version:'8.5.1-SNAPSHOT'
    compile group: 'org.apache.commons', name: 'commons-csv', version:'1.4'
}

But Idon't know test with annotation processor, I'm pretty confident that it will work fine because I've received a pull request from asafalima to fix it

Check this issue : you will find additional information about configuring annotation processor with gradle:

https://github.com/JRebirth/JRebirth/issues/199

Keep me informed if you have trouble and also if it works well for you, I should add a documentation page about it.

But I'm busy with other things that could greatly enhance JRebirth ecosystem.
With next 8.6.0 version I will provide FXBean code generator and a lot of thing are coming....
Reply all
Reply to author
Forward
0 new messages