Changing this project to be a template bukkit plugin project.

This commit is contained in:
Harrison Deng 2020-04-24 16:08:37 -05:00
parent 77453fe177
commit bace9ccf0b
7 changed files with 59 additions and 67 deletions

View File

@ -1,8 +0,0 @@
{
"folders": [
{
"path": "."
}
],
"settings": {}
}

48
pom.xml
View File

@ -1,18 +1,52 @@
<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>
<groupId>ca.recrown.minecraftdiscordtether</groupId>
<artifactId>minecraftdiscordtether</artifactId>
<groupId>ca.recrown.PLUGINNAME</groupId>
<artifactId>PLUGINNAME</artifactId>
<packaging>jar</packaging>
<version>1.0.0</version>
<name>minecraftdiscordtether</name>
<name>PLUGINNAME</name>
<url>http://maven.apache.org</url>
<repositories>
<repository>
<id>papermc</id>
<url>https://papermc.io/repo/repository/maven-public/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.6.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.destroystokyo.paper</groupId>
<artifactId>paper-api</artifactId>
<version>1.15.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.0</version>
<configuration>
<source>11</source>
<target>11</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
</plugin>
</plugins>
</build>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.release>11</maven.compiler.release>
</properties>
</project>

View File

@ -0,0 +1,9 @@
package ca.recrown.PACKAGENAME;
/**
* Hello world!
*
*/
public class App
{
}

View File

@ -1,13 +0,0 @@
package ca.recrown.minecraftdiscordtether;
/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
}
}

View File

@ -0,0 +1,8 @@
name: PLUGINNAME
main: ca.recrown.PACKAGENAME.PLUGINNAME
version: 1.0.0
description: DESCRIPTION.
commands:
depend: []
load: startup
api-version: 1.15

View File

@ -1,38 +0,0 @@
package ca.recrown.minecraftdiscordtether;
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 );
}
}

View File

@ -1,4 +1,4 @@
write-Output "Deleting previous world if there was one..."
remove-Item -Recurse world -Force -ErrorAction Ignore
write-Output "Attempting to copy plugin jar to plugins folder..."
copy-Item -Path "..\target\MinecraftDiscordTether*.jar" -Destination "plugins\MinecraftDiscordTether.jar"
copy-Item -Path "..\target\PLUGINNAME*.jar" -Destination "plugins\PLUGINNAME.jar"