From 6e2e242d62700fb08f798a892af133d53c1b3484 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nora=20Dimitrijevi=C4=87?= Date: Fri, 26 Apr 2024 15:02:25 +0200 Subject: [PATCH] WIP: add aircompressor as an ad-hoc gradle dependency To be fixed with proper bazelification of the kotlin extractor --- java/kotlin-extractor/build.gradle | 1 + java/kotlin-extractor/build.py | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/java/kotlin-extractor/build.gradle b/java/kotlin-extractor/build.gradle index 57229642a927..f932565bdc13 100644 --- a/java/kotlin-extractor/build.gradle +++ b/java/kotlin-extractor/build.gradle @@ -9,6 +9,7 @@ version '0.0.1' dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib" compileOnly("org.jetbrains.kotlin:kotlin-compiler") + implementation "io.airlift:aircompressor" } repositories { diff --git a/java/kotlin-extractor/build.py b/java/kotlin-extractor/build.py index 61b6a403398f..b67037dadb02 100755 --- a/java/kotlin-extractor/build.py +++ b/java/kotlin-extractor/build.py @@ -206,8 +206,8 @@ def compile(jars, java_jars, dependency_folder, transform_to_embeddable, output, def compile_embeddable(version): - compile(['kotlin-stdlib-' + version, 'kotlin-compiler-embeddable-' + version], - ['kotlin-stdlib-' + version], + compile(['kotlin-stdlib-' + version, 'kotlin-compiler-embeddable-' + version, 'aircompressor-0.26'], + ['kotlin-stdlib-' + version, 'aircompressor-0.26'], kotlin_dependency_folder, transform_to_embeddable, 'codeql-extractor-kotlin-embeddable-%s.jar' % (version), @@ -216,8 +216,8 @@ def compile_embeddable(version): def compile_standalone(version): - compile(['kotlin-stdlib-' + version, 'kotlin-compiler-' + version], - ['kotlin-stdlib-' + version], + compile(['kotlin-stdlib-' + version, 'kotlin-compiler-' + version, 'aircompressor-0.26'], + ['kotlin-stdlib-' + version, 'aircompressor-0.26'], kotlin_dependency_folder, lambda srcs: None, 'codeql-extractor-kotlin-standalone-%s.jar' % (version),