Skip to content

Commit

Permalink
Added Dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
PeachesMLG committed Jan 31, 2024
1 parent a4e1a5d commit 36045a3
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 139 deletions.
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# These are supported funding model platforms

patreon: Peaches_MLG
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "gradle"
directory: "/"
schedule:
interval: "daily"
target-branch: "master"
29 changes: 29 additions & 0 deletions .github/workflows/dependabot-approve.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Dependabot approve & merge
on: pull_request_target

permissions:
pull-requests: write
contents: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1.1.1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

- name: Approve a PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
10 changes: 1 addition & 9 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ repositories {
dependencies {
// Dependencies that we want to shade in
implementation("org.jetbrains:annotations:22.0.0")
implementation("com.iridium:IridiumCore:1.5.3")
implementation("com.iridium:IridiumCore:1.8.6")
implementation("org.bstats:bstats-bukkit:3.0.0")
implementation("com.j256.ormlite:ormlite-core:6.1")
implementation("com.j256.ormlite:ormlite-jdbc:6.1")
Expand All @@ -33,14 +33,6 @@ dependencies {
// Other dependencies that are not required or already available at runtime
compileOnly("org.projectlombok:lombok:1.18.22")
compileOnly("org.spigotmc:spigot-api:1.18-R0.1-SNAPSHOT")
compileOnly("net.prosavage:FactionsX:1.2")
compileOnly("com.massivecraft.massivesuper:MassiveSuper:2.14.0")
compileOnly("com.massivecraft.massivesuper:Factions:2.14.0")
compileOnly("com.massivecraft:Factions:1.6.9.5-U0.6.8") {
exclude("com.darkblade12")
exclude("org.kitteh")
}
compileOnly("com.github.TownyAdvanced:Towny:0.96.7.0")

// Enable lombok annotation processing
annotationProcessor("org.projectlombok:lombok:1.18.20")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,6 @@ public void registerListeners() {
}

public Support getSupport() {
if (Bukkit.getPluginManager().isPluginEnabled("FactionsX")) return new FactionsX();
if (Bukkit.getPluginManager().isPluginEnabled("Factions")) {
if (Bukkit.getServer().getPluginManager().getPlugin("Factions").getDescription().getAuthors().contains("drtshock")) {
return new FactionsUUID();
} else {
return new Factions();
}
}
return new Default();
}

Expand Down
32 changes: 0 additions & 32 deletions src/main/java/com/iridium/chunkbusters/support/Factions.java

This file was deleted.

32 changes: 0 additions & 32 deletions src/main/java/com/iridium/chunkbusters/support/FactionsUUID.java

This file was deleted.

26 changes: 0 additions & 26 deletions src/main/java/com/iridium/chunkbusters/support/FactionsX.java

This file was deleted.

32 changes: 0 additions & 32 deletions src/main/java/com/iridium/chunkbusters/support/Towny.java

This file was deleted.

0 comments on commit 36045a3

Please sign in to comment.