mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-22 18:48:00 +01:00
ab30b0c921
This commit also changes the usage of the android.jar found in the androidBootClasspath gradle variable, because AndroidSmackInitializer.initialize(Context) pulls in org.minidns.dnsserverlookup.android21.AndroidUsingLinkProperties from minidns-android21, which has a @TargetApi annotation which is only available on Android SDK API level 16 or higher. Otherwhise we would get > Task :smack-android:compileJava FAILED /home/flo/.gradle/caches/modules-2/files-2.1/org.minidns/minidns-android21/0.3.0/13f273d095e51d701283062a25e867f3ff26d258/minidns-android21-0.3.0.jar(/org/minidns/dnsserverlookup/android21/AndroidUsingLinkProperties.class): warning: Cannot find annotation method 'value()' in type 'TargetApi': class file for android.annotation.TargetApi not found /home/flo/.gradle/caches/modules-2/files-2.1/org.minidns/minidns-android21/0.3.0/13f273d095e51d701283062a25e867f3ff26d258/minidns-android21-0.3.0.jar(/org/minidns/dnsserverlookup/android21/AndroidUsingLinkProperties.class): warning: Cannot find annotation method 'value()' in type 'TargetApi' error: warnings found and -Werror specified 1 error when compiling smack-android.
24 lines
634 B
YAML
24 lines
634 B
YAML
language: android
|
|
android:
|
|
components:
|
|
- android-16
|
|
jdk:
|
|
- oraclejdk8
|
|
sudo: false
|
|
cache:
|
|
directories:
|
|
- $HOME/.m2
|
|
|
|
before_install:
|
|
- export GRADLE_VERSION=4.6
|
|
- wget https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-all.zip
|
|
- unzip -q gradle-${GRADLE_VERSION}-all.zip
|
|
- export PATH="$(pwd)/gradle-${GRADLE_VERSION}/bin:$PATH"
|
|
|
|
install: gradle assemble --stacktrace
|
|
script: gradle check --stacktrace
|
|
|
|
after_success:
|
|
- JAVAC_VERSION=$((javac -version) 2>&1)
|
|
# Only run jacocoRootReport in the Java 8 build
|
|
- if [[ "$JAVAC_VERSION" = javac\ 1.8.* ]]; then gradle jacocoRootReport coveralls; fi
|