mirror of
https://github.com/xiaozhou233/OrangeX-Client.git
synced 2026-12-05 13:05:52 +08:00
fix: eliminate build race between cleanTmp and shadowJar
shadowJar tasks now output to their default build/libs directories, and buildInjection copies the jars into out/tmp. Previously cleanTmp (Delete out/tmp) and shadowJar tasks (writing into out/tmp) had no mutual ordering guarantee, which could delete freshly built jars.
This commit is contained in:
1 parent
206187949b
commit
33232a106c
3 files changed
+2
-2
No files matched your search
@@ -16,5 +16,4 @@ dependencies {
|
||||
|
||||
shadowJar {
|
||||
archiveFileName = 'Loader.jar'
|
||||
destinationDirectory = rootProject.layout.projectDirectory.dir('out/tmp')
|
||||
}
|
||||
@@ -17,5 +17,4 @@ dependencies {
|
||||
|
||||
shadowJar {
|
||||
archiveFileName = 'OrangeX.jar'
|
||||
destinationDirectory = rootProject.layout.projectDirectory.dir('out/tmp')
|
||||
}
|
||||
@@ -22,6 +22,8 @@ tasks.register("buildInjection", Copy) {
|
||||
project(':Loader').tasks.named('shadowJar')
|
||||
)
|
||||
|
||||
from(project(':OrangeX').tasks.named('shadowJar').flatMap { it.archiveFile })
|
||||
from(project(':Loader').tasks.named('shadowJar').flatMap { it.archiveFile })
|
||||
from(rootProject.layout.projectDirectory.dir('natives'))
|
||||
from(rootProject.layout.projectDirectory.dir('resources'))
|
||||
into(tmpDir)
|
||||
|
||||
Reference in new issue
Block a user