mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-21 23:51:29 +01:00
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:
parent
3aa8a71501
commit
9ade3fbf01
@ -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
|
||||
|
@ -6,4 +6,4 @@ before_install:
|
||||
- apt-get install -y nodejs
|
||||
install:
|
||||
- cd Plan
|
||||
- ./gradlew shadowJar publishToMavenLocal
|
||||
- ./gradlew -PisJitpack shadowJar publishToMavenLocal
|
||||
|
Loading…
Reference in New Issue
Block a user