Pixel moved to a separate module
This commit is contained in:
parent
5f16f8b6f7
commit
86037833c8
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,6 +4,7 @@ gradle-app.setting
|
||||
/build/
|
||||
/android/build/
|
||||
/core/build/
|
||||
/pixel/build/
|
||||
/lwjgl2/build/
|
||||
/lwjgl3/build/
|
||||
/html/build/
|
||||
|
@ -57,6 +57,7 @@ dependencies {
|
||||
implementation "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
|
||||
implementation "com.github.MrStahlfelge.gdx-websockets:common:$websocketVersion"
|
||||
implementation project(':core')
|
||||
implementation project(':pixel')
|
||||
//implementation "com.openeggbert.gdx:gdx-storage:0.0.0-SNAPSHOT"
|
||||
|
||||
natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-arm64-v8a"
|
||||
|
@ -58,6 +58,9 @@ configure(subprojects - project(':android')) {
|
||||
subprojects {
|
||||
version = '0.0.0-SNAPSHOT'
|
||||
ext.appName = 'open-eggbert'
|
||||
if (project.name == 'pixel') {
|
||||
ext.appName = 'pixel'
|
||||
}
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven { url 'https://s01.oss.sonatype.org' }
|
||||
|
@ -22,6 +22,7 @@ dependencies {
|
||||
compileOnly "org.projectlombok:lombok:$lombokVersion"
|
||||
testImplementation "org.junit.jupiter:junit-jupiter-api:5.10.3"
|
||||
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.10.3"
|
||||
implementation project(':pixel')
|
||||
}
|
||||
|
||||
test {
|
||||
|
@ -48,6 +48,7 @@ dependencies {
|
||||
implementation "com.google.jsinterop:jsinterop-annotations:2.0.2:sources"
|
||||
implementation "de.golfgl.gdxcontrollerutils:gdx-controllerutils-mapping:$controllerMappingVersion:sources"
|
||||
implementation project(':core')
|
||||
implementation project(':pixel')
|
||||
implementation("com.badlogicgames.gdx-controllers:gdx-controllers-gwt:$gdxControllersVersion:sources"){exclude group: "com.badlogicgames.gdx", module: "gdx-backend-gwt"}
|
||||
implementation("com.badlogicgames.gdx:gdx-box2d-gwt:$gdxVersion:sources") {exclude group: "com.google.gwt", module: "gwt-user"}
|
||||
implementation("com.github.crykn.guacamole:gdx-gwt:$guacamoleVersion:sources"){exclude group: "com.badlogicgames.gdx", module: "gdx-backend-gwt"}
|
||||
@ -147,6 +148,7 @@ task dist(dependsOn: [clean, compileGwt]) {
|
||||
task addSource {
|
||||
doLast {
|
||||
sourceSets.main.compileClasspath += files(project(':core').sourceSets.main.allJava.srcDirs)
|
||||
sourceSets.main.compileClasspath += files(project(':pixel').sourceSets.main.allJava.srcDirs)
|
||||
sourceSets.main.compileClasspath += files("../core/build/generated/sources/annotationProcessor/java/main")
|
||||
|
||||
}
|
||||
|
@ -33,6 +33,7 @@ dependencies {
|
||||
implementation "games.rednblack.miniaudio:miniaudio:$miniaudioVersion:natives-desktop"
|
||||
//implementation "com.openeggbert.gdx:gdx-storage:0.0.0-SNAPSHOT"
|
||||
implementation project(':core')
|
||||
implementation project(':pixel')
|
||||
}
|
||||
|
||||
def jarName = "${appName}-${version}.jar"
|
||||
|
31
pixel/build.gradle
Normal file
31
pixel/build.gradle
Normal file
@ -0,0 +1,31 @@
|
||||
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
||||
//eclipse.project.name = appName + '-core'
|
||||
eclipse.project.name = 'pixel'
|
||||
|
||||
sourceSets.test.java.srcDirs = [ "src/test/java/" ]
|
||||
|
||||
dependencies {
|
||||
api "com.badlogicgames.gdx-controllers:gdx-controllers-core:$gdxControllersVersion"
|
||||
api "com.badlogicgames.gdx:gdx-ai:$aiVersion"
|
||||
api "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
|
||||
api "com.badlogicgames.gdx:gdx:$gdxVersion"
|
||||
api "com.github.MrStahlfelge.gdx-websockets:core:$websocketVersion"
|
||||
api "com.github.MrStahlfelge.gdx-websockets:serialization:$websocketSerializationVersion"
|
||||
api "com.github.crykn.guacamole:core:$guacamoleVersion"
|
||||
api "com.github.crykn.guacamole:gdx:$guacamoleVersion"
|
||||
api "com.github.tommyettinger:formic:$formicVersion"
|
||||
api "com.github.tommyettinger:libgdx-utils-box2d:$utilsBox2dVersion"
|
||||
api "com.github.tommyettinger:libgdx-utils:$utilsVersion"
|
||||
api "de.golfgl.gdxcontrollerutils:gdx-controllerutils-mapping:$controllerMappingVersion"
|
||||
api "games.rednblack.miniaudio:miniaudio:$miniaudioVersion"
|
||||
//api "com.openeggbert.gdx:gdx-storage:0.0.0-SNAPSHOT"
|
||||
annotationProcessor "org.projectlombok:lombok:$lombokVersion"
|
||||
compileOnly "org.projectlombok:lombok:$lombokVersion"
|
||||
testImplementation "org.junit.jupiter:junit-jupiter-api:5.10.3"
|
||||
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.10.3"
|
||||
}
|
||||
|
||||
test {
|
||||
useJUnitPlatform {
|
||||
}
|
||||
}
|
1
pixel/src/test/java/com/pixelgamelibrary/.gitkeep
Normal file
1
pixel/src/test/java/com/pixelgamelibrary/.gitkeep
Normal file
@ -0,0 +1 @@
|
||||
|
@ -1,4 +1,4 @@
|
||||
// A list of which subprojects to load as part of the same larger project.
|
||||
// You can remove Strings from the list and reload the Gradle project
|
||||
// if you want to temporarily disable a subproject.
|
||||
include 'lwjgl3', 'android', 'html', 'core'
|
||||
include 'lwjgl3', 'android', 'html', 'core', 'pixel'
|
||||
|
Reference in New Issue
Block a user