Skip to content

Commit

Permalink
Merge pull request #20 from SourceWriters/feat/GithubActions
Browse files Browse the repository at this point in the history
Feat/GitHub actions
  • Loading branch information
Lauriichan authored Jan 19, 2021
2 parents 636ba1f + 6f763e1 commit 1c22281
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 4 deletions.
36 changes: 36 additions & 0 deletions .m2/settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">

<activeProfiles>
<activeProfile>github</activeProfile>
</activeProfiles>

<profiles>
<profile>
<id>github</id>
<repositories>
<repository>
<id>central</id>
<url>https://repo1.maven.org/maven2</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
<repository>
<id>github</id>
<name>GitHub OWNER Apache Maven Packages</name>
<url>https://maven.pkg.github.com/SourceWriters/vCompat</url>
</repository>
</repositories>
</profile>
</profiles>

<servers>
<server>
<id>github</id>
<username>${env.MAVEN_USER}</username>
<password>${env.MAVEN_PASSWORD}</password>
</server>
</servers>
</settings>
14 changes: 11 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@
</repository>
</repositories>

<distributionManagement>
<repository>
<id>github</id>
<name>GitHub OWNER Apache Maven Packages</name>
<url>https://maven.pkg.github.com/SourceWriters/vCompat</url>
</repository>
</distributionManagement>

<dependencies>
<!-- Mojang -->
<dependency>
Expand Down Expand Up @@ -94,7 +102,7 @@
<version>5.5.2</version>
<scope>test</scope>
</dependency>

<!-- All Minecraft versions (add down here) -->
<!-- <dependency>
<groupId>org.spigotmc</groupId>
Expand All @@ -112,7 +120,7 @@
</exclusion>
</exclusions>
</dependency> -->

<dependency>
<groupId>bukkit</groupId>
<artifactId>spigot-1.16.4</artifactId>
Expand Down Expand Up @@ -233,7 +241,7 @@
<systemPath>${project.basedir}/libraries/spigot/spigot-1.8.jar</systemPath>
<type>jar</type>
</dependency>

</dependencies>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-spigot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ mkdir -p $1/libraries/spigot
echo "Downloading Spigot files..."
versions=$1/scripts/data/versions.txt
while read line; do
if [ -z "$line"]; then
if [ -z "$line" ]; then
continue
fi
echo "Downloading Spigot $line"
Expand Down

0 comments on commit 1c22281

Please sign in to comment.