Skip to content

Commit af64f49

Browse files
authored
Merge pull request #26 from GlowstoneMC/1.16
2 parents 7e67e63 + b1260b5 commit af64f49

35 files changed

+836
-2335
lines changed

.circleci/config.yml

-108
This file was deleted.

.circleci/maven.xml

-19
This file was deleted.

.github/workflows/build.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Set up JDK
17+
uses: actions/setup-java@v1
18+
with:
19+
java-version: 8
20+
21+
- name: Configure Git
22+
run: |
23+
git config --global user.email "[email protected]"
24+
git config --global user.name "mastercoms"
25+
26+
- name: Apply Patches
27+
run: ./glowkit p
28+
29+
- name: Cache
30+
uses: actions/cache@v2
31+
with:
32+
path: ~/.m2/repository
33+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
34+
restore-keys: |
35+
${{ runner.os }}-maven-
36+
37+
- name: Cache Maven
38+
run: mvn -T 1C -B dependency:go-offline
39+
working-directory: ./Glowkit-Patched
40+
41+
- name: Maven Build
42+
run: mvn -T 1C -B package -Pbuild-extras
43+
working-directory: ./Glowkit-Patched

.github/workflows/build_deploy.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Build and Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths-ignore:
8+
- README.md
9+
- .gitignore
10+
- LICENSE
11+
12+
jobs:
13+
build_deploy:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
19+
- name: Set up JDK
20+
uses: actions/setup-java@v1
21+
with:
22+
java-version: 8
23+
server-id: glowstone-snapshots
24+
server-username: MAVEN_USERNAME
25+
server-password: MAVEN_PASSWORD
26+
27+
- name: Configure Git
28+
run: |
29+
git config --global user.email "[email protected]"
30+
git config --global user.name "mastercoms"
31+
32+
- name: Apply Patches
33+
run: ./glowkit p
34+
35+
- name: Cache
36+
uses: actions/cache@v2
37+
with:
38+
path: ~/.m2/repository
39+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
40+
restore-keys: |
41+
${{ runner.os }}-maven-
42+
43+
- name: Cache Maven
44+
run: mvn -T 1C -B dependency:go-offline
45+
working-directory: ./Glowkit-Patched
46+
47+
- name: Maven Build and Deploy
48+
run: mvn -T 1C -B source:jar javadoc:jar deploy -Pbuild-extras
49+
working-directory: ./Glowkit-Patched
50+
env:
51+
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
52+
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}

.gitignore

+3-6
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,25 @@ dist/
2626
manifest.mf
2727

