forked from thothbot/parallax
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
129 lines (106 loc) · 3.07 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
ext {
GROUPID = "org.parallax3d.parallax"
VERSION = "2.0-SNAPSHOT"
robovmVersion = "1.9.0"
androidVersion = "4.4"
gwtVersion = "2.7.0"
junitVersion = "4.11"
}
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'de.richsource.gradle.plugins:gwt-gradle-plugin:0.6'
classpath "com.android.tools.build:gradle:1.2.3"
classpath "org.robovm:robovm-gradle-plugin:1.5.0"
}
}
// apply the following to all projects, except the
// Android test project, that one has its own
// build.gradle file cause Android is special...
configure(allprojects - project(':tests:parallax-tests-android')) {
apply plugin: "eclipse"
apply plugin: "idea"
apply plugin: "java"
compileJava.options.encoding = 'UTF-8';
repositories {
mavenCentral()
}
group = GROUPID
version = VERSION
// set source Java version
sourceCompatibility = 1.7
targetCompatibility = 1.7
sourceSets.main.java.srcDirs = ["src"]
sourceSets.main.resources.srcDirs = ["src"]
// create a custom configuration for local dependencies such as Android runtime
configurations {
optional
compile.extendsFrom optional
}
}
project(":parallax") {
sourceSets.test.java.srcDirs = ["test"]
dependencies {
testCompile "junit:junit:$junitVersion"
}
}
project(":platforms:parallax-gwt") {
sourceSets.main.java.exclude "**/System.java"
dependencies {
compile project(":parallax")
optional "com.google.gwt:gwt-user:$gwtVersion"
optional "com.google.gwt:gwt-dev:$gwtVersion"
}
}
project(":platforms:parallax-android") {
dependencies {
compile project(":parallax")
optional fileTree(dir: 'libs', include: ['*.jar'])
}
}
project(":extensions:parallax-renderer-plugins") {
dependencies { compile project(":parallax") }
}
project(":extensions:parallax-loaders") {
dependencies { compile project(":parallax") }
}
project(":extensions:parallax-controllers") {
dependencies { compile project(":parallax"); }
}
project(":tests:parallax-tests") {
apply plugin: "java"
dependencies {
compile project(":parallax")
compile project(":extensions:parallax-renderer-plugins")
compile project(":extensions:parallax-loaders")
compile project(":extensions:parallax-controllers")
}
}
project(":tests:parallax-tests-android") {
apply plugin: "eclipse"
apply plugin: "idea"
apply plugin: "android"
dependencies {
compile project(":tests:parallax-tests")
compile project(":platforms:parallax-android")
compile "com.android.support:support-v4:+"
}
}
project(":tests:parallax-tests-gwt") {
apply plugin: "gwt"
apply plugin: "war"
dependencies {
compile project(":tests:parallax-tests")
compile project(":platforms:parallax-gwt")
}
}
if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.withType(Javadoc) {
options.addStringOption("Xdoclint:none", "-quiet")
}
}
}