Change project name to Nugget

This commit is contained in:
zontreck 2024-10-15 02:31:08 -07:00
parent 91fac7484b
commit ecb210d3ef
149 changed files with 13 additions and 13 deletions

View file

@ -35,7 +35,7 @@ fun ShadowJar.configureStandard() {
val sourcesJar by tasks.existing(AbstractArchiveTask::class) { val sourcesJar by tasks.existing(AbstractArchiveTask::class) {
from( from(
zipTree(project(":paperweight-lib").tasks zipTree(project(":nugget-lib").tasks
.named("sourcesJar", AbstractArchiveTask::class) .named("sourcesJar", AbstractArchiveTask::class)
.flatMap { it.archiveFile }) .flatMap { it.archiveFile })
) { ) {
@ -43,14 +43,14 @@ val sourcesJar by tasks.existing(AbstractArchiveTask::class) {
} }
} }
val prefix = project.name.substringAfter("paperweight-") val prefix = project.name.substringAfter("nugget-")
gradlePlugin { gradlePlugin {
website.set("https://github.com/PaperMC/paperweight") website.set("https://git.zontreck.com/ObsidianMC/nugget")
vcsUrl.set("https://github.com/PaperMC/paperweight") vcsUrl.set("https://git.zontreck.com/ObsidianMC/nugget")
plugins.create("paperweight-$prefix") { plugins.create("nugget-$prefix") {
id = "io.papermc.paperweight." + prefix id = "io.papermc.paperweight." + prefix
displayName = "paperweight $prefix" displayName = "nugget $prefix"
tags.set(listOf("paper", "minecraft")) tags.set(listOf("paper", "minecraft"))
} }
} }
@ -109,11 +109,11 @@ publishing {
} }
fun MavenPom.pomConfig() { fun MavenPom.pomConfig() {
val repoPath = "PaperMC/paperweight" val repoPath = "ObsidianMC/nugget"
val repoUrl = "https://github.com/$repoPath" val repoUrl = "https://git.zontreck.com/$repoPath"
name.set("paperweight") name.set("nugget")
description.set("Gradle plugin for the PaperMC project") description.set("Gradle plugin for the ObsidianMC project")
url.set(repoUrl) url.set(repoUrl)
inceptionYear.set("2020") inceptionYear.set("2020")

View file

@ -49,7 +49,7 @@ class PaperweightCore : Plugin<Project> {
override fun apply(target: Project) { override fun apply(target: Project) {
checkJavaVersion() checkJavaVersion()
Git.checkForGit() Git.checkForGit()
printId<PaperweightCore>("paperweight-core", target.gradle) printId<PaperweightCore>("nugget-core", target.gradle)
val ext = target.extensions.create(PAPERWEIGHT_EXTENSION, PaperweightCoreExtension::class, target) val ext = target.extensions.create(PAPERWEIGHT_EXTENSION, PaperweightCoreExtension::class, target)

Some files were not shown because too many files have changed in this diff Show more