Help with Gradle

i am trying to use eventbus from guava but i can't compile my project
dependencies {
testImplementation(platform("org.junit:junit-bom:5.9.1"))
testImplementation("org.junit.jupiter:junit-jupiter")
implementation("com.google.guava:guava:33.1.0-jre")
implementation("com.google.guava:guava-eventbus:33.1.0-jre") // i was told eventbus was removed so i added it seperately just in case, importing still works fine without this
}
dependencies {
testImplementation(platform("org.junit:junit-bom:5.9.1"))
testImplementation("org.junit.jupiter:junit-jupiter")
implementation("com.google.guava:guava:33.1.0-jre")
implementation("com.google.guava:guava-eventbus:33.1.0-jre") // i was told eventbus was removed so i added it seperately just in case, importing still works fine without this
}
as seen in the picture, importing it works fine but when i compile:
Chiroptera.java:3: error: package com.google.common.eventbus does not exist
import com.google.common.eventbus.EventBus;
Chiroptera.java:3: error: package com.google.common.eventbus does not exist
import com.google.common.eventbus.EventBus;
No description
5 Replies
JavaBot
JavaBot8mo ago
This post has been reserved for your question.
Hey @eren.! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Peter Rader
Peter Rader8mo ago
In order to help you we need your gradle build file.
Koblížkáč
Koblížkáč8mo ago
yes, show us the whole buildscript just a side note: it was probably removed for a good reason, id maybe look for some alternative with a better design or smth
eren.
eren.OP8mo ago
sorry didnt see, no notifications my build script: https://hastebin.skyra.pw/sogewugige.pgsql i couldnt find something else as simple as guava, i just need a quick and simple event system but everything else feels too bloated
JavaBot
JavaBot8mo ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
Want results from more Discord servers?
Add your server