diff --git a/buildSrc/src/main/kotlin/LibrariesCommon.kt b/buildSrc/src/main/kotlin/LibrariesCommon.kt index cc9984f9908..fbb1f971790 100644 --- a/buildSrc/src/main/kotlin/LibrariesCommon.kt +++ b/buildSrc/src/main/kotlin/LibrariesCommon.kt @@ -5,11 +5,11 @@ @file:JvmName("LibrariesCommon") -import gradle.kotlin.dsl.accessors._a448c82b4669f5dc55622c27b71461fb.base import org.gradle.api.JavaVersion import org.gradle.api.Project import org.gradle.api.file.FileCollection import org.gradle.api.java.archives.Manifest +import org.gradle.api.plugins.BasePluginExtension import org.gradle.api.tasks.compile.JavaCompile import org.gradle.kotlin.dsl.* import org.gradle.process.CommandLineArgumentProvider @@ -90,7 +90,7 @@ fun Project.manifestAttributes( ) { manifest.attributes( "Implementation-Vendor" to "JetBrains", - "Implementation-Title" to base.archivesName, + "Implementation-Title" to project.extensions.getByType().archivesName, "Implementation-Version" to project.rootProject.extra["buildNumber"] as String ) diff --git a/buildSrc/src/main/kotlin/common-configuration.gradle.kts b/buildSrc/src/main/kotlin/common-configuration.gradle.kts index e00353cfec6..4db4204eb33 100644 --- a/buildSrc/src/main/kotlin/common-configuration.gradle.kts +++ b/buildSrc/src/main/kotlin/common-configuration.gradle.kts @@ -15,7 +15,7 @@ dependencies { configurations.all { if (isCanBeResolved && !isCanBeConsumed) { allDependencies.configureEach { - if (group == "com.google.code.gson" && name == "gson" && (this as? DeprecatableConfiguration)?.isCanBeDeclaredAgainst == true) { // isCanBeDeclaredAgainst will be a part of the public API since 8.2 https://github.com/gradle/gradle/pull/24823 + if (group == "com.google.code.gson" && name == "gson" && this@all.isCanBeDeclared) { this@constraints.add(this@all.name, "com.google.code.gson:gson") { version { require(gsonVersion) diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml index f2c122f141d..e49a6e795c3 100644 --- a/gradle/verification-metadata.xml +++ b/gradle/verification-metadata.xml @@ -17,6 +17,7 @@ + @@ -7277,6 +7278,12 @@ + + + + + + @@ -7617,6 +7624,12 @@ + + + + + + diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index c1962a79e29..033e24c4cdf 100644 Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 2c3425d49ec..c2447881d45 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,7 +1,8 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionSha256Sum=e111cb9948407e26351227dabce49822fb88c37ee72f1d1582a69c68af2e702f -distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip +distributionSha256Sum=03ec176d388f2aa99defcadc3ac6adf8dd2bce5145a129659537c0874dea5ad1 +distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip networkTimeout=10000 +validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew index aeb74cbb43e..fcb6fca147c 100755 --- a/gradlew +++ b/gradlew @@ -130,10 +130,13 @@ location of your Java installation." fi else JAVACMD=java - which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + if ! command -v java >/dev/null 2>&1 + then + die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. Please set the JAVA_HOME variable in your environment to match the location of your Java installation." + fi fi # Increase the maximum file descriptors if we can. diff --git a/libraries/tools/kotlin-gradle-plugin-idea/src/testFixtures/kotlin/org/jetbrains/kotlin/gradle/idea/testFixtures/tcs/ideaDependencyMatcherBuilders.kt b/libraries/tools/kotlin-gradle-plugin-idea/src/testFixtures/kotlin/org/jetbrains/kotlin/gradle/idea/testFixtures/tcs/ideaDependencyMatcherBuilders.kt index d154a06f51b..bee05023e9d 100644 --- a/libraries/tools/kotlin-gradle-plugin-idea/src/testFixtures/kotlin/org/jetbrains/kotlin/gradle/idea/testFixtures/tcs/ideaDependencyMatcherBuilders.kt +++ b/libraries/tools/kotlin-gradle-plugin-idea/src/testFixtures/kotlin/org/jetbrains/kotlin/gradle/idea/testFixtures/tcs/ideaDependencyMatcherBuilders.kt @@ -25,6 +25,7 @@ fun buildIdeaKotlinDependencyMatchers(notation: Any?): List createProxyInstance(obj: Any): T { +inline fun createProxyInstance(obj: Any): T? { return ProtocolToModelAdapter().adapt(T::class.java, obj) }