Set up GameJ and Jstate support
This commit is contained in:
parent
287957f987
commit
1b176c43f2
11
.gitignore
vendored
11
.gitignore
vendored
@ -1,14 +1,3 @@
|
|||||||
# Generated by Cargo
|
|
||||||
# will have compiled files and executables
|
|
||||||
/target/
|
|
||||||
|
|
||||||
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
|
|
||||||
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
|
|
||||||
Cargo.lock
|
|
||||||
|
|
||||||
# These are backup files generated by rustfmt
|
|
||||||
**/*.rs.bk
|
|
||||||
|
|
||||||
# Ignore Gradle project-specific cache directory
|
# Ignore Gradle project-specific cache directory
|
||||||
.gradle
|
.gradle
|
||||||
|
|
||||||
|
50
app/build.gradle
Normal file
50
app/build.gradle
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
/*
|
||||||
|
* This file was generated by the Gradle 'init' task.
|
||||||
|
*
|
||||||
|
* This generated file contains a sample Java application project to get you started.
|
||||||
|
* For more details take a look at the 'Building Java & JVM projects' chapter in the Gradle
|
||||||
|
* User Manual available at https://docs.gradle.org/6.8.2/userguide/building_java_projects.html
|
||||||
|
*/
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
// Apply the application plugin to add support for building a CLI application in Java.
|
||||||
|
id 'application'
|
||||||
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
// Use JCenter for resolving dependencies.
|
||||||
|
jcenter()
|
||||||
|
|
||||||
|
maven {
|
||||||
|
name = "RetryLife Release"
|
||||||
|
url = "https://release.maven.retrylife.ca"
|
||||||
|
}
|
||||||
|
|
||||||
|
maven {
|
||||||
|
name = "RetryLife Snapshot"
|
||||||
|
url = "https://snapshot.maven.retrylife.ca"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
// Use JUnit test framework.
|
||||||
|
testImplementation 'junit:junit:4.13'
|
||||||
|
|
||||||
|
// This dependency is used by the application.
|
||||||
|
implementation 'com.google.guava:guava:29.0-jre'
|
||||||
|
|
||||||
|
// State machines
|
||||||
|
implementation "ca.retrylife:jstate:1.+"
|
||||||
|
implementation "ca.retrylife:jstate:1.+-sources"
|
||||||
|
implementation "ca.retrylife:jstate:1.+-javadoc"
|
||||||
|
|
||||||
|
// GameJ
|
||||||
|
implementation "dev.rsninja:gamej:1.+"
|
||||||
|
implementation "dev.rsninja:gamej:1.+-sources"
|
||||||
|
implementation "dev.rsninja:gamej:1.+-javadoc"
|
||||||
|
}
|
||||||
|
|
||||||
|
application {
|
||||||
|
// Define the main class for the application.
|
||||||
|
mainClass = 'ca.retrylife.ldjam48.App'
|
||||||
|
}
|
14
app/src/main/java/ca/retrylife/ldjam48/App.java
Normal file
14
app/src/main/java/ca/retrylife/ldjam48/App.java
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
/*
|
||||||
|
* This Java source file was generated by the Gradle 'init' task.
|
||||||
|
*/
|
||||||
|
package ca.retrylife.ldjam48;
|
||||||
|
|
||||||
|
public class App {
|
||||||
|
public String getGreeting() {
|
||||||
|
return "Hello World!";
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
System.out.println(new App().getGreeting());
|
||||||
|
}
|
||||||
|
}
|
14
app/src/test/java/ca/retrylife/ldjam48/AppTest.java
Normal file
14
app/src/test/java/ca/retrylife/ldjam48/AppTest.java
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
/*
|
||||||
|
* This Java source file was generated by the Gradle 'init' task.
|
||||||
|
*/
|
||||||
|
package ca.retrylife.ldjam48;
|
||||||
|
|
||||||
|
import org.junit.Test;
|
||||||
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
|
public class AppTest {
|
||||||
|
@Test public void testAppHasAGreeting() {
|
||||||
|
App classUnderTest = new App();
|
||||||
|
assertNotNull("app should have a greeting", classUnderTest.getGreeting());
|
||||||
|
}
|
||||||
|
}
|
@ -1,6 +0,0 @@
|
|||||||
/*
|
|
||||||
* This file was generated by the Gradle 'init' task.
|
|
||||||
*
|
|
||||||
* This is a general purpose Gradle build.
|
|
||||||
* Learn more about Gradle by exploring our samples at https://docs.gradle.org/6.8.2/samples
|
|
||||||
*/
|
|
@ -8,3 +8,4 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
rootProject.name = 'ludum-dare-48'
|
rootProject.name = 'ludum-dare-48'
|
||||||
|
include('app')
|
||||||
|
Reference in New Issue
Block a user