You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@polaris.apache.org by sn...@apache.org on 2026/06/26 18:32:50 UTC

(polaris) branch main updated: Fix Gradle 9.6 deprecation warnings in build scripts (#4908)

This is an automated email from the ASF dual-hosted git repository.

snazy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git


The following commit(s) were added to refs/heads/main by this push:
     new a60d880970 Fix Gradle 9.6 deprecation warnings in build scripts (#4908)
a60d880970 is described below

commit a60d880970c804d7a8d428e99ec3924591de7349
Author: Robert Stupp <sn...@snazy.de>
AuthorDate: Fri Jun 26 20:32:46 2026 +0200

    Fix Gradle 9.6 deprecation warnings in build scripts (#4908)
---
 .../src/main/kotlin/licenses/LicenseFileValidation.kt    |  2 +-
 extensions/auth/opa/build.gradle.kts                     | 16 +++++++++-------
 tools/immutables/build.gradle.kts                        |  2 +-
 3 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/build-logic/src/main/kotlin/licenses/LicenseFileValidation.kt b/build-logic/src/main/kotlin/licenses/LicenseFileValidation.kt
index f9a7731ed1..5f241ae9d2 100644
--- a/build-logic/src/main/kotlin/licenses/LicenseFileValidation.kt
+++ b/build-logic/src/main/kotlin/licenses/LicenseFileValidation.kt
@@ -60,7 +60,7 @@ class LicenseFileValidation : DependencyFilter {
 
     data.allDependencies.forEach { mod ->
       val licenses =
-        (mod.manifests.map { it.license } +
+        (mod.manifests.flatMap { manifest -> manifest.licenses.map { it.name } } +
             mod.licenseFiles.flatMap { it.fileDetails }.map { it.license } +
             mod.poms.flatMap { it.licenses }.map { it.name })
           .distinct()
diff --git a/extensions/auth/opa/build.gradle.kts b/extensions/auth/opa/build.gradle.kts
index 628452725b..037dabbbec 100644
--- a/extensions/auth/opa/build.gradle.kts
+++ b/extensions/auth/opa/build.gradle.kts
@@ -29,16 +29,18 @@ plugins {
 }
 
 val intTestJvmVersion = 21
-val intTestBase by configurations.creating {
-  isCanBeConsumed = false
-  isCanBeResolved = false
-}
+val intTestBase =
+  configurations.create("intTestBase") {
+    isCanBeConsumed = false
+    isCanBeResolved = false
+  }
 val intTestBaseSources = sourceSets.create("intTestBase")
 val jsonSchemaGenerator = sourceSets.create("jsonSchemaGenerator")
-val jsonSchemaGeneratorImplementation by configurations.getting
+val jsonSchemaGeneratorImplementation =
+  configurations.getByName("jsonSchemaGeneratorImplementation")
 val opaStartupAction = sourceSets.create("opaStartupAction")
-val opaStartupActionCompileOnly by configurations.getting
-val opaStartupActionImplementation by configurations.getting
+val opaStartupActionCompileOnly = configurations.getByName("opaStartupActionCompileOnly")
+val opaStartupActionImplementation = configurations.getByName("opaStartupActionImplementation")
 val opaBearerTokenRefreshIntervalProperty =
   "polaris.authorization.opa.auth.bearer.file-based.refresh-interval"
 
diff --git a/tools/immutables/build.gradle.kts b/tools/immutables/build.gradle.kts
index f4a7d5fd89..510563a529 100644
--- a/tools/immutables/build.gradle.kts
+++ b/tools/immutables/build.gradle.kts
@@ -28,5 +28,5 @@ dependencies {
   api(libs.immutables.value.annotations)
 
   processor(libs.immutables.value.processor)
-  processor(project)
+  processor(project(":polaris-immutables"))
 }