Skip yarn build steps on Jitpack

Jitpack doesn't have gclib required for Node 20 which means all builds fail there when yarn build is attempted.

This makes yarn tasks conditional dependency with -PisJitpack flag which skips the problematic section

Affects issues:
- Possibly fixed #3411
This commit is contained in:
Aurora Lahtela 2024-03-09 10:29:44 +02:00
parent 3aa8a71501
commit 9ade3fbf01
2 changed files with 7 additions and 3 deletions

View File

@ -233,8 +233,12 @@ artifacts {
}
processResources {
dependsOn copyYarnBuildResults
dependsOn determineAssetModifications
// Skips Yarn build on Jitpack since Jitpack doesn't offer gclib version compatible with Node 20
// Jitpack build is used mainly for java dependencies.
if (!project.hasProperty("isJitpack")) {
dependsOn copyYarnBuildResults
dependsOn determineAssetModifications
}
dependsOn generateResourceForMySQLDriver
dependsOn generateResourceForSQLiteDriver
dependsOn generateResourceForIpAddressMatcher

View File

@ -6,4 +6,4 @@ before_install:
- apt-get install -y nodejs
install:
- cd Plan
- ./gradlew shadowJar publishToMavenLocal
- ./gradlew -PisJitpack shadowJar publishToMavenLocal