Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include Client Patches #13

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add jar type identifier to artifact name.
  • Loading branch information
Leguan16 committed Nov 2, 2024
commit 216e71b98d1da26c6429c4ca8ff9149b99dd77da
Original file line number Diff line number Diff line change
@@ -10,11 +10,12 @@ abstract class ArtifactVersionProvider : ValueSource<String, ArtifactVersionProv
interface BuildIdParameters : ValueSourceParameters {
val repoUrl: Property<String>
val mcVersion: Property<String>
val jarType: Property<MinecraftJarType>
val ci: Property<String>
}

override fun obtain(): String {
return parameters.mcVersion.get() + "+build." + buildVersion()
return "${parameters.mcVersion.get()}-${parameters.jarType.getOrElse(MinecraftJarType.SERVER)}+build.${buildVersion()}"
}

private fun buildVersion(): String {
Original file line number Diff line number Diff line change
@@ -271,6 +271,7 @@ class SculptorVersion : Plugin<Project> {
parameters {
repoUrl.set(REPO_URL)
mcVersion.set(mache.minecraftVersion)
jarType.set(mache.minecraftJarType)
ci.set(target.providers.environmentVariable("CI").orElse("false"))
}
}