From: Markus Koschany <apo@debian.org>
Date: Thu, 27 Aug 2020 23:04:53 +0200
Subject: support java8 only

Java5 is not supported.
---
 build.gradle | 37 +------------------------------------
 1 file changed, 1 insertion(+), 36 deletions(-)

diff --git a/build.gradle b/build.gradle
index 561d591..0ff3639 100644
--- a/build.gradle
+++ b/build.gradle
@@ -40,10 +40,9 @@ subprojects {
     }
 }
 
-project(':java5').archivesBaseName = 'annotations-java5'
 project(':java8').archivesBaseName = 'annotations'
 
-configure([project(':java5'), project(':java8')]) {
+configure([project(':java8')]) {
     task mainJar(type: Jar) {
         manifest {
             attributes('Automatic-Module-Name': 'org.jetbrains.' + archivesBaseName.replace('-', '_'))
@@ -124,40 +123,6 @@ configure([project(':java5'), project(':java8')]) {
 
 }
 
-configure(project(':java5')) {
-    def generatedSourcesDir = "${buildDir}/generated/"
-
-    sourceSets {
-        generated {
-            java.srcDir generatedSourcesDir
-        }
-    }
-
-    task generateSrc(type: Copy) {
-        from project(':common').sourceSets.main.java
-        into generatedSourcesDir
-        filter { line -> line.replaceAll(", ElementType.TYPE_USE", "")}
-    }
-
-    compileJava {
-        dependsOn(generateSrc)
-        source sourceSets.generated.java
-    }
-
-    mainJar {
-        from sourceSets.main.output
-    }
-
-    sourceJar {
-        dependsOn(generateSrc)
-        from sourceSets.generated.java
-    }
-
-    javadoc {
-        source = [sourceSets.generated.java]
-    }
-}
-
 configure(project(':java8')) {
     dependencies {
         compile project(':common')
