Won't compile .jar

Hello,

I’m trying to compile my project (it’s a plugin in a .jar) it’s the first time I use ProGuard but when I compile I get this in the console:

My configuration is basically the default for ProGuard.

plugins {
    java
    id("com.github.johnrengelman.shadow") version ("7.1.2")
}

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath("com.guardsquare:proguard-gradle:7.1.0")
    }
}

group = "simpleblockregen"
version = "0.1.8-SNAPSHOT"

repositories {
    mavenCentral()
    maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
    maven("https://oss.sonatype.org/content/groups/public/")
    maven("https://maven.enginehub.org/repo/")
    maven("https://repo.unnamed.team/repository/unnamed-public/")
    maven("https://repo.codemc.io/repository/nms/")
    maven("https://nexus.mrcubee.net/repository/minecraft/")
    maven("https://mvn.lumine.io/repository/maven-public/")
    maven("https://jitpack.io")
    maven("https://repo.extendedclip.com/content/repositories/placeholderapi/")
}

dependencies {
    implementation("team.unnamed.common:commons-error:2.0.0-SNAPSHOT")
    implementation("me.fixeddev:commandflow-bukkit:0.5.0-SNAPSHOT")
    implementation("org.bstats:bstats-bukkit:3.0.0")
    compileOnly("dev.espi:protectionstones:2.8.4")
    compileOnly("org.spigotmc:spigot-api:1.13-R0.1-SNAPSHOT")
    compileOnly("com.sk89q.worldguard:worldguard-bukkit:7.0.3")
    compileOnly("net.Indyuce:MMOItems:6.7.2")
    compileOnly("io.lumine:MythicLib-dist:1.3.1")
    compileOnly("org.projectlombok:lombok:1.18.22")
    compileOnly("com.github.TechFortress:GriefPrevention:16.17.1")
    compileOnly("me.clip:placeholderapi:2.11.1")
    annotationProcessor("org.projectlombok:lombok:1.18.22")
}

tasks {
    java {
        toolchain {
            languageVersion.set(JavaLanguageVersion.of(11))
        }
    }
    withType<JavaCompile> {
        options.encoding = "UTF-8"
    }
    shadowJar {
        delete(file("${project.buildDir}"))
        archiveClassifier.set("")
        relocate("org.bstats", "bstats-bukkit")
        archiveFileName.set("${project.name}-${project.version}.jar")
        minimize()
    }
    build {
        dependsOn(shadowJar)
    }
    processResources {
        filesMatching("plugin.yml") {
            expand("v" to project.version)
        }
    }

}

tasks.register<proguard.gradle.ProGuardTask>("proguard") {
    verbose()

    // Alternatively put your config in a separate file
    // configuration("config.pro")

    // Use the jar task output as a input jar. This will automatically add the necessary task dependency.
    injars(tasks.named("jar"))

    outjars("build/proguard-obfuscated.jar")

    val javaHome = System.getProperty("java.home")
    // Automatically handle the Java version of this build.
    if (System.getProperty("java.version").startsWith("1.")) {
        // Before Java 9, the runtime classes were packaged in a single jar file.
        libraryjars("$javaHome/lib/rt.jar")
    } else {
        // As of Java 9, the runtime classes are packaged in modular jmod files.
        libraryjars(
            // filters must be specified first, as a map
            mapOf("jarfilter" to "!**.jar",
                "filter"    to "!module-info.class"),
            "$javaHome/jmods/java.base.jmod"
        )
    }

    allowaccessmodification()

    repackageclasses("")

    printmapping("build/proguard-mapping.txt")

    keep("""class gradlekotlindsl.App {
                public static void main(java.lang.String[]);
            }
    """)
}

Hi @Skjolberg,

Welcome to the PG community!

Can you share the full stacktrace so we can see the cause for the compilation failure? It was not clear from the screenshot provided.

Thank you!
Jack