Verified Commit 6edc71f0 authored by Lars Mitsem Selbekk's avatar Lars Mitsem Selbekk
Browse files

Remove Desktop-subproject

parent 33228904
Pipeline #175830 failed with stages
in 12 minutes and 22 seconds
......@@ -59,20 +59,6 @@ allprojects {
}
}
project(":desktop") {
apply plugin: "kotlin"
dependencies {
implementation project(":core")
api "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
api "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
api "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-desktop"
api "com.badlogicgames.gdx-controllers:gdx-controllers-desktop:$gdxControllersVersion"
api "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
}
}
project(":android") {
apply plugin: "android"
apply plugin: "kotlin-android"
......
sourceCompatibility = 1.7
sourceSets.main.java.srcDirs = [ "src/" ]
sourceSets.main.resources.srcDirs = ["../android/assets"]
project.ext.mainClassName = "se.battlegoo.battlegoose.desktop.DesktopLauncher"
project.ext.assetsDir = new File("../android/assets")
task run(dependsOn: classes, type: JavaExec) {
main = project.mainClassName
classpath = sourceSets.main.runtimeClasspath
standardInput = System.in
workingDir = project.assetsDir
ignoreExitValue = true
}
task debug(dependsOn: classes, type: JavaExec) {
main = project.mainClassName
classpath = sourceSets.main.runtimeClasspath
standardInput = System.in
workingDir = project.assetsDir
ignoreExitValue = true
debug = true
}
task dist(type: Jar) {
manifest {
attributes 'Main-Class': project.mainClassName
}
dependsOn configurations.runtimeClasspath
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
with jar
}
dist.dependsOn classes
eclipse.project.name = appName + "-desktop"
package se.battlegoo.battlegoose.desktop
import com.badlogic.gdx.backends.lwjgl.LwjglApplication
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration
import se.battlegoo.battlegoose.Game
import kotlin.jvm.JvmStatic
object DesktopLauncher {
@JvmStatic
fun main(arg: Array<String>) {
val config = LwjglApplicationConfiguration()
LwjglApplication(Game(), config)
config.width = Game.WIDTH.toInt()
config.height = Game.HEIGHT.toInt()
config.title = Game.TITLE
}
}
include 'desktop', 'android', 'core'
include 'android', 'core'
rootProject.name = "battlegoose"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment