Skip to content

Commit

Permalink
Merge pull request #73 from flytegg/dev
Browse files Browse the repository at this point in the history
Fix plugin file size, I excluded the wrong package
  • Loading branch information
Dawsson authored Jul 1, 2024
2 parents f0fb729 + cfbc3a7 commit a7457ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/pp.shadow-convention.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ tasks {
archiveFileName.set("PluginPortal-${project.version}.jar")

minimize()
exclude("com/google/gson")
exclude("com/google/common/")
relocate("org.bstats", "gg.flyte.pluginportal.libs.bstats")
}
named("build") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ data class Plugin(
val platforms: MutableMap<MarketplacePlatform, PlatformPlugin>,
) {
val highestPriorityPlatform get() = MarketplacePlatform.entries.find(platforms::containsKey) ?: platforms.keys.first()
val downloadableName get() = name.replace("/", "")
.replace("\\", "")

val downloadableName = name.replace(Regex("[/\\\\]"), "")

fun getFirstPlatform(): PlatformPlugin? = platforms.values.firstOrNull()

Expand Down

0 comments on commit a7457ab

Please sign in to comment.