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 { processResources {
dependsOn copyYarnBuildResults // Skips Yarn build on Jitpack since Jitpack doesn't offer gclib version compatible with Node 20
dependsOn determineAssetModifications // Jitpack build is used mainly for java dependencies.
if (!project.hasProperty("isJitpack")) {
dependsOn copyYarnBuildResults
dependsOn determineAssetModifications
}
dependsOn generateResourceForMySQLDriver dependsOn generateResourceForMySQLDriver
dependsOn generateResourceForSQLiteDriver dependsOn generateResourceForSQLiteDriver
dependsOn generateResourceForIpAddressMatcher dependsOn generateResourceForIpAddressMatcher

View File

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