Skip to content

Commit

Permalink
update buildscript
Browse files Browse the repository at this point in the history
  • Loading branch information
ryderbelserion committed Sep 3, 2024
1 parent a787440 commit d1260b7
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 84 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
plugins {
alias(libs.plugins.paperweight)
alias(libs.plugins.shadowJar)
alias(libs.plugins.runPaper)
alias(libs.plugins.minotaur)
alias(libs.plugins.hangar)
alias(libs.plugins.shadow)

`paper-plugin`
}
Expand Down
8 changes: 0 additions & 8 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
import com.ryderbelserion.feather.feather

plugins {
id("com.ryderbelserion.feather-logic") version "0.0.1"

`kotlin-dsl`
}

dependencies {
feather("0.0.4")
}
16 changes: 0 additions & 16 deletions buildSrc/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,6 @@ rootProject.name = "buildSrc"

dependencyResolutionManagement {
repositories {
maven("https://repo.crazycrew.us/releases")

gradlePluginPortal()

mavenCentral()
}
}

pluginManagement {
repositories {
maven("https://repo.crazycrew.us/releases")

gradlePluginPortal()
}
}

plugins {
id("com.ryderbelserion.feather-settings")
}
10 changes: 3 additions & 7 deletions buildSrc/src/main/kotlin/java-plugin.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import com.ryderbelserion.feather.enums.Repository

plugins {
id("com.ryderbelserion.feather-core")

`maven-publish`

`java-library`
Expand All @@ -13,11 +9,11 @@ repositories {

maven("https://repo.codemc.io/repository/maven-public")

maven("https://repo.oraxen.com/releases")
maven("https://repo.crazycrew.us/releases")

maven(Repository.CrazyCrewSnapshots.url)
maven("https://repo.oraxen.com/releases")

maven(Repository.Jitpack.url)
maven("https://jitpack.io")

flatDir { dirs("libs") }

Expand Down
6 changes: 2 additions & 4 deletions buildSrc/src/main/kotlin/paper-plugin.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import com.ryderbelserion.feather.enums.Repository

plugins {
id("java-plugin")
}

repositories {
maven("https://repo.triumphteam.dev/snapshots")
maven("https://repo.papermc.io/repository/maven-public")

maven(Repository.Paper.url)
maven("https://repo.triumphteam.dev/snapshots")
}
56 changes: 23 additions & 33 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
[plugins]
paperweight = { id = "io.papermc.paperweight.userdev", version.ref = "paperweight" }
hangar = { id = "io.papermc.hangar-publish-plugin", version.ref = "hangar" }
runPaper = { id = "xyz.jpenilla.run-paper", version.ref = "runPaper" }
minotaur = { id = "com.modrinth.minotaur", version.ref = "minotaur" }
shadow = { id = "com.gradleup.shadow", version.ref = "shadow" }

[versions]
# Minecraft
# Paper API
paper = "1.21.1-R0.1-SNAPSHOT"
minecraft = "1.21.1"
velocity = "3.3.0-SNAPSHOT"

# Gradle Plugins
paperweight = "1.7.2"
runPaper = "2.3.0"
minotaur = "2.+"
hangar = "0.1.2"
shadow = "8.3.0"

# Plugins
itemsadder = "3.6.3-beta-14"
Expand All @@ -14,60 +28,36 @@ vault = "1.7.1"

# Libraries
triumph-cmd = "2.0.0-ALPHA-10"
tirumph-gui = "3.1.7"
jetbrains = "24.1.0"
kyori = "4.17.0"
adventure = "4.17.0"
vital = "2.7.4"

# Paper
paperweight = "1.7.2"
runPaper = "2.3.0"
hangar = "0.1.2"

# Shadow
shadowJar = "8.3.0"

# Modrinth
minotaur = "2.+"

[plugins]
paperweight = { id = "io.papermc.paperweight.userdev", version.ref = "paperweight" }
hangar = { id = "io.papermc.hangar-publish-plugin", version.ref = "hangar" }
shadowJar = { id = "com.gradleup.shadow", version.ref = "shadowJar" }
runPaper = { id = "xyz.jpenilla.run-paper", version.ref = "runPaper" }
minotaur = { id = "com.modrinth.minotaur", version.ref = "minotaur" }

[libraries]
# Servers
minecraft = { module = "com.mojang:minecraft", version.ref = "minecraft" }
velocity = { module = "com.velocitypowered:velocity-api", version.ref = "velocity" }
paper = { module = "io.papermc.paper:paper-api", version.ref = "paper" }

# Paper
kyori = { module = "net.kyori:adventure-api", version.ref = "kyori" }
# Kyori
kyori-logger = { module = "net.kyori:adventure-text-logger-slf4j", version.ref = "adventure" }
kyori-text = { module = "net.kyori:adventure-text-minimessage", version.ref = "adventure" }
kyori-api = { module = "net.kyori:adventure-api", version.ref = "adventure" }

# Plugins
# Bukkit Plugins
decent-holograms = { module = "com.github.decentsoftware-eu:decentholograms", version.ref = "decentholograms" }
fancy-holograms = { module = "de.oliver:FancyHolograms", version.ref = "fancyholograms" }

headdatabaseapi = { module = "com.arcaniax:HeadDatabase-API", version.ref = "headdatabaseapi" }
placeholderapi = { module = "me.clip:placeholderapi", version.ref = "placeholderapi" }

vault = { module = "com.github.MilkBowl:VaultAPI", version.ref = "vault" }

itemsadder = { module = "com.github.LoneDev6:api-itemsadder", version.ref = "itemsadder" }
oraxen = { module = "io.th0rgal:oraxen", version.ref = "oraxen" }

# Libraries
triumph-cmds = { module = "dev.triumphteam:triumph-cmd-bukkit", version.ref = "triumph-cmd" }
triumph-gui = { module = "dev.triumphteam:triumph-gui", version.ref = "tirumph-gui" }

# Common
vital-common = { module = "com.ryderbelserion.vital:common", version.ref = "vital" }
vital-paper = { module = "com.ryderbelserion.vital:paper", version.ref = "vital" }

jetbrains = { module = "org.jetbrains:annotations", version.ref = "jetbrains" }

[bundles]
holograms = ["decent-holograms", "fancy-holograms"]
triumph = ["triumph-cmds", "triumph-gui"]
items = ["itemsadder", "oraxen"]
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 4 additions & 1 deletion gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
#

##############################################################################
#
Expand Down Expand Up @@ -84,7 +86,8 @@ done
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
' "$PWD" ) || exit

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
Expand Down
2 changes: 2 additions & 0 deletions gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@rem SPDX-License-Identifier: Apache-2.0
@rem

@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
Expand Down
14 changes: 0 additions & 14 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
rootProject.name = "CrazyCrates"

pluginManagement {
repositories {
maven("https://repo.crazycrew.us/releases")

gradlePluginPortal()
}
}

plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"

id("com.ryderbelserion.feather-settings") version "0.0.4"
}

include("api")

0 comments on commit d1260b7

Please sign in to comment.