@Suppress("DSL_SCOPE_VIOLATION") plugins { id("crazyauctions.paper-plugin") alias(settings.plugins.minotaur) alias(settings.plugins.run.paper) } repositories { /** * PAPI Team */ maven("https://repo.extendedclip.com/content/repositories/placeholderapi/") exclusiveContent { forRepository { maven("https://repo.crazycrew.us/libraries") } filter { includeGroup("net.dehya.ruby") } } } dependencies { //api(project(":crazyauctions-core")) compileOnly(libs.papermc) implementation(libs.ruby.paper) implementation(libs.ruby.api) implementation(libs.triumph.gui) implementation(libs.triumph.cmds) implementation(libs.vault.api) } 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 projectNameLowerCase = projectName.toLowerCase() val repo = if (isBeta) "beta" else "releases" val type = if (isBeta) "beta" else "release" tasks { shadowJar { archiveFileName.set("${projectName}+$finalVersion.jar") listOf( "org.bstats" ).forEach { relocate(it, "$projectGroup.plugin.library.$it") } } runServer { minecraftVersion("1.19.3") } modrinth { token.set(System.getenv("MODRINTH_TOKEN")) projectId.set(projectNameLowerCase) versionName.set("$projectName $finalVersion") versionNumber.set(finalVersion) versionType.set(type) uploadFile.set(shadowJar.get()) autoAddDependsOn.set(true) gameVersions.addAll( listOf( "1.17", "1.17.1", "1.18", "1.18.1", "1.18.2", "1.19", "1.19.1", "1.19.2", "1.19.3" ) ) loaders.addAll(listOf("paper", "purpur")) //
N/A
N/A
N/A
""".trimIndent() ) } processResources { filesMatching("plugin.yml") { expand( "name" to projectName, "group" to projectGroup, "version" to finalVersion, "description" to projectDescription, "website" to "https://modrinth.com/$projectExt/$projectNameLowerCase" ) } } } publishing { publications { create