-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
50 lines (41 loc) · 1.57 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
apply plugin: 'java'
sourceCompatibility = '1.7'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
// NetBeans will automatically add "run" and "debug" tasks relying on the
// "mainClass" property. You may however define the property prior executing
// tasks by passing a "-PmainClass=<QUALIFIED_CLASS_NAME>" argument.
//
// Note however, that you may define your own "run" and "debug" task if you
// prefer. In this case NetBeans will not add these tasks but you may rely on
// your own implementation.
if (!hasProperty('mainClass')) {
ext.mainClass = ''
}
repositories {
mavenCentral()
// You may define additional repositories, or even remove "mavenCentral()".
// Read more about repositories here:
// http://www.gradle.org/docs/current/userguide/dependency_management.html#sec:repositories
}
dependencies {
// TODO: Add dependencies here ...
// You can read more about how to add dependency here:
// http://www.gradle.org/docs/current/userguide/dependency_management.html#sec:how_to_declare_your_dependencies
compile 'org.pushingpixels:trident:1.3'
testCompile group: 'junit', name: 'junit', version: '4.10'
}
task wrapper(type: Wrapper) {
// gradleVersion = '1.9'
}
task(runSimple) {
println("Usage: gradlew tween|scroller")
}
task(tween, dependsOn: 'classes', type: JavaExec) {
main = 'swingtest.ButtonFg'
classpath = sourceSets.main.runtimeClasspath
}
task(scroller, dependsOn: 'classes', type: JavaExec) {
main = 'swingtest.LightScrollPane'
classpath = sourceSets.main.runtimeClasspath
}
defaultTasks 'runSimple'