2013-09-22 12:18:37 +02:00
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
// plugins //
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
apply plugin: 'java'
|
|
|
|
|
apply plugin:'application'
|
2013-09-29 12:56:04 +02:00
|
|
|
apply plugin: 'idea'
|
2013-09-22 12:18:37 +02:00
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
// settings //
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
2013-09-29 12:56:04 +02:00
|
|
|
version = 0.3
|
2013-09-22 12:18:37 +02:00
|
|
|
sourceCompatibility = 1.8
|
2014-05-17 07:18:37 +02:00
|
|
|
mainClassName = 'de.geofroggerfx.fx.GeoFroggerFXMain'
|
2013-09-22 12:18:37 +02:00
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
// add main class to MANIFEST.FM //
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
jar {
|
|
|
|
|
manifest {
|
|
|
|
|
attributes 'Main-Class': mainClassName
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
// change the src default //
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
sourceSets {
|
|
|
|
|
main {
|
|
|
|
|
java {
|
|
|
|
|
srcDirs = ['src']
|
|
|
|
|
}
|
|
|
|
|
resources {
|
2013-09-27 20:30:35 +02:00
|
|
|
srcDirs = ['src','resources']
|
2013-09-22 12:18:37 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
// usage of maven central and sonatype repository //
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
repositories {
|
|
|
|
|
mavenCentral()
|
|
|
|
|
maven {
|
|
|
|
|
url "https://oss.sonatype.org/content/repositories/snapshots"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
// dependecies //
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
dependencies {
|
2014-05-23 10:24:33 +02:00
|
|
|
//compile group: 'org.jfxtras', name: 'jfxtras-labs', version: '8.0-r1-SNAPSHOT' this is not an actual version and the map part is missing
|
|
|
|
|
compile files('lib/JFXtras/jfxtras-labs-8.0-r1-SNAPSHOT.jar', 'lib/ScenicView/ScenicView.jar')
|
|
|
|
|
compile group: 'org.jdom', name: 'jdom2', version: '2.0.5'
|
2014-08-29 02:39:05 +02:00
|
|
|
compile group: 'org.controlsfx', name: 'controlsfx', version: '8.0.6_20'
|
2014-05-23 10:24:33 +02:00
|
|
|
compile group: 'org.codehaus.groovy', name: 'groovy-all', version: '2.2.1'
|
|
|
|
|
compile group: 'org.jboss.weld.se', name: 'weld-se', version: '2.2.0.Final'
|
2014-08-16 01:49:39 +02:00
|
|
|
compile group: 'com.orientechnologies', name: 'orient-commons', version: '2.0-SNAPSHOT'
|
|
|
|
|
compile group: 'com.orientechnologies', name: 'orientdb-core', version: '2.0-SNAPSHOT'
|
2014-08-29 00:39:27 +02:00
|
|
|
compile group: 'com.orientechnologies', name: 'orientdb-server', version: '2.0-SNAPSHOT'
|
2014-08-16 01:49:39 +02:00
|
|
|
compile group: 'com.orientechnologies', name: 'orientdb-object', version: '2.0-SNAPSHOT'
|
2013-09-22 12:18:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
// tasks //
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
task wrapper(type: Wrapper) {
|
|
|
|
|
gradleVersion = '1.7'
|
2014-06-18 20:27:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
// little workaround //
|
|
|
|
|
// beans.xml has to be placed under the classes directory //
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
run.doFirst {
|
|
|
|
|
copy {
|
|
|
|
|
from 'build/resources/main/META-INF/beans.xml'
|
|
|
|
|
into 'build/classes/main/META-INF/'
|
|
|
|
|
}
|
2014-08-29 02:16:05 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
applicationDistribution.from("plugins") {
|
|
|
|
|
into "plugins"
|
2013-09-22 12:18:37 +02:00
|
|
|
}
|