Merge pull request #1895 from iBotPeaches/issue-1894

Drop 1.7, Add 1.8
This commit is contained in:
Connor Tumbleson 2018-09-18 13:48:16 -04:00 committed by GitHub
commit 9fe399a27e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 19 deletions

View File

@ -1,23 +1,21 @@
env: env:
- TERM=dumb - TERM=dumb GROOVY_TURN_OFF_JAVA_WARNINGS=true
language: java language: java
dist: precise dist: trusty
matrix: matrix:
include: include:
- os: linux - os: linux
jdk: openjdk7 jdk: openjdk8
- os: linux # - os: linux
dist: precise # jdk: openjdk9
jdk: oraclejdk7
- os: linux - os: linux
jdk: oraclejdk8 jdk: oraclejdk8
- os: linux # - os: linux
dist: trusty # jdk: oraclejdk9
jdk: openjdk8
- os: osx - os: osx
osx_image: xcode9.2 osx_image: xcode9.2
allow_failures: # - os: osx
- jdk: openjdk7 # osx_image: xcode9.4
cache: cache:
directories: directories:
- $HOME/.gradle/caches/ - $HOME/.gradle/caches/

View File

@ -39,8 +39,8 @@ defaultTasks 'build', 'shadowJar', 'proguard'
allprojects { allprojects {
apply plugin: 'java' apply plugin: 'java'
apply plugin: 'license' apply plugin: 'license'
sourceCompatibility = JavaVersion.VERSION_1_7 sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_7 targetCompatibility = JavaVersion.VERSION_1_8
license { license {
header rootProject.file("brut.j.common/src/templates/apache2.0-header.txt") header rootProject.file("brut.j.common/src/templates/apache2.0-header.txt")
@ -88,11 +88,11 @@ if (!('release' in gradle.startParameter.taskNames)) {
build.doFirst { build.doFirst {
def javaVersion = System.getProperty("java.version") def javaVersion = System.getProperty("java.version")
//fail the build if we java 1.5 or 1.6. // fail the build if java (1.5/1.6/1.7)
if (javaVersion.startsWith("1.5") || javaVersion.startsWith("1.6")) { if (javaVersion.startsWith("1.5") || javaVersion.startsWith("1.6") || javaVersion.startsWith("1.7")) {
throw new GradleException("You can fix this problem!\n" + throw new GradleException("You can fix this problem!\n" +
"We found a " + javaVersion + " JDK\n" + "We found a " + javaVersion + " JDK\n" +
"Please update JAVA_HOME to use at least a 1.7 JDK\n" + "Please update JAVA_HOME to use at least a 1.8 JDK\n" +
"Currently it is set to: " + System.getProperty("java.home") "Currently it is set to: " + System.getProperty("java.home")
); );
} }
@ -113,7 +113,7 @@ subprojects {
commons_lang: 'org.apache.commons:commons-lang3:3.1', commons_lang: 'org.apache.commons:commons-lang3:3.1',
guava: 'com.google.guava:guava:14.0', guava: 'com.google.guava:guava:14.0',
junit: 'junit:junit:4.12', junit: 'junit:junit:4.12',
proguard_gradle: 'net.sf.proguard:proguard-gradle:5.2.1', proguard_gradle: 'net.sf.proguard:proguard-gradle:6.0.3',
snakeyaml: 'org.yaml:snakeyaml:1.18:android', snakeyaml: 'org.yaml:snakeyaml:1.18:android',
smali: 'org.smali:smali:2.2.5', smali: 'org.smali:smali:2.2.5',
xmlpull: 'xpp3:xpp3:1.1.4c', xmlpull: 'xpp3:xpp3:1.1.4c',
@ -131,3 +131,8 @@ subprojects {
} }
} }
} }
wrapper {
gradleVersion = '4.10'
distributionType = Wrapper.DistributionType.ALL
}

Binary file not shown.

View File

@ -1,6 +1,5 @@
#Thu Aug 16 07:13:34 EDT 2018
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10-all.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-bin.zip