Skip to content

Commit 1c22281

Browse files
authored
Merge pull request #20 from SourceWriters/feat/GithubActions
Feat/GitHub actions
2 parents 636ba1f + 6f763e1 commit 1c22281

File tree

3 files changed

+48
-4
lines changed

3 files changed

+48
-4
lines changed

.m2/settings.xml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
4+
http://maven.apache.org/xsd/settings-1.0.0.xsd">
5+
6+
<activeProfiles>
7+
<activeProfile>github</activeProfile>
8+
</activeProfiles>
9+
10+
<profiles>
11+
<profile>
12+
<id>github</id>
13+
<repositories>
14+
<repository>
15+
<id>central</id>
16+
<url>https://repo1.maven.org/maven2</url>
17+
<releases><enabled>true</enabled></releases>
18+
<snapshots><enabled>true</enabled></snapshots>
19+
</repository>
20+
<repository>
21+
<id>github</id>
22+
<name>GitHub OWNER Apache Maven Packages</name>
23+
<url>https://maven.pkg.github.com/SourceWriters/vCompat</url>
24+
</repository>
25+
</repositories>
26+
</profile>
27+
</profiles>
28+
29+
<servers>
30+
<server>
31+
<id>github</id>
32+
<username>${env.MAVEN_USER}</username>
33+
<password>${env.MAVEN_PASSWORD}</password>
34+
</server>
35+
</servers>
36+
</settings>

pom.xml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@
2020
</repository>
2121
</repositories>
2222

23+
<distributionManagement>
24+
<repository>
25+
<id>github</id>
26+
<name>GitHub OWNER Apache Maven Packages</name>
27+
<url>https://maven.pkg.github.com/SourceWriters/vCompat</url>
28+
</repository>
29+
</distributionManagement>
30+
2331
<dependencies>
2432
<!-- Mojang -->
2533
<dependency>
@@ -94,7 +102,7 @@
94102
<version>5.5.2</version>
95103
<scope>test</scope>
96104
</dependency>
97-
105+
98106
<!-- All Minecraft versions (add down here) -->
99107
<!-- <dependency>
100108
<groupId>org.spigotmc</groupId>
@@ -112,7 +120,7 @@
112120
</exclusion>
113121
</exclusions>
114122
</dependency> -->
115-
123+
116124
<dependency>
117125
<groupId>bukkit</groupId>
118126
<artifactId>spigot-1.16.4</artifactId>
@@ -233,7 +241,7 @@
233241
<systemPath>${project.basedir}/libraries/spigot/spigot-1.8.jar</systemPath>
234242
<type>jar</type>
235243
</dependency>
236-
244+
237245
</dependencies>
238246

239247
<properties>

scripts/build-spigot.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ mkdir -p $1/libraries/spigot
33
echo "Downloading Spigot files..."
44
versions=$1/scripts/data/versions.txt
55
while read line; do
6-
if [ -z "$line"]; then
6+
if [ -z "$line" ]; then
77
continue
88
fi
99
echo "Downloading Spigot $line"

0 commit comments

Comments
 (0)