Skip to content

Commit

Permalink
WIP: add aircompressor as an ad-hoc gradle dependency
Browse files Browse the repository at this point in the history
To be fixed with proper bazelification of the kotlin extractor
  • Loading branch information
d10c committed Apr 28, 2024
1 parent d774e6b commit 6e2e242
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions java/kotlin-extractor/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
8 changes: 4 additions & 4 deletions java/kotlin-extractor/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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),
Expand Down

0 comments on commit 6e2e242

Please sign in to comment.