@@ -2,7 +2,7 @@ apply plugin: 'java-library'
22apply plugin : ' maven-publish'
33
44group = ' earth.worldwind'
5- version = ' 2.3.0 ' + (project. hasProperty(' snapshot' ) ? ' -SNAPSHOT' : ' ' )
5+ version = ' 2.3.1 ' + (project. hasProperty(' snapshot' ) ? ' -SNAPSHOT' : ' ' )
66
77ant {
88 property(file : ' release-build.properties' )
1414 gdalVersion = ' 3.10.0'
1515 jacksonVersion = ' 1.9.13'
1616 junitVersion = ' 4.5'
17- // systemGDAL = true
1817}
1918
2019repositories {
@@ -24,11 +23,11 @@ repositories {
2423}
2524
2625dependencies {
27- implementation group : ' org.jogamp.jogl' , name : ' jogl-all-main' , version : " $project . joglVersion "
28- implementation group : ' org.jogamp.gluegen' , name : ' gluegen-rt-main' , version : " $project . joglVersion "
29-
26+ implementation " org.jogamp.jogl: jogl-all-main: $project . joglVersion "
27+ implementation " org.jogamp.gluegen: gluegen-rt-main: $project . joglVersion "
28+
3029 if (project. hasProperty(' systemGDAL' )) {
31- implementation files(" C: \\ Program Files \\ GDAL \\ java \\ gdal.jar" )
30+ implementation files(" ${ ant.properties['gdal.jar.dir'] } / gdal.jar" )
3231 } else {
3332 implementation " org.gdal:gdal:$project . gdalVersion "
3433 }
@@ -50,10 +49,10 @@ task sourcesJar(type: Jar, dependsOn: classes) {
5049 }
5150}
5251
53- task worldwindJar (type : Jar ) {
52+ task extensionsJar (type : Jar ) {
5453 group = ' build'
55- description = ' Assembles a jar archive containing the WorldWind classes.'
56- archivesBaseName = ' worldwind '
54+ description = ' Assembles a jar archive containing the extension classes.'
55+ baseName = ' worldwindx '
5756 from (sourceSets. main. output) {
5857 exclude ' com/**'
5958 exclude ' config/**'
@@ -62,9 +61,9 @@ task worldwindJar(type: Jar) {
6261 }
6362 doLast {
6463 copy {
65- from " $buildDir /libs/$w orldwindJar . archiveFileName "
64+ from " $buildDir /libs/$e xtensionsJar . archiveFileName "
6665 into project. projectDir
67- rename " $w orldwindJar . archiveFileName " , " $w orldwindJar . baseName . $w orldwindJar . extension "
66+ rename " $e xtensionsJar . archiveFileName " , " $e xtensionsJar . baseName . $e xtensionsJar . extension "
6867 }
6968 }
7069}
@@ -98,7 +97,7 @@ def pomConfig = {
9897
9998publishing {
10099 publications {
101- bintray (MavenPublication ) {
100+ maven (MavenPublication ) {
102101 from components. java
103102 artifact sourcesJar
104103 artifact javadocJar
@@ -177,7 +176,7 @@ javadoc {
177176
178177artifacts {
179178 archives sourcesJar
180- archives worldwindJar
179+ archives extensionsJar
181180 archives javadocJar
182181}
183182
0 commit comments