File: 11-gradle-compatibility.patch

package info (click to toggle)
asm 9.8-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,072 kB
  • sloc: java: 52,097; xml: 229; makefile: 11
file content (72 lines) | stat: -rw-r--r-- 2,097 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
Description: Fixes the compatibility with the version of Gradle in Debian
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: not-needed
--- a/build.gradle
+++ b/build.gradle
@@ -51,10 +51,8 @@
   repositories { mavenCentral() }
   apply plugin: 'java-library'
   apply plugin: 'jacoco'
-  java {
-    sourceCompatibility = '11'
-    targetCompatibility = '11'
-  }
+    sourceCompatibility = '8'
+    targetCompatibility = '8'
   ext.provides = []  // The provided java packages, e.g. ['org.objectweb.asm']
   ext.requires = []  // The required Gradle projects, e.g. [':asm-test']
   ext.transitiveRequires = { ->
@@ -169,10 +167,8 @@
 
 project(':tools:retrofitter') {
   description = "JDK 1.5 class retrofitter based on ${rootProject.description}"
-  java {
-    sourceCompatibility = '11'
-    targetCompatibility = '11'
-  }
+    sourceCompatibility = '8'
+    targetCompatibility = '8'
   // TODO: this compiles asm twice (here and in :asm).
   sourceSets.main.java.srcDirs += project(':asm').sourceSets.main.java.srcDirs
 }
@@ -209,7 +205,7 @@
   }
 
   // Produce byte-for-byte reproducible archives.
-  tasks.withType(AbstractArchiveTask).configureEach {
+  tasks.withType(AbstractArchiveTask) {
     preserveFileTimestamps = false
     reproducibleFileOrder = true
     dirMode = 0775
@@ -297,15 +293,11 @@
   // together with the main jar (containing the compiled code).
   task javadocJar(type: Jar, dependsOn: 'javadoc') {
     from javadoc.destinationDir
-    archiveClassifier = 'javadoc'
+    classifier = 'javadoc'
   }
   task sourcesJar(type: Jar, dependsOn: 'classes') {
     from sourceSets.main.allSource
-    archiveClassifier = 'sources'
-  }
-  java {
-    withJavadocJar()
-    withSourcesJar()
+    classifier = 'sources'
   }
 }
 
@@ -314,6 +306,7 @@
 configure([rootProject] + subprojects.findAll { it.provides }) {
   apply plugin: 'maven-publish'
   apply plugin: 'signing'
+/*
   publishing {
     repositories {
       maven {
@@ -406,4 +399,5 @@
     sign publishing.publications.maven
   }
   tasks.withType(GenerateModuleMetadata) { enabled = false }
+*/
 }