@Suppress("DSL_SCOPE_VIOLATION") plugins { id("crazyauctions.paper-plugin") alias(settings.plugins.minotaur) } repositories { /** * PAPI Team */ maven("https://repo.extendedclip.com/content/repositories/placeholderapi/") } dependencies { api(project(":crazyauctions-core")) compileOnly(libs.paper) compileOnly(libs.crazycore.paper) compileOnly(libs.triumph.gui) // implementation(libs.triumph.cmds) compileOnly(libs.config.me) compileOnly(libs.vault.api) { exclude("org.bukkit", "bukkit") } } val projectDescription = settings.versions.projectDescription.get() val projectGithub = settings.versions.projectGithub.get() val projectGroup = settings.versions.projectGroup.get() val projectName = settings.versions.projectName.get() val projectExt = settings.versions.projectExtension.get() val isBeta = settings.versions.projectBeta.get().toBoolean() val projectVersion = settings.versions.projectVersion.get() val finalVersion = if (isBeta) "$projectVersion+beta" else projectVersion val type = if (isBeta) "beta" else "release" tasks { shadowJar { archiveFileName.set("${projectName}+${projectDir.name}+$finalVersion.jar") listOf( "org.bstats" ).forEach { relocate(it, "$projectGroup.library.$it") } } modrinth { token.set(System.getenv("MODRINTH_TOKEN")) projectId.set(projectName.lowercase()) versionName.set("$projectName $finalVersion") versionNumber.set(finalVersion) versionType.set(type) uploadFile.set(shadowJar.get()) autoAddDependsOn.set(true) gameVersions.addAll(listOf("1.19, 1.19.1, 1.19.2, 1.19.3")) loaders.addAll(listOf("paper", "purpur")) //

The first release for CrazyAuctions on Modrinth! 🎉🎉🎉🎉🎉


If we want a header. changelog.set( """

Changes:

N/A

Under the hood changes

N/A

Bug Fixes:

N/A

""".trimIndent() ) } processResources { filesMatching("paper-plugin.yml") { expand( "name" to projectName, "group" to projectGroup, "version" to finalVersion, "description" to projectDescription ) } } } publishing { repositories { val repo = if (isBeta) "beta" else "releases" maven("https://repo.crazycrew.us/$repo") { name = "crazycrew" // Used for locally publishing. // credentials(PasswordCredentials::class) credentials { username = System.getenv("REPOSITORY_USERNAME") password = System.getenv("REPOSITORY_PASSWORD") } } } publications { create("maven") { groupId = projectGroup artifactId = "${projectName.lowercase()}-${projectDir.name}" version = finalVersion from(components["java"]) } } }