1
+ apply plugin : ' java'
2
+
3
+ group = ' gov.nasa'
4
+ version = ' 2.2.0'
5
+
6
+ sourceCompatibility = ' 1.8'
7
+ targetCompatibility = ' 1.8'
8
+
9
+ repositories {
10
+ mavenLocal()
11
+ mavenCentral()
12
+ jcenter()
13
+ }
14
+
15
+ dependencies {
16
+ def joglVersion = ' 2.3.2'
17
+ implementation " org.jogamp.jogl:jogl-all-main:$joglVersion "
18
+ implementation " org.jogamp.gluegen:gluegen-rt-main:$joglVersion "
19
+
20
+ implementation files(' gdal.jar' )
21
+
22
+ implementation ' org.codehaus.jackson:jackson-core-asl:1.9.13'
23
+
24
+ testImplementation ' junit:junit:4.5'
25
+ }
26
+
27
+ sourceSets {
28
+ main {
29
+ java {
30
+ srcDirs = [' src' ]
31
+ }
32
+ }
33
+ test {
34
+ java {
35
+ srcDirs = [' test' ]
36
+ }
37
+ }
38
+ }
39
+
40
+ // Compile worldwind jar.
41
+ jar {
42
+ dependsOn classes
43
+ version = null
44
+ from sourceSets. main. output
45
+ exclude ' gov/nasa/worldwindx/**'
46
+ from(sourceSets. main. allSource) {
47
+ include ' gov/nasa/worldwind/util/**/*.properties'
48
+ include ' config/**'
49
+ include ' images/**'
50
+ }
51
+ }
52
+ // Copy worldwind jar to project-directory.
53
+ jar. doLast {
54
+ copy {
55
+ from " $buildDir /libs/${ jar.archiveName} "
56
+ into " ${ project.projectDir} "
57
+ }
58
+ }
59
+
60
+ // Compile worldwindx jar.
61
+ task extensionsJar (type : Jar ) {
62
+ archiveBaseName = ' worldwindx'
63
+ version = null
64
+ from sourceSets. main. output
65
+ include ' gov/nasa/worldwindx/**/*.class'
66
+ from(sourceSets. main. allSource) {
67
+ include ' gov/nasa/worldwindx/applications/sar/*.html'
68
+ include ' gov/nasa/worldwindx/applications/sar/config/**'
69
+ include ' gov/nasa/worldwindx/applications/sar/data/**'
70
+ include ' gov/nasa/worldwindx/applications/sar/images/**'
71
+ include ' gov/nasa/worldwindx/applications/worldwindow/config/**'
72
+ include ' gov/nasa/worldwindx/applications/worldwindow/images/**'
73
+ include ' gov/nasa/worldwindx/examples/data/**'
74
+ include ' gov/nasa/worldwindx/examples/images/**'
75
+ }
76
+ }
77
+ // Copy worldwindx jar to project-directory.
78
+ extensionsJar. doLast {
79
+ copy {
80
+ from " $buildDir /libs/${ extensionsJar.archiveName} "
81
+ into " ${ project.projectDir} "
82
+ }
83
+ }
84
+
85
+ artifacts {
86
+ archives extensionsJar
87
+ }
88
+
89
+ test {
90
+ dependsOn jar
91
+ classpath + = project. files(" $buildDir /libs/${ jar.archiveName} " , configurations. runtime)
92
+ }
93
+
94
+ javadoc {
95
+ options {
96
+ overview = " ${ project.projectDir} /src/overview.html"
97
+ windowTitle = ' WorldWindJava API'
98
+ title = ' NASA WorldWind Java-Community Edition'
99
+ header = ' NASA WorldWind-CE'
100
+ splitIndex = true
101
+ noDeprecated = true
102
+ version = false
103
+ author = false
104
+ use = true
105
+ }
106
+ exclude ' com/**'
107
+ exclude ' gov/nasa/worldwind/formats/**'
108
+ }
0 commit comments