diff options
| author | Stefan Schmidt <stschmidt@google.com> | 2017-06-23 17:44:27 +0200 |
|---|---|---|
| committer | Stefan Schmidt <stschmidt@google.com> | 2017-06-23 17:44:27 +0200 |
| commit | 613a885de54c8bccf0e2b16f1fe06a9940ce7562 (patch) | |
| tree | 4a2525437bb3b86d88f7a49d6803f4b550dd4ddf /contrib | |
| parent | 52f8ecc1ee6f5e755fe0eed5648a5e570eefb681 (diff) | |
| download | platform_external_opencensus-java-613a885de54c8bccf0e2b16f1fe06a9940ce7562.tar.gz platform_external_opencensus-java-613a885de54c8bccf0e2b16f1fe06a9940ce7562.tar.bz2 platform_external_opencensus-java-613a885de54c8bccf0e2b16f1fe06a9940ce7562.zip | |
Fix the Source/Target-Compatibility manifest entry.
Diffstat (limited to 'contrib')
| -rw-r--r-- | contrib/agent/build.gradle | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/contrib/agent/build.gradle b/contrib/agent/build.gradle index 4bc6065b..52007c7f 100644 --- a/contrib/agent/build.gradle +++ b/contrib/agent/build.gradle @@ -17,11 +17,15 @@ dependencies { } jar { - // Set required manifest attributes, cf. - // https://docs.oracle.com/javase/8/docs/api/java/lang/instrument/package-summary.html. manifest { + // Set the required manifest attributes for the Java agent, cf. + // https://docs.oracle.com/javase/8/docs/api/java/lang/instrument/package-summary.html. attributes 'Premain-Class': agentMainClass 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 } } |