2828
work/1.*
29-
work/BuildData
3029
work/Bukkit
31-
work/CraftBukkit
32-
work/Paperclip
3330
work/Spigot
34-
work/Spigot-Server
3531
work/Spigot-API
36-
work/*.jar
37-
work/test-server
3832

3933
# Mac filesystem dust
4034
.DS_Store/
35+
.DS_Store
4136

4237
# intellij
4338
*.iml
4439
*.ipr
4540
*.iws
4641
.idea/
42+
out/
4743

4844
# Linux temp files
4945
*~
5046

5147
# other stuff
48+
run/
5249

5350
Glowkit-Patched
+21-50
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,28 @@
1-
From 83256e5020d2af3cdbe0b80598132cdf4a1240fb Mon Sep 17 00:00:00 2001
1+
From 0bac612c21c8eef2eeb1e02e7f4ba87767d355e2 Mon Sep 17 00:00:00 2001
22
From: mastercoms <[email protected]>
33
Date: Tue, 16 May 2017 22:07:47 -0400
44
Subject: [PATCH] POM Changes
55

66

77
diff --git a/pom.xml b/pom.xml
8-
index 2fa2dd7c..24c18869 100644
8+
index 73fbd5d5..9fc165e9 100644
99
--- a/pom.xml
1010
+++ b/pom.xml
11-
@@ -4,18 +4,20 @@
11+
@@ -2,19 +2,14 @@
12+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
13+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
1214
<modelVersion>4.0.0</modelVersion>
13-
14-
<parent>
15+
- <parent>
1516
- <groupId>com.destroystokyo.paper</groupId>
1617
- <artifactId>paper-parent</artifactId>
1718
- <version>dev-SNAPSHOT</version>
18-
+ <groupId>org.sonatype.oss</groupId>
19-
+ <artifactId>oss-parent</artifactId>
20-
+ <version>9</version>
21-
+ <!-- Fix for maven warning -->
22-
+ <relativePath></relativePath>
23-
</parent>
19+
- </parent>
2420

2521
- <groupId>com.destroystokyo.paper</groupId>
2622
- <artifactId>paper-api</artifactId>
27-
- <version>1.12.2-R0.1-SNAPSHOT</version>
2823
+ <groupId>net.glowstone</groupId>
2924
+ <artifactId>glowkit</artifactId>
30-
+ <version>1.12.2-R6.0-SNAPSHOT</version>
25+
<version>1.16.5-R0.1-SNAPSHOT</version>
3126
<packaging>jar</packaging>
3227

3328
- <name>Paper-API</name>
@@ -37,8 +32,8 @@ index 2fa2dd7c..24c18869 100644
3732
<description>An enhanced plugin API for Minecraft servers.</description>
3833

3934
<properties>
40-
@@ -25,6 +27,17 @@
41-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
35+
@@ -25,7 +20,26 @@
36+
<adventure.version>4.7.0</adventure.version> <!-- Paper - When updating this make sure to update the linked JavaDocs on the homepage as well! -->
4237
</properties>
4338

4439
+ <distributionManagement>
@@ -52,50 +47,26 @@ index 2fa2dd7c..24c18869 100644
5247
+ </snapshotRepository>
5348
+ </distributionManagement>
5449
+
55-
<pluginRepositories>
56-
<pluginRepository>
57-
<id>spigotmc-public</id>
58-
@@ -34,8 +47,8 @@
59-
6050
<repositories>
61-
<repository>
62-
- <id>spigotmc-public</id>
63-
- <url>https://hub.spigotmc.org/nexus/content/groups/public/</url>
51+
+ <!--
52+
+ If you are a plugin developer, please use https://repo.glowstone.net/nexus/content/repositories/snapshots/
53+
+ as your repository URL. This will ensure only Glowstone related artifacts are pulled from our Maven repository.
54+
+ -->
55+
+ <repository>
6456
+ <id>glowstone</id>
65-
+ <url>https://repo.glowstone.net/repository/maven-public/</url>
66-
</repository>
57+
+ <url>https://repo.glowstone.net/repository/internal/</url>
58+
+ </repository>
6759
<repository>
6860
<id>sonatype</id>
69-
@@ -48,8 +61,6 @@
70-
<groupId>net.sf.trove4j</groupId>
71-
<artifactId>trove4j</artifactId>
72-
<version>3.0.3</version>
73-
- <!-- Trove Provided by CraftBukkit -->
74-
- <scope>provided</scope>
75-
</dependency>
76-
<!-- Paper - Add Authlib for Profile API -->
77-
<dependency>
78-
@@ -147,19 +158,12 @@
61+
<url>https://oss.sonatype.org/content/groups/public/</url>
62+
@@ -185,6 +199,7 @@
7963

8064
<build>
8165
<defaultGoal>clean install</defaultGoal>
8266
+ <finalName>glowkit</finalName>
8367
<plugins>
8468
<plugin>
85-
<groupId>org.apache.maven.plugins</groupId>
86-
<artifactId>maven-compiler-plugin</artifactId>
87-
<version>3.7.0</version>
88-
- <dependencies>
89-
- <!-- we need our custom version as it fixes some bugs on case sensitive file systems -->
90-
- <dependency>
91-
- <groupId>org.codehaus.plexus</groupId>
92-
- <artifactId>plexus-compiler-eclipse</artifactId>
93-
- <version>2.8.2-spigotmc</version>
94-
- </dependency>
95-
- </dependencies>
96-
</plugin>
97-
<plugin>
98-
<groupId>org.apache.maven.plugins</groupId>
69+
<groupId>net.md-5</groupId>
9970
--
100-
2.20.1
71+
2.27.0
10172

0 commit comments

Comments
 (0)