build scripts: checking .class files bytecode versions for all distributions, not only for .portable.zip

GitOrigin-RevId: c2bd2f6b68b43b2af08dc728ade25e8001348f6f
This commit is contained in:
Dmitriy.Panov
2022-11-23 17:14:30 +01:00
committed by intellij-monorepo-bot
parent ac7f5318d7
commit 119e51bfac
2 changed files with 5 additions and 7 deletions

View File

@@ -165,8 +165,8 @@ abstract class ProductProperties() {
getBaseArtifactName(applicationInfo, buildNumber) + ".portable.zip"
/**
* A config map for [org.jetbrains.intellij.build.impl.ClassVersionChecker],
* when .class file version verification inside [buildCrossPlatformDistribution] is needed.
* A config map for [org.jetbrains.intellij.build.impl.ClassFileChecker],
* when .class file version verification is needed.
*/
var versionCheckerConfig: PersistentMap<String, String> = persistentMapOf()

View File

@@ -271,6 +271,7 @@ private suspend fun layoutShared(context: BuildContext) {
context.productProperties.copyAdditionalFiles(context, context.paths.getDistAll())
}
}
checkClassFiles(context.paths.distAllDir, context)
}
private fun findBrandingResource(relativePath: String, context: BuildContext): Path {
@@ -947,7 +948,7 @@ fun buildUpdaterJar(context: BuildContext, artifactName: String = "updater.jar")
context.notifyArtifactBuilt(updaterJar)
}
private suspend fun buildCrossPlatformZip(distResults: List<DistributionForOsTaskResult>, context: BuildContext): Path {
private fun buildCrossPlatformZip(distResults: List<DistributionForOsTaskResult>, context: BuildContext): Path {
val executableName = context.productProperties.baseFileName
val productJson = generateMultiPlatformProductJson(
@@ -1003,10 +1004,7 @@ private suspend fun buildCrossPlatformZip(distResults: List<DistributionForOsTas
compress = context.options.compressZipFiles,
)
coroutineScope {
launch { checkInArchive(archiveFile = targetFile, pathInArchive = "", context = context) }
launch { checkClassFiles(targetFile = targetFile, context = context) }
}
checkInArchive(archiveFile = targetFile, pathInArchive = "", context = context)
context.notifyArtifactBuilt(targetFile)
return targetFile
}