diff options
| author | Stefan Schmidt <stschmidt@google.com> | 2017-06-30 12:29:01 +0200 |
|---|---|---|
| committer | Stefan Schmidt <stschmidt@google.com> | 2017-06-30 12:29:01 +0200 |
| commit | 552da72391d8b628a3ff1212d9bda34a0274a51e (patch) | |
| tree | eb58f96401f2160a3f8f8e5784199a19c6c5f78b /contrib | |
| parent | 1989720ea57fc40a4a2aaedcfb09fe988e9b186d (diff) | |
| download | platform_external_opencensus-java-552da72391d8b628a3ff1212d9bda34a0274a51e.tar.gz platform_external_opencensus-java-552da72391d8b628a3ff1212d9bda34a0274a51e.tar.bz2 platform_external_opencensus-java-552da72391d8b628a3ff1212d9bda34a0274a51e.zip | |
Added experimental support for legacy Java 1.6 JVMs through Retrolambda.
Diffstat (limited to 'contrib')
| -rw-r--r-- | contrib/agent/build.gradle | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/contrib/agent/build.gradle b/contrib/agent/build.gradle index 72478a07..449d8890 100644 --- a/contrib/agent/build.gradle +++ b/contrib/agent/build.gradle @@ -1,11 +1,17 @@ plugins { id 'com.github.johnrengelman.shadow' version '2.0.0' + id 'me.tatarka.retrolambda' version '3.6.0' } description = 'OpenCensus Agent' -sourceCompatibility = 1.7 -targetCompatibility = 1.7 +sourceCompatibility = JavaVersion.VERSION_1_7 +targetCompatibility = JavaVersion.VERSION_1_7 + +// Experimental support for legacy Java 1.6 JVMs. +retrolambda { + javaVersion JavaVersion.VERSION_1_6 +} def agentPackage = 'io.opencensus.contrib.agent' def agentMainClass = "${agentPackage}.AgentMain" @@ -24,7 +30,7 @@ def agentRepackaged = "${agentPackage}.deps" dependencies { compile group: 'net.bytebuddy', name: 'byte-buddy', version: '1.7.1' - signature 'org.codehaus.mojo.signature:java17:+@signature' + signature 'org.codehaus.mojo.signature:java16:+@signature' } jar { @@ -35,8 +41,8 @@ jar { attributes 'Can-Retransform-Classes': true // Let the java plugin use the overridden values instead of the root project's values. - attributes 'Source-Compatibility': sourceCompatibility - attributes 'Target-Compatibility': targetCompatibility + attributes 'Source-Compatibility': JavaVersion.VERSION_1_6 + attributes 'Target-Compatibility': JavaVersion.VERSION_1_6 } } |
