28 lines
1.0 KiB
Groovy
28 lines
1.0 KiB
Groovy
plugins {
|
|
id 'base'
|
|
id 'net.fabricmc.fabric-loom' version "${loom_version}" apply false
|
|
}
|
|
|
|
tasks.named('build') { dependsOn(':sanctuary:build', ':demeure:build', ':jei:build', ':sanctuary-test:build') }
|
|
tasks.named('check') { dependsOn(':sanctuary:check', ':demeure:check', ':jei:check', ':sanctuary-test:check', 'verifyPack') }
|
|
|
|
tasks.register('verifyPack', Exec) {
|
|
group = 'verification'
|
|
description = 'Verify pinned pack dependencies, versions and index hashes.'
|
|
commandLine('python3', 'scripts/pack.py', 'check')
|
|
}
|
|
|
|
tasks.register('assemblePack', Exec) {
|
|
group = 'distribution'
|
|
description = 'Assemble a local packwiz pack including the built Sanctuary mod.'
|
|
dependsOn(':sanctuary:build', 'verifyPack')
|
|
commandLine('python3', 'scripts/pack.py', 'assemble')
|
|
}
|
|
|
|
tasks.register('assembleTestPack', Exec) {
|
|
group = 'distribution'
|
|
description = 'Stage the separate flat-world Sanctuary Test profile.'
|
|
dependsOn('assemblePack', ':sanctuary-test:build')
|
|
commandLine('python3', 'scripts/test_pack.py')
|
|
}
|