Skip to content

Latest commit

 

History

History
63 lines (49 loc) · 1.77 KB

README.md

File metadata and controls

63 lines (49 loc) · 1.77 KB

SpongeStart forthebadge

GitHub stars GitHub issues Build Status

Gradle plugin to run sponge inside your workspace.

Example Build.gradle for your project

plugins {
  id "com.qixalite.spongestart" version "1.6.0"
  id "java"
}

sourceCompatibility = 1.8

repositories {
    mavenCentral()
    maven {
        url 'https://repo.spongepowered.org/maven/'
    }
}

spongestart{
   eula true
   
   //optional settings, takes latest version by default
   minecraft '1.10.2'
   type 'bleeding'
   spongeForgeVersion '1.10.2-2202-5.1.0-BETA-2042'
   spongeVanillaVersion '1.10.2-5.0.0-BETA-89'
}

dependencies{
    //you still need to set your dependency on sponge, this plugin only handles the running part.
    compile 'org.spongepowered:spongeapi:3.1.0-SNAPSHOT'
}

##Commands

gradle setupServer Generates a forge and vanilla server + intelij run configurations.

gradle setupVanilla Generates a vanilla server + intelij run configurations.

gradle setupForge Generates a forge server + intelij run configurations.

Run Configurations for your IDE (in case they don't automatic generate)

####Start SpongeForge Server:

  • Mainclass: StartServer
  • Working Directory: run/forge

####Start SpongeVanilla Server:

  • Mainclass: StartServer
  • Working Directory: run/vanilla
  • arguments: -scan-classpath