Closed boppescripting closed 2 years ago
Resolved by adding the below to my build.gradle.kts
:
tasks.withType<Jar> {
// Otherwise you'll get a "No main manifest attribute" error
manifest {
attributes["Main-Class"] = "com.Example.Main"
}
// To add all of the dependencies
from(sourceSets.main.get().output)
dependsOn(configurations.runtimeClasspath)
from({
configurations.runtimeClasspath.get().filter { it.name.endsWith("jar") }.map { zipTree(it) }
})
}
Whenever I attempt to run my sever, my plugin is stopped with the above error. ProtocolLib is added to my plugins folder and added as a dependency for my plugin.
Gradle Build File