From 54cf4cb70580e786cdcd4c9823860b691360ca42 Mon Sep 17 00:00:00 2001 From: Kiran Hart Date: Fri, 26 Feb 2021 16:45:50 -0500 Subject: [PATCH] workflow, repo changes --- .github/workflows/maven.yml | 19 +++++++++++++++++++ .gitignore | 3 ++- .mvn/maven.config | 1 + pom.xml | 17 ++++++++++------- settings.xml | 13 +++++++++++++ .../auctionhouse/auction/AuctionItem.java | 5 ----- 6 files changed, 45 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/maven.yml create mode 100644 .mvn/maven.config create mode 100644 settings.xml diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 0000000..27998f6 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,19 @@ +name: Auction House Build + +on: + push: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + + - name: Build with Maven + run: mvn package diff --git a/.gitignore b/.gitignore index 6ecbb5b..64657de 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /target/ -.idea /src/test/ +.idea +AuctionHouse.iml diff --git a/.mvn/maven.config b/.mvn/maven.config new file mode 100644 index 0000000..d023e53 --- /dev/null +++ b/.mvn/maven.config @@ -0,0 +1 @@ +-s settings.xml \ No newline at end of file diff --git a/pom.xml b/pom.xml index b229492..ab49381 100644 --- a/pom.xml +++ b/pom.xml @@ -94,6 +94,10 @@ nms-repo https://repo.codemc.org/repository/nms/ + + github + https://maven.pkg.github.com/kiranhart/* + jitpack.io https://jitpack.io @@ -103,21 +107,20 @@ org.spigotmc spigot - 1.16.3-R0.1-SNAPSHOT + 1.16.5-R0.1-SNAPSHOT provided + + ca.tweetzy + tweetycore + 1.0.0 + com.github.MilkBowl VaultAPI 1.7 provided - - ca.tweetzy - TweetyCore - 1.0.0 - compile - org.projectlombok lombok diff --git a/settings.xml b/settings.xml new file mode 100644 index 0000000..1310910 --- /dev/null +++ b/settings.xml @@ -0,0 +1,13 @@ + + + + + github + kiranhart + f6a7b9b1ad18c0ce4d3765cb776d2bba1e83a746 + + + \ No newline at end of file diff --git a/src/main/java/ca/tweetzy/auctionhouse/auction/AuctionItem.java b/src/main/java/ca/tweetzy/auctionhouse/auction/AuctionItem.java index 35425a6..fad9e47 100644 --- a/src/main/java/ca/tweetzy/auctionhouse/auction/AuctionItem.java +++ b/src/main/java/ca/tweetzy/auctionhouse/auction/AuctionItem.java @@ -2,9 +2,7 @@ package ca.tweetzy.auctionhouse.auction; import ca.tweetzy.auctionhouse.api.AuctionAPI; import ca.tweetzy.auctionhouse.settings.Settings; -import ca.tweetzy.core.utils.PlayerUtils; import ca.tweetzy.core.utils.TextUtils; -import ca.tweetzy.core.utils.items.ItemUtils; import ca.tweetzy.core.utils.nms.NBTEditor; import lombok.Getter; import lombok.Setter; @@ -13,11 +11,8 @@ import org.bukkit.Bukkit; import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.meta.ItemMeta; -import java.math.BigDecimal; -import java.text.NumberFormat; import java.util.ArrayList; import java.util.List; -import java.util.Locale; import java.util.UUID; import java.util.stream.Collectors;