anjaleeps / BytecodeOptimizer

A Java program to optimize jar files. The optimizer was designed as a part of the Ballerina language platform but can be used with any language that compiles into Java bytecode.
Apache License 2.0
3 stars 1 forks source link

build failed #1

Open virophagesp opened 1 year ago

virophagesp commented 1 year ago

$ gradle -q builder --stacktrace

FAILURE: Build failed with an exception.

BUILD FAILED in 1s

zefir-git commented 8 months ago

Project appears to be dead. I managed to build it with this build.gradle:

plugins {
    id 'java'
    id 'application'
}

group 'org.anjalee  '
version '1.0-SNAPSHOT'

repositories {
    mavenCentral()
}

dependencies {
    implementation 'org.ow2.asm:asm:9.0'
    implementation 'org.ow2.asm:asm-util:9.0'
    implementation 'commons-io:commons-io:2.8.0'
}

jar {
    manifest {
        attributes "Main-Class": "builder.Main"
    }

    duplicatesStrategy = DuplicatesStrategy.EXCLUDE

    from {
        configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
    }
}

mainClassName = 'builder.Main'

Anyways, this didn't work for my Java 17 project, so I'm guessing it's just outdated.

Exception in thread "main" java.lang.IllegalArgumentException: Unsupported class file major version 61