From 4b9b6ec88161990f12e4f6bae1938b05b670cf8c Mon Sep 17 00:00:00 2001 From: Willem Date: Mon, 7 Feb 2022 01:18:02 +0100 Subject: [PATCH] Added unicode4d and stepcode lib infra --- build.gradle | 24 ++++++++++++++++++- lib-numberxd/build.gradle | 1 - lib-stepcode/build.gradle | 7 ++++++ .../distributedrebirth/stepcode/StepCode.java | 5 ++++ lib-unicode4d/build.gradle | 7 ++++++ .../unicode4d/CodePoint4D.java | 5 ++++ settings.gradle | 2 +- 7 files changed, 48 insertions(+), 3 deletions(-) create mode 100644 lib-stepcode/build.gradle create mode 100644 lib-stepcode/src/main/love/distributedrebirth/stepcode/StepCode.java create mode 100644 lib-unicode4d/build.gradle create mode 100644 lib-unicode4d/src/main/love/distributedrebirth/unicode4d/CodePoint4D.java diff --git a/build.gradle b/build.gradle index d4d4e43c..3314b9f8 100644 --- a/build.gradle +++ b/build.gradle @@ -56,11 +56,33 @@ project(":lib-numberxd") { } } -project(":main-gdxapp") { +project(":lib-unicode4d") { apply plugin: "java-library" dependencies { api project(":lib-numberxd") api files('../gradle-libs/opentype4j-1.0.0-SNAPSHOT.jar') + testImplementation "org.junit.jupiter:junit-jupiter:$junitVersion" + } + tasks.named('test') { + useJUnitPlatform() + } +} + +project(":lib-stepcode") { + apply plugin: "java-library" + dependencies { + api project(":lib-unicode4d") + testImplementation "org.junit.jupiter:junit-jupiter:$junitVersion" + } + tasks.named('test') { + useJUnitPlatform() + } +} + +project(":main-gdxapp") { + apply plugin: "java-library" + dependencies { + api project(":lib-stepcode") api "com.badlogicgames.gdx:gdx:$gdxVersion" api "io.github.spair:imgui-java-binding:$spairVersion" api "io.github.spair:imgui-java-lwjgl3:$spairVersion" diff --git a/lib-numberxd/build.gradle b/lib-numberxd/build.gradle index 609f5c73..84a26470 100644 --- a/lib-numberxd/build.gradle +++ b/lib-numberxd/build.gradle @@ -5,4 +5,3 @@ sourceSets.main.java.srcDirs = [ "src/main/"] sourceSets.main.resources.srcDirs = [ "src/resources/" ] sourceSets.test.java.srcDirs = [ "src/test/"] sourceSets.test.resources.srcDirs = [ "src/test-resources/" ] - diff --git a/lib-stepcode/build.gradle b/lib-stepcode/build.gradle new file mode 100644 index 00000000..84a26470 --- /dev/null +++ b/lib-stepcode/build.gradle @@ -0,0 +1,7 @@ +sourceCompatibility = appJvmCode +[compileJava, compileTestJava]*.options*.encoding = appEncoding + +sourceSets.main.java.srcDirs = [ "src/main/"] +sourceSets.main.resources.srcDirs = [ "src/resources/" ] +sourceSets.test.java.srcDirs = [ "src/test/"] +sourceSets.test.resources.srcDirs = [ "src/test-resources/" ] diff --git a/lib-stepcode/src/main/love/distributedrebirth/stepcode/StepCode.java b/lib-stepcode/src/main/love/distributedrebirth/stepcode/StepCode.java new file mode 100644 index 00000000..f314f4b9 --- /dev/null +++ b/lib-stepcode/src/main/love/distributedrebirth/stepcode/StepCode.java @@ -0,0 +1,5 @@ +package love.distributedrebirth.stepcode; + +public class StepCode { + +} diff --git a/lib-unicode4d/build.gradle b/lib-unicode4d/build.gradle new file mode 100644 index 00000000..84a26470 --- /dev/null +++ b/lib-unicode4d/build.gradle @@ -0,0 +1,7 @@ +sourceCompatibility = appJvmCode +[compileJava, compileTestJava]*.options*.encoding = appEncoding + +sourceSets.main.java.srcDirs = [ "src/main/"] +sourceSets.main.resources.srcDirs = [ "src/resources/" ] +sourceSets.test.java.srcDirs = [ "src/test/"] +sourceSets.test.resources.srcDirs = [ "src/test-resources/" ] diff --git a/lib-unicode4d/src/main/love/distributedrebirth/unicode4d/CodePoint4D.java b/lib-unicode4d/src/main/love/distributedrebirth/unicode4d/CodePoint4D.java new file mode 100644 index 00000000..009ccd1f --- /dev/null +++ b/lib-unicode4d/src/main/love/distributedrebirth/unicode4d/CodePoint4D.java @@ -0,0 +1,5 @@ +package love.distributedrebirth.unicode4d; + +public class CodePoint4D { + +} diff --git a/settings.gradle b/settings.gradle index 24a0612b..adb908a7 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1 +1 @@ -include 'main-gdxapp-desktop', 'main-gdxapp', 'lib-bassboonyd', 'lib-numberxd' \ No newline at end of file +include 'main-gdxapp-desktop', 'main-gdxapp', 'lib-bassboonyd', 'lib-numberxd', 'lib-unicode4d', 'lib-stepcode' \ No newline at end of file