Skip to content

Commit e847cec

Browse files
committed
base kotlin plugin
1 parent 6f3c585 commit e847cec

5 files changed

Lines changed: 141 additions & 0 deletions

File tree

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*.iml
2+
.idea/
3+
target/
4+
test-server/

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Whitelist HTTP API
2+
3+
Enable whitelist management from an exposed HTTP endpoint
4+
5+
_wip_

pom.xml

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>com.jackharrhy.whitelist</groupId>
8+
<artifactId>whitelist</artifactId>
9+
<version>1.0-SNAPSHOT</version>
10+
<packaging>jar</packaging>
11+
12+
<name>Whitelist HTTP API</name>
13+
14+
<description>Enable Minecraft whitelist management from an exposed HTTP endpoint</description>
15+
<properties>
16+
<java.version>1.8</java.version>
17+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
18+
<kotlin.version>1.3.70</kotlin.version>
19+
</properties>
20+
<url>https://github.com/MUNComputerScienceSociety/Whitelist-HTTP-API</url>
21+
22+
<build>
23+
<sourceDirectory>src/main/kotlin</sourceDirectory>
24+
<defaultGoal>clean package</defaultGoal>
25+
<plugins>
26+
<plugin>
27+
<groupId>org.apache.maven.plugins</groupId>
28+
<artifactId>maven-compiler-plugin</artifactId>
29+
<version>3.7.0</version>
30+
<configuration>
31+
<source>${java.version}</source>
32+
<target>${java.version}</target>
33+
</configuration>
34+
</plugin>
35+
<plugin>
36+
<groupId>org.apache.maven.plugins</groupId>
37+
<artifactId>maven-shade-plugin</artifactId>
38+
<version>3.1.0</version>
39+
<executions>
40+
<execution>
41+
<phase>package</phase>
42+
<goals>
43+
<goal>shade</goal>
44+
</goals>
45+
<configuration>
46+
<createDependencyReducedPom>false</createDependencyReducedPom>
47+
</configuration>
48+
</execution>
49+
</executions>
50+
</plugin>
51+
<plugin>
52+
<groupId>org.jetbrains.kotlin</groupId>
53+
<artifactId>kotlin-maven-plugin</artifactId>
54+
<version>${kotlin.version}</version>
55+
<executions>
56+
<execution>
57+
<id>compile</id>
58+
<phase>compile</phase>
59+
<goals>
60+
<goal>compile</goal>
61+
</goals>
62+
</execution>
63+
<execution>
64+
<id>test-compile</id>
65+
<phase>test-compile</phase>
66+
<goals>
67+
<goal>test-compile</goal>
68+
</goals>
69+
</execution>
70+
</executions>
71+
</plugin>
72+
</plugins>
73+
<resources>
74+
<resource>
75+
<directory>src/main/resources</directory>
76+
<filtering>true</filtering>
77+
</resource>
78+
</resources>
79+
</build>
80+
81+
<repositories>
82+
<repository>
83+
<id>destroystokyo-repo</id>
84+
<url>https://repo.destroystokyo.com/repository/maven-public/</url>
85+
</repository>
86+
<repository>
87+
<id>sonatype</id>
88+
<url>https://oss.sonatype.org/content/groups/public/</url>
89+
</repository>
90+
</repositories>
91+
92+
<dependencies>
93+
<dependency>
94+
<groupId>com.destroystokyo.paper</groupId>
95+
<artifactId>paper-api</artifactId>
96+
<version>1.15.2-R0.1-SNAPSHOT</version>
97+
<scope>provided</scope>
98+
</dependency>
99+
<dependency>
100+
<groupId>org.jetbrains.kotlin</groupId>
101+
<artifactId>kotlin-stdlib</artifactId>
102+
<version>${kotlin.version}</version>
103+
</dependency>
104+
<dependency>
105+
<groupId>org.jetbrains.kotlin</groupId>
106+
<artifactId>kotlin-test</artifactId>
107+
<version>${kotlin.version}</version>
108+
<scope>test</scope>
109+
</dependency>
110+
</dependencies>
111+
</project>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package com.jackharrhy.whitelist
2+
3+
import org.bukkit.plugin.java.JavaPlugin
4+
5+
class Whitelist : JavaPlugin() {
6+
override fun onEnable() {
7+
logger.info(description.name + " has been enabled")
8+
}
9+
10+
override fun onDisable() {
11+
logger.info(description.name + " has been enabled")
12+
}
13+
}

src/main/resources/plugin.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: "Whitelist-HTTP-API"
2+
version: ${project.version}
3+
main: com.jackharrhy.whitelist.Whitelist
4+
api-version: "1.13"
5+
prefix: whitelist-http-api
6+
authors: [cheesemany]
7+
description: Enable Minecraft whitelist management from an exposed HTTP endpoint
8+
website: https://github.com/MUNComputerScienceSociety/Whitelist-HTTP-API

0 commit comments

Comments
 (0)