superblaubeere27/obfuscator

Running obfuscated jar throws java.lang.ClassNotFoundException

Iprobablyhack opened this issue · 0 comments

I am using a Gradle dependency in my code, and the obfuscated jar doesn't seem to include it.
Other than this, the obfuscator is working wonderfully

build.gradle dependencies:
dependencies { testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1' testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1' implementation 'club.minnced:discord-webhooks:0.8.2' }

Test class I did this with:

`
package org.example;

import club.minnced.discord.webhook.WebhookClient;
import club.minnced.discord.webhook.WebhookClientBuilder;

public class Main {
public static void main(String[] args) {
WebhookClientBuilder builder = new WebhookClientBuilder("no webhook url for u :)");
WebhookClient client = builder.build();
client.send("POV: your trying to obfuscate a jar and it worked");
}
}
`