Skip to content

Commit

Permalink
fix Java 1.7 target source compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
bertrandmartel committed Dec 26, 2016
1 parent daa797a commit 1b6e152
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Check a [non-exhaustive list](./server_list.md) of compatible speed test server.
* with Gradle, from jcenter or mavenCentral :

```
compile 'fr.bmartel:jspeedtest:1.24'
compile 'fr.bmartel:jspeedtest:1.25'
```

## Usage
Expand Down
9 changes: 7 additions & 2 deletions jspeedtest/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'

group 'fr.bmartel'
version '1.24'
version '1.25'

apply plugin: 'java'
targetCompatibility = '1.7'
sourceCompatibility = '1.7'

apply plugin: 'pmd'

pmd {
Expand All @@ -18,7 +21,7 @@ repositories {
}

dependencies {
compile 'fr.bmartel:http-endec:1.03'
compile 'fr.bmartel:http-endec:1.04'
compile 'commons-net:commons-net:3.5'
testCompile 'junit:junit:4.11'
testCompile 'net.jodah:concurrentunit:0.4.2'
Expand Down Expand Up @@ -136,6 +139,8 @@ task generateJavadoc(type: Javadoc) {
}

compileJava {
sourceCompatibility = "1.7"
targetCompatibility = "1.7"
options.encoding = 'UTF-8'
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
Expand Down

0 comments on commit 1b6e152

Please sign in to comment.