From ad198c0cbae00a4da204cd491d47ec854525e6b7 Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Fri, 22 Nov 2024 06:05:09 -0800 Subject: [PATCH] guard --- libs/entitlement/build.gradle | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/entitlement/build.gradle b/libs/entitlement/build.gradle index 56c273ed841be..e3639959811e7 100644 --- a/libs/entitlement/build.gradle +++ b/libs/entitlement/build.gradle @@ -27,7 +27,10 @@ dependencies { exclude group: 'org.elasticsearch', module: 'entitlement' } - main23CompileOnly project(path: ':libs:entitlement:bridge', configuration: 'java23') + // guarding for idea integration + if (sourceSets.findByName("main23")) { + main23CompileOnly project(path: ':libs:entitlement:bridge', configuration: 'java23') + } } tasks.withType(CheckForbiddenApisTask).configureEach {