How do I properly set up an API5 SpongeForge workspace?

I’m having one crappy time trying to get my workspace to work with Sponge, Forge and a mod that needs to interface with both. Is there like, an actual proper way of doing this?

Here’s what I’m doing in one of my own projects of a similar setup. Some of the builds may be a bit outdated as I haven’t updated the project in months, but you should get this gist.

buildscript {
    repositories {
        jcenter()
        maven {
            name = "forge"
            url = "http://files.minecraftforge.net/maven"
        }
    }
    dependencies {
        classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT'
    }
}

plugins {
    id 'java'
}

apply plugin: 'net.minecraftforge.gradle.forge'

group = <group>
version = <project_version>
archivesBaseName = <project_name>

sourceCompatibility = 1.8
targetCompatibility = 1.8

repositories {
    mavenCentral()
    maven {
        name = 'sponge'
        url = 'http://repo.spongepowered.org/maven'
    }
}

minecraft {
    version = "1.10.2-12.18.1.2011"
    runDir = "run"
    mappings = "snapshot_20160704"
}

dependencies {
    compile 'org.spongepowered:spongeapi:5.0.0'
}

I’m talking like, being able to hotswap and such.

I’m not sure if this is what you mean, It sounds like you want live debugging and such… the re was a thread some time back. Sib made some videos.

https://forums.spongepowered.org/t/need-some-help-importing-sponge-into-intellij/16138/28?u=curscascis

Hope this helps