You are currently viewing How Do I Change The Naming Format Gradle Produces?

How Do I Change The Naming Format Gradle Produces?

Whenever I build my binary the name that’s outputted is “ColoredEverything-[1.0.0]” but I want the name to be “[1.0.0] ColoredEverything” how would I do that?

My build.gradle.kts is:

import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar plugins { java val kotlinVersion: String by System.getProperties() kotlin("jvm").version(kotlinVersion) id("com.github.johnrengelman.shadow").version("6.0.0") } group = "com.smushytaco" version = "[1.0.0]" repositories { mavenCentral() maven("https://papermc.io/repo/repository/maven-public/") } dependencies { val kotlinVersion: String by System.getProperties() implementation(kotlin("stdlib", kotlinVersion)) //https://papermc.io/javadocs/paper/1.16/overview-summary.html compileOnly("com.destroystokyo.paper", "paper-api", "1.16.1-R0.1-SNAPSHOT") } val autoRelocate by tasks.register<ConfigureShadowRelocation>("configureShadowRelocation", ConfigureShadowRelocation::class) { target = tasks.getByName("shadowJar") as ShadowJar? val packageName = "${project.group}.${project.name.toLowerCase()}" prefix = "$packageName.shaded" } tasks { shadowJar { archiveClassifier.set("") project.configurations.implementation.get().isCanBeResolved = true configurations = listOf(project.configurations.implementation.get()) dependsOn(autoRelocate) } build { dependsOn(shadowJar) } } 

My settings.gradle.kts is:

rootProject.name = "ColoredEverything" 

My gradle.properties is:

kotlin.code.style=official systemProp.kotlinVersion=1.3.72 

submitted by /u/SmushyTaco
[link] [comments]