#Bson not being built into plugin jar

1 messages · Page 1 of 1 (latest)

wild mountain
#

Im making a plugin, and in it i need to use mongodb, requiring bson, and after adding both mongodb and bson to my build file (gradle) i still get this error, can anyone help?

#

java.lang.NoClassDefFoundError: org/bson/conversions/Bson at network.cosmoscraft.mongodbconnector.main.onEnable(main.java:10) ~[Mongoconnect-1.1.jar:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[purpur-api-1.19.2-R0.1-SNAPSHOT.jar:?]

void wing
#

use imgur

wild mountain
void wing
#

you dont shade it

wild mountain
#

?

void wing
#

change compileOnly on bson to implementation

wild mountain
#

it is implementation

#

implementation group: 'org.mongodb', name: 'bson', version: '4.9.0'