I am following the IntelliJ tutorial on the docs, I have followed every step, but I still can’t get anything to work right for me.
Here are some images, last time I tried to paste my code in it left some things out.
https://gyazo.com/e6b28f355831e7ec1ebb1905de8b5f5a
I seriously have no idea. From what I can tell the packages are imported from spongepowered, but they aren’t recognized in my code. I could use some help.
Make sure intellij is treating the dependencies as a dependency of your plugin module (I believe in project config or something along those lines)
In project structure
From your build.gradle, it looks like you’ve removed the group; try adding it back. Also, remove sourceCompatibility. And then refresh Gradle again.
not dependencies it?
build.gradle
repositories {
mavenCentral()
maven {
name = 'sponge'
url = 'http://repo.spongepowered.org/maven'
}
}
dependencies {
compile 'org.spongepowered:spongeapi:5.0.0'
compile files('spongevanilla-1.10.2-5.1.0-BETA-366.jar')
testCompile group: 'junit', name: 'junit', version: '4.11'
}
KaBa_Ani:
not dependencies it?
what?
Also, you don’t need to compile against the server jar; that defeats the purpose of the API.