From 5c55c01bf4c23e11f76af52eff9e2d6b57145ce1 Mon Sep 17 00:00:00 2001 From: Christian Banse Date: Wed, 18 Oct 2023 22:40:22 +0200 Subject: [PATCH] Added ruby args --- .github/workflows/build.yml | 2 +- build.gradle.kts | 6 ++++++ .../kotlin/cpg.frontend-dependency-conventions.gradle.kts | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cd6aec2f99d..c45a815d7fa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -137,7 +137,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, 'beta') && !contains(github.ref, 'alpha') run: | export ORG_GRADLE_PROJECT_signingKey=`echo ${{ secrets.GPG_PRIVATE_KEY }} | base64 -d` - ./gradlew --no-daemon -Dorg.gradle.internal.publish.checksums.insecure=true --parallel -Pversion=$VERSION -PenableJavaFrontend=true -PenableCXXFrontend=true -PenableGoFrontend=true -PenablePythonFrontend=true -PenableLLVMFrontend=true -PenableTypeScriptFrontend=true publishToSonatype closeSonatypeStagingRepository + ./gradlew --no-daemon -Dorg.gradle.internal.publish.checksums.insecure=true --parallel -Pversion=$VERSION -PenableJavaFrontend=true -PenableCXXFrontend=true -PenableGoFrontend=true -PenablePythonFrontend=true -PenableLLVMFrontend=true -PenableTypeScriptFrontend=true -PenableRubyFrontend=true publishToSonatype closeSonatypeStagingRepository env: VERSION: ${{ env.version }} ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PASSWORD }} diff --git a/build.gradle.kts b/build.gradle.kts index 83cc1752e55..7d6b04a8b98 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -148,3 +148,9 @@ val enableTypeScriptFrontend: Boolean by extra { enableTypeScriptFrontend.toBoolean() } project.logger.lifecycle("TypeScript frontend is ${if (enableTypeScriptFrontend) "enabled" else "disabled"}") + +val enableRubyFrontend: Boolean by extra { + val enableRubyFrontend: String? by project + enableRubyFrontend.toBoolean() +} +project.logger.lifecycle("Ruby frontend is ${if (enableRubyFrontend) "enabled" else "disabled"}") diff --git a/buildSrc/src/main/kotlin/cpg.frontend-dependency-conventions.gradle.kts b/buildSrc/src/main/kotlin/cpg.frontend-dependency-conventions.gradle.kts index fc5c2914f6e..f889db51924 100644 --- a/buildSrc/src/main/kotlin/cpg.frontend-dependency-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/cpg.frontend-dependency-conventions.gradle.kts @@ -9,6 +9,7 @@ val enableGoFrontend: Boolean by rootProject.extra val enablePythonFrontend: Boolean by rootProject.extra val enableLLVMFrontend: Boolean by rootProject.extra val enableTypeScriptFrontend: Boolean by rootProject.extra +val enableRubyFrontend: Boolean by rootProject.extra dependencies { if (enableJavaFrontend) api(project(":cpg-language-java")) @@ -17,4 +18,5 @@ dependencies { if (enablePythonFrontend) api(project(":cpg-language-python")) if (enableLLVMFrontend) api(project(":cpg-language-llvm")) if (enableTypeScriptFrontend) api(project(":cpg-language-typescript")) + if (enableRubyFrontend) api(project(":cpg-language-ruby")) }