mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2025-02-08 00:21:41 +01:00
[ci-skip] use rootProject.name
This commit is contained in:
parent
20ca5b636a
commit
abbe1e0be8
@ -16,9 +16,9 @@ webhook {
|
||||
|
||||
this.username("Ryder Belserion")
|
||||
|
||||
//this.content("New version of ${project.name} is ready! <@929463441159254066>")
|
||||
//this.content("New version of ${rootProject.name} is ready! <@929463441159254066>")
|
||||
|
||||
this.content("New version of ${project.name} is ready!")
|
||||
this.content("New version of ${rootProject.name} is ready!")
|
||||
|
||||
this.embeds {
|
||||
this.embed {
|
||||
@ -27,7 +27,7 @@ webhook {
|
||||
this.fields {
|
||||
this.field(
|
||||
"Version ${project.version}",
|
||||
"Download Link: https://modrinth.com/plugin/${project.name.toLowerCase()}/version/${project.version}"
|
||||
"Download Link: https://modrinth.com/plugin/${rootProject.name.toLowerCase()}/version/${project.version}"
|
||||
)
|
||||
|
||||
if (isBeta) {
|
||||
@ -45,8 +45,8 @@ webhook {
|
||||
}
|
||||
|
||||
this.author(
|
||||
project.name,
|
||||
"https://modrinth.com/plugin/${project.name.toLowerCase()}/versions",
|
||||
rootProject.name,
|
||||
"https://modrinth.com/plugin/${rootProject.name.toLowerCase()}/versions",
|
||||
"https://cdn-raw.modrinth.com/data/r3BBZyf3/4522ef0f83143c4803473d356160a3e877c2499c.png"
|
||||
)
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ fun getPluginVersionType(): String {
|
||||
|
||||
tasks {
|
||||
shadowJar {
|
||||
archiveFileName.set("${project.name}-${getPluginVersion()}.jar")
|
||||
archiveFileName.set("${rootProject.name}-${getPluginVersion()}.jar")
|
||||
|
||||
listOf(
|
||||
"org.bstats",
|
||||
@ -32,9 +32,9 @@ tasks {
|
||||
|
||||
modrinth {
|
||||
token.set(System.getenv("MODRINTH_TOKEN"))
|
||||
projectId.set(project.name.toLowerCase())
|
||||
projectId.set(rootProject.name.toLowerCase())
|
||||
|
||||
versionName.set("${project.name} ${getPluginVersion()}")
|
||||
versionName.set("${rootProject.name} ${getPluginVersion()}")
|
||||
versionNumber.set(getPluginVersion())
|
||||
|
||||
versionType.set(getPluginVersionType())
|
||||
@ -58,11 +58,11 @@ tasks {
|
||||
processResources {
|
||||
filesMatching("plugin.yml") {
|
||||
expand(
|
||||
"name" to project.name,
|
||||
"name" to rootProject.name,
|
||||
"group" to project.group,
|
||||
"version" to getPluginVersion(),
|
||||
"description" to project.description,
|
||||
"website" to "https://modrinth.com/plugin/${project.name.toLowerCase()}"
|
||||
"website" to "https://modrinth.com/plugin/${rootProject.name.toLowerCase()}"
|
||||
)
|
||||
}
|
||||
}
|
||||
@ -85,7 +85,7 @@ publishing {
|
||||
publications {
|
||||
create<MavenPublication>("maven") {
|
||||
groupId = "${project.group}"
|
||||
artifactId = project.name.toLowerCase()
|
||||
artifactId = rootProject.name.toLowerCase()
|
||||
version = getPluginVersion()
|
||||
from(components["java"])
|
||||
}
|
||||
|
@ -1,3 +1,5 @@
|
||||
rootProject.name = extra["name"] as String
|
||||
|
||||
dependencyResolutionManagement {
|
||||
includeBuild("build-logic")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user