mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-08-28 00:15:56 +02:00
make configuration cache work
This commit is contained in:
parent
f32609bc68
commit
1382c7a0fd
2 changed files with 7 additions and 3 deletions
|
|
@ -178,7 +178,10 @@ tasks {
|
|||
|
||||
fun ShadowJar.configureBaseShadow(suffix: String, libraries: Array<String>) {
|
||||
val processedSuffix = if(suffix.isEmpty()) "" else "-$suffix"
|
||||
val name = "${rootProject.name}-${effectiveVersion}${processedSuffix}.jar"
|
||||
val version = effectiveVersion
|
||||
val name = "${rootProject.name}-${version}${processedSuffix}.jar"
|
||||
val librariesExpendTo = libraries.joinToString(transform = { "\"$it\"" })
|
||||
|
||||
archiveFileName.set(name)
|
||||
|
||||
// Shadow necessary dependency
|
||||
|
|
@ -187,8 +190,8 @@ tasks {
|
|||
|
||||
filesMatching("plugin.yml") {
|
||||
expand(
|
||||
"version" to effectiveVersion + processedSuffix,
|
||||
"libraries" to libraries.joinToString(transform = { "\"$it\"" }),
|
||||
"version" to version + processedSuffix,
|
||||
"libraries" to librariesExpendTo,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
kotlin.code.style=official
|
||||
org.gradle.configuration-cache=true
|
||||
|
||||
# Signing
|
||||
signing.secretKeyRingFile=~/.gnupg/secring.gpg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue