Refactored to new domain name and locked spigot dependency version.
Some checks failed
RealYHD/mcswebapi/pipeline/head There was a failure building this commit
Some checks failed
RealYHD/mcswebapi/pipeline/head There was a failure building this commit
This commit is contained in:
parent
56e0c8f22a
commit
e1ff91f1d8
2
.vscode/launch.json
vendored
2
.vscode/launch.json
vendored
@ -8,7 +8,7 @@
|
|||||||
"type": "java",
|
"type": "java",
|
||||||
"name": "Launch App",
|
"name": "Launch App",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"mainClass": "xyz.reslate.mcswebapi.App",
|
"mainClass": "net.reslate.mcswebapi.App",
|
||||||
"projectName": "mcswebapi"
|
"projectName": "mcswebapi"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
7
.vscode/settings.json
vendored
7
.vscode/settings.json
vendored
@ -2,5 +2,10 @@
|
|||||||
"java.configuration.updateBuildConfiguration": "automatic",
|
"java.configuration.updateBuildConfiguration": "automatic",
|
||||||
"yaml.schemas": {
|
"yaml.schemas": {
|
||||||
"https://json.schemastore.org/bukkit-plugin.json": "file:///home/ydeng/MCSWebAPI/plugin.yml"
|
"https://json.schemastore.org/bukkit-plugin.json": "file:///home/ydeng/MCSWebAPI/plugin.yml"
|
||||||
}
|
},
|
||||||
|
"cSpell.words": [
|
||||||
|
"Javalin",
|
||||||
|
"mcswebapi"
|
||||||
|
],
|
||||||
|
"java.compile.nullAnalysis.mode": "automatic"
|
||||||
}
|
}
|
6
environment.yml
Normal file
6
environment.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
name: mcswebapi
|
||||||
|
channels:
|
||||||
|
- conda-forge
|
||||||
|
dependencies:
|
||||||
|
- openjdk=17.0.*
|
||||||
|
- maven=3.8.*
|
23
pom.xml
23
pom.xml
@ -1,6 +1,6 @@
|
|||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>xyz.reslate.mcswebapi</groupId>
|
<groupId>net.reslate.mcswebapi</groupId>
|
||||||
<artifactId>mcswebapi</artifactId>
|
<artifactId>mcswebapi</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
@ -11,51 +11,38 @@
|
|||||||
<name>mcswebapi</name>
|
<name>mcswebapi</name>
|
||||||
<url>http://maven.apache.org</url>
|
<url>http://maven.apache.org</url>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.reflections</groupId>
|
<groupId>org.reflections</groupId>
|
||||||
<artifactId>reflections</artifactId>
|
<artifactId>reflections</artifactId>
|
||||||
<version>0.10.2</version>
|
<version>0.10.2</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.pac4j</groupId>
|
<groupId>org.pac4j</groupId>
|
||||||
<artifactId>javalin-pac4j</artifactId>
|
<artifactId>javalin-pac4j</artifactId>
|
||||||
<version>4.0.0</version>
|
<version>5.0.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.javalin</groupId>
|
<groupId>io.javalin</groupId>
|
||||||
<artifactId>javalin</artifactId>
|
<artifactId>javalin</artifactId>
|
||||||
<version>4.3.0</version>
|
<version>5.2.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.pac4j</groupId>
|
<groupId>org.pac4j</groupId>
|
||||||
<artifactId>pac4j-oauth</artifactId>
|
<artifactId>pac4j-oauth</artifactId>
|
||||||
<version>5.3.0</version>
|
<version>5.5.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.junit.jupiter</groupId>
|
<groupId>org.junit.jupiter</groupId>
|
||||||
<artifactId>junit-jupiter</artifactId>
|
<artifactId>junit-jupiter</artifactId>
|
||||||
<version>5.8.2</version>
|
<version>5.8.2</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.spigotmc</groupId>
|
<groupId>org.spigotmc</groupId>
|
||||||
<artifactId>spigot-api</artifactId>
|
<artifactId>spigot-api</artifactId>
|
||||||
<version>LATEST</version>
|
<version>1.19.2-R0.1-SNAPSHOT</version>
|
||||||
<type>jar</type>
|
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
package xyz.reslate.mcswebapi;
|
package net.reslate.mcswebapi;
|
||||||
|
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
|
||||||
import io.javalin.Javalin;
|
import io.javalin.Javalin;
|
||||||
import xyz.reslate.mcswebapi.controllers.ControllerGroup;
|
import net.reslate.mcswebapi.controllers.ControllerGroup;
|
||||||
import xyz.reslate.mcswebapi.controllers.PublicServerInformation;
|
import net.reslate.mcswebapi.controllers.PublicServerInformation;
|
||||||
|
|
||||||
public class MCSWebAPI extends JavaPlugin
|
public class MCSWebAPI extends JavaPlugin
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package xyz.reslate.mcswebapi.controllers;
|
package net.reslate.mcswebapi.controllers;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
@ -1,4 +1,4 @@
|
|||||||
package xyz.reslate.mcswebapi.controllers;
|
package net.reslate.mcswebapi.controllers;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package xyz.reslate.mcswebapi.controllers;
|
package net.reslate.mcswebapi.controllers;
|
||||||
|
|
||||||
import io.javalin.Javalin;
|
import io.javalin.Javalin;
|
||||||
|
|
@ -1,5 +1,5 @@
|
|||||||
main: xyz.reslate.mcswebapi.MCSWebAPI
|
main: net.reslate.mcswebapi.MCSWebAPI
|
||||||
name: MCSWebAPI
|
name: MCSWebAPI
|
||||||
version: 0.0.1
|
version: 0.0.1
|
||||||
author: reslate
|
author: Reslate
|
||||||
description: "A Minecraft Server Web API."
|
description: "A Minecraft Server Web API."
|
14
src/test/java/net/reslate/mcswebapi/AppTest.java
Normal file
14
src/test/java/net/reslate/mcswebapi/AppTest.java
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
package net.reslate.mcswebapi;
|
||||||
|
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
|
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
|
class MyFirstJUnitJupiterTests {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void testCase() {
|
||||||
|
assertEquals(2, 2);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -1,38 +0,0 @@
|
|||||||
package xyz.reslate.mcswebapi;
|
|
||||||
|
|
||||||
import junit.framework.Test;
|
|
||||||
import junit.framework.TestCase;
|
|
||||||
import junit.framework.TestSuite;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Unit test for simple App.
|
|
||||||
*/
|
|
||||||
public class AppTest
|
|
||||||
extends TestCase
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* Create the test case
|
|
||||||
*
|
|
||||||
* @param testName name of the test case
|
|
||||||
*/
|
|
||||||
public AppTest( String testName )
|
|
||||||
{
|
|
||||||
super( testName );
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return the suite of tests being tested
|
|
||||||
*/
|
|
||||||
public static Test suite()
|
|
||||||
{
|
|
||||||
return new TestSuite( AppTest.class );
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Rigourous Test :-)
|
|
||||||
*/
|
|
||||||
public void testApp()
|
|
||||||
{
|
|
||||||
assertTrue( true );
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user