diff --git a/buildSrc/prepare-deps/build.gradle.kts b/buildSrc/prepare-deps/build.gradle.kts index 066c2840e1a..5f31b2cb861 100644 --- a/buildSrc/prepare-deps/build.gradle.kts +++ b/buildSrc/prepare-deps/build.gradle.kts @@ -1,16 +1,15 @@ @file:Suppress("PropertyName", "HasPlatformType", "UnstableApiUsage") import org.gradle.internal.os.OperatingSystem +import org.jetbrains.kotlin.gradle.tasks.internal.CleanableStore import java.io.Closeable import java.io.OutputStreamWriter import java.net.URI import java.text.SimpleDateFormat -import java.util.* -import javax.xml.stream.XMLOutputFactory - -import org.jetbrains.kotlin.gradle.tasks.internal.CleanableStore import java.time.Duration import java.time.Instant +import java.util.* +import javax.xml.stream.XMLOutputFactory plugins { base @@ -180,6 +179,7 @@ val mergeSources by tasks.creating(Jar::class.java) { dependsOn(sources) isPreserveFileTimestamps = false isReproducibleFileOrder = true + isZip64 = true if (!kotlinBuildProperties.isTeamcityBuild) { from(provider { sources.map(::zipTree) }) } diff --git a/buildSrc/src/main/kotlin/IdeCompatibilityDsl.kt b/buildSrc/src/main/kotlin/IdeCompatibilityDsl.kt index bbdd133a967..2ed89b7b4bd 100644 --- a/buildSrc/src/main/kotlin/IdeCompatibilityDsl.kt +++ b/buildSrc/src/main/kotlin/IdeCompatibilityDsl.kt @@ -26,7 +26,7 @@ fun CompatibilityPredicate.or(other: CompatibilityPredicate): CompatibilityPredi } enum class Platform : CompatibilityPredicate { - P183, P191, P192, P193, P201, P202; + P183, P191, P192, P193, P201, P202, P203; val version: Int = name.drop(1).toInt() @@ -48,6 +48,7 @@ enum class Ide(val platform: Platform) : CompatibilityPredicate { IJ193(Platform.P193), IJ201(Platform.P201), IJ202(Platform.P202), + IJ203(Platform.P203), AS35(Platform.P183), AS36(Platform.P192), diff --git a/compiler/tests-common/build.gradle.kts b/compiler/tests-common/build.gradle.kts index ef847cceced..8849350f322 100644 --- a/compiler/tests-common/build.gradle.kts +++ b/compiler/tests-common/build.gradle.kts @@ -62,9 +62,12 @@ dependencies { ) } } - Platform[202].orHigher { + Platform[202] { testCompile(intellijDep()) { includeJars("intellij-deps-fastutil-8.3.1-1") } } + Platform[203].orHigher { + testCompile(intellijDep()) { includeJars("intellij-deps-fastutil-8.3.1-2") } + } testCompile(intellijDep()) { includeJars( "jps-model", diff --git a/prepare/compiler/build.gradle.kts b/prepare/compiler/build.gradle.kts index ce186c72e60..529c4301cc3 100644 --- a/prepare/compiler/build.gradle.kts +++ b/prepare/compiler/build.gradle.kts @@ -207,8 +207,10 @@ dependencies { fatJarContents(intellijCoreDep()) { includeJars("intellij-core") } fatJarContents(intellijDep()) { includeJars("jna-platform") } - if (Platform.P202.orHigher()) { + if (Platform.P202()) { fatJarContents(intellijDep()) { includeJars("intellij-deps-fastutil-8.3.1-1") } + } else if (Platform.P203.orHigher()) { + fatJarContents(intellijDep()) { includeJars("intellij-deps-fastutil-8.3.1-2") } } if (Platform.P192.orHigher()) {