@@ -15,17 +15,17 @@ def relVersion = System.getenv().containsKey('AUTOBAHN_BUILD_VERSION') ? System.
1515def siteUrl = ' https://github.com/crossbario/autobahn-java'
1616
1717dependencies {
18- api ' com.fasterxml.jackson.core:jackson-core:2.9.5 '
18+ api ' com.fasterxml.jackson.core:jackson-core:2.9.8 '
1919 // api 'net.sourceforge.streamsupport:streamsupport-cfuture:1.6.2'
20- implementation ' com.fasterxml.jackson.core:jackson-databind:2.9.5 '
21- implementation ' com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.9.5 '
20+ implementation ' com.fasterxml.jackson.core:jackson-databind:2.9.8 '
21+ implementation ' com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.9.8 '
2222 implementation ' org.msgpack:jackson-dataformat-msgpack:0.8.16'
2323 if (project. IS_ANDROID ) {
24- implementation ' com.github.joshjdevl.libsodiumjni:libsodium-jni-aar:1 .0.8 '
24+ implementation ' com.github.joshjdevl.libsodiumjni:libsodium-jni-aar:2 .0.1 '
2525 } else {
26- implementation ' com.github.joshjdevl.libsodiumjni:libsodium-jni:1 .0.8 '
27- implementation ' io.netty:netty-codec-http:4.1.24 .Final'
28- implementation ' io.netty:netty-handler:4.1.24 .Final'
26+ implementation ' com.github.joshjdevl.libsodiumjni:libsodium-jni:2 .0.1 '
27+ implementation ' io.netty:netty-codec-http:4.1.34 .Final'
28+ implementation ' io.netty:netty-handler:4.1.34 .Final'
2929 }
3030}
3131
@@ -63,11 +63,11 @@ bintray {
6363
6464if (project. IS_ANDROID ) {
6565 android {
66- compileSdkVersion 27
67- buildToolsVersion ' 27 .0.3'
66+ compileSdkVersion 28
67+ buildToolsVersion ' 28 .0.3'
6868 defaultConfig {
6969 minSdkVersion 24
70- targetSdkVersion 27
70+ targetSdkVersion 28
7171 }
7272 buildTypes {
7373 release {
@@ -97,9 +97,15 @@ if (project.IS_ANDROID) {
9797 }
9898
9999 task javadoc(type : Javadoc ) {
100+ failOnError false
100101 source = android. sourceSets. main. java. srcDirs
101102 classpath + = project. files(android. getBootClasspath(). join(File . pathSeparator))
102103 }
104+ afterEvaluate {
105+ javadoc. classpath + = files(android. libraryVariants. collect { variant ->
106+ variant. javaCompile. classpath. files
107+ })
108+ }
103109 project. archivesBaseName = project. BUILD_LEGACY ? ARTIFACT_ANDROID_LEGACY : ARTIFACT_ANDROID
104110 group = groupID
105111 version = relVersion
@@ -138,6 +144,10 @@ if (project.IS_ANDROID) {
138144 }
139145 }
140146 }
147+ task javadocJar(type : Jar , dependsOn : javadoc) {
148+ classifier = ' javadoc'
149+ from javadoc. destinationDir
150+ }
141151} else {
142152 // Create the pom configuration:
143153 def pomConfig = {
@@ -159,6 +169,14 @@ if (project.IS_ANDROID) {
159169 url siteUrl
160170 }
161171 }
172+ task sourcesJar(type : Jar , dependsOn : classes) {
173+ classifier = ' sources'
174+ from sourceSets. main. allSource
175+ }
176+ task javadocJar(type : Jar , dependsOn : javadoc) {
177+ classifier = ' javadoc'
178+ from javadoc. destinationDir
179+ }
162180 publishing {
163181 publications {
164182 mavenJava(MavenPublication ) {
@@ -179,10 +197,6 @@ if (project.IS_ANDROID) {
179197 }
180198 }
181199 }
182- task sourcesJar(type : Jar , dependsOn : classes) {
183- classifier = ' sources'
184- from sourceSets. main. allSource
185- }
186200 sourceSets {
187201 main {
188202 java {
@@ -199,11 +213,6 @@ if (project.IS_ANDROID) {
199213 targetCompatibility = JavaVersion . VERSION_1_8
200214}
201215
202- task javadocJar (type : Jar , dependsOn : javadoc) {
203- classifier = ' javadoc'
204- from javadoc. destinationDir
205- }
206-
207216artifacts {
208217 archives sourcesJar
209218 archives javadocJar
0 commit comments