Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running obfuscated jar throws java.lang.ClassNotFoundException #149

Open
Iprobablyhack opened this issue Oct 2, 2022 · 0 comments
Open

Comments

@Iprobablyhack
Copy link

Iprobablyhack commented Oct 2, 2022

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");
}
}
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant