mirror of
https://github.com/WiIIiam278/HuskSync.git
synced 2025-12-19 14:59:21 +00:00
MPDBConverter over jitpack
This commit is contained in:
2
.github/workflows/java_ci.yml
vendored
2
.github/workflows/java_ci.yml
vendored
@@ -26,8 +26,6 @@ jobs:
|
||||
with:
|
||||
java-version: '16'
|
||||
distribution: 'temurin'
|
||||
- name: Install MPDB Converter
|
||||
run: "${GITHUB_WORKSPACE}/.scripts/install-mpdb-converter"
|
||||
- name: Build with Gradle
|
||||
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
|
||||
with:
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "mvn-installing mpdbdataconverter..."
|
||||
curl "-L" "-O" "https://github.com/WiIIiam278/MPDBDataConverter/releases/download/1.0/mpdbdataconverter-1.0.jar"
|
||||
mvn "install:install-file" "-Dfile=mpdbdataconverter-1.0.jar" "-DgroupId=net.william278" "-DartifactId=mpdbdataconverter" "-Dversion=1.0" "-Dpackaging=jar" "-DgeneratePom=true" "-e"
|
||||
rm "mpdbdataconverter-1.0.jar"
|
||||
@@ -26,10 +26,7 @@
|
||||
4. Start every server again and synchronistaion will begin.
|
||||
|
||||
## Building
|
||||
To build HuskSync, you'll first need to get the [MPDBConverter](https://github.com/WiIIiam278/MPDBDataConverter) library, by downloading and running `mvn install-file` to publish it to your local maven repository.
|
||||
|
||||
Then simply run the following in the root of the repository:
|
||||
|
||||
To build HuskSync, simply run the following in the root of the repository:
|
||||
```
|
||||
./gradlew clean build
|
||||
```
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
dependencies {
|
||||
implementation project(path: ':common')
|
||||
implementation 'org.bstats:bstats-bukkit:3.0.0'
|
||||
implementation 'net.william278:mpdbdataconverter:1.0'
|
||||
implementation 'net.william278:mpdbdataconverter:1.0.1'
|
||||
implementation 'net.william278:hsldataconverter:1.0'
|
||||
|
||||
compileOnly 'redis.clients:jedis:4.2.3'
|
||||
|
||||
@@ -6,11 +6,7 @@ before_install:
|
||||
- 'chmod +x gradlew'
|
||||
- 'chmod +x ./.scripts/ensure-java-16'
|
||||
- 'bash ./.scripts/ensure-java-16 install'
|
||||
- 'bash ./.scripts/install-mpdb-converter'
|
||||
install:
|
||||
- 'if ! ./.scripts/ensure-java-16 use; then source ~/.sdkman/bin/sdkman-init.sh; fi'
|
||||
- 'java -version'
|
||||
- './gradlew publishToMavenLocal'
|
||||
- 'rm -rf ~/.m2/repository/net/william278/mpdbdataconverter'
|
||||
- 'mkdir -p ~/.m2/repository/net/william278/mpdbdataconverter/1.0/'
|
||||
- 'find ~/.m2/repository/net/william278/husksync/ -type f -print0 | xargs -0 mv -t ~/.m2/repository/net/william278/mpdbdataconverter/1.0/'
|
||||
- './gradlew publishToMavenLocal'
|
||||
Reference in New Issue
Block a user