Skip to content

Commit 4733365

Browse files
author
Caitlin Bales (MSFT)
committed
Use Guava 20
1 parent 52bdc57 commit 4733365

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

build.gradle

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* This generated file contains a sample Java Library project to get you started.
55
* For more details take a look at the Java Libraries chapter in the Gradle
6-
* user guide available at https://docs.gradle.org/3.5/userguide/java_library_plugin.html
6+
* user guide available at https://docs.gradle.org/4.5/userguide/java_library_plugin.html
77
*/
88

99
// Apply the java-library plugin to add support for Java Library
@@ -25,7 +25,7 @@ dependencies {
2525
api 'org.apache.commons:commons-math3:3.6.1'
2626

2727
// This dependency is used internally, and not exposed to consumers on their own compile classpath.
28-
implementation 'com.google.guava:guava:21.0'
28+
implementation 'com.google.guava:guava:20.0'
2929

3030
// Use JUnit test framework
3131
testImplementation 'junit:junit:4.12'
@@ -35,25 +35,16 @@ dependencies {
3535
compile 'com.sun.jersey:jersey-server:1.19.4'
3636
}
3737

38-
publishing {
39-
publications {
40-
maven(MavenPublication) {
41-
groupId 'com.microsoft.graph'
42-
artifactId 'microsoft-graph'
43-
version '0.1-SNAPSHOT'
44-
45-
from components.java
46-
47-
artifact sourceJar
48-
}
49-
}
50-
}
51-
5238
task sourceJar(type: Jar) {
5339
classifier = 'sources'
5440
from sourceSets.main.allJava
5541
}
5642

43+
compileJava {
44+
sourceCompatibility = 1.7
45+
targetCompatibility = 1.7
46+
}
47+
5748
def getVersionCode() {
5849
return mavenMajorVersion.toInteger() * 10000 + mavenMinorVersion.toInteger() * 100 + mavenPatchVersion.toInteger()
5950
}

0 commit comments

Comments
 (0)