2019-02-23 19:49:00 +01:00
import org.gradle.util.GradleVersion
2019-04-09 02:58:23 +02:00
import org.gradle.api.GradleScriptException
// Minimum Gradle version for main build
2019-04-17 15:50:39 +02:00
def minGradleVersion = GradleVersion . version ( "4.4" )
2019-04-09 02:58:23 +02:00
// Minimum Gradle version for builds of JavaFX 11 module
def minFxGradleVersion = GradleVersion . version ( "4.10" )
2019-02-23 19:49:00 +01:00
2019-03-07 17:31:54 +01:00
rootProject . name = 'bitcoinj-parent'
2019-04-09 02:58:23 +02:00
if ( GradleVersion . current ( ) . compareTo ( minGradleVersion ) < 0 ) {
throw new GradleScriptException ( "bitcoinj build requires Gradle ${minGradleVersion} or later" , null )
}
2018-03-06 21:13:17 +01:00
include 'core'
2019-03-07 17:31:54 +01:00
project ( ':core' ) . name = 'bitcoinj-core'
2018-03-06 21:13:17 +01:00
include 'tools'
2019-03-07 17:31:54 +01:00
project ( ':tools' ) . name = 'bitcoinj-tools'
2018-03-06 21:13:17 +01:00
include 'examples'
2019-03-07 17:31:54 +01:00
project ( ':examples' ) . name = 'bitcoinj-examples'
2019-02-23 19:49:00 +01:00
2019-04-09 02:58:23 +02:00
if ( GradleVersion . current ( ) . compareTo ( minFxGradleVersion ) > = 0 & & JavaVersion . current ( ) . isJava11Compatible ( ) ) {
System . err . println "Including wallettemplate because ${GradleVersion.current()} and Java ${JavaVersion.current()}"
2019-02-23 19:49:00 +01:00
include 'wallettemplate'
2019-03-07 17:31:54 +01:00
project ( ':wallettemplate' ) . name = 'bitcoinj-wallettemplate'
2019-02-23 19:49:00 +01:00
} else {
2019-04-09 02:58:23 +02:00
System . err . println "Skipping wallettemplate, requires ${minFxGradleVersion}+ and Java 11+, currently running: ${GradleVersion.current()} and Java ${JavaVersion.current()}"
2019-02-23 19:49:00 +01:00
}