Skip to content

Commit

Permalink
Make it build with leeway
Browse files Browse the repository at this point in the history
  • Loading branch information
mustard-mh committed Dec 2, 2024
1 parent 5ee1fa2 commit 2165d45
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 0 deletions.
26 changes: 26 additions & 0 deletions components/ide/jetbrains/toolbox/BUILD.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
packages:
- name: plugin-stable
type: generic
deps:
- components/supervisor-api/java:lib
- components/public-api/java:lib
srcs:
- "**/*.kt"
- "**/*.kts"
- src/main/resources/*
- gradle.properties
- gradlew
- gradle/*
- build.sh
env:
- JB_QUALIFIER=stable
- SDKMAN_DIR=/home/gitpod/.sdkman
config:
commands:
- - "bash"
- "-c"
- >
echo java=21.0.3.fx-zulu > .sdkmanrc
&& source "$SDKMAN_DIR/bin/sdkman-init.sh"
&& sdk env install
&& ./build.sh
2 changes: 2 additions & 0 deletions components/ide/jetbrains/toolbox/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ val copyPlugin by tasks.creating(Sync::class.java) {
include("extension.json")
include("dependencies.json")
include("icon.svg")
include("icon-colored.svg")
}

into(targetDir)
Expand All @@ -173,6 +174,7 @@ val pluginZip by tasks.creating(Zip::class) {
}
from("src/main/resources") {
include("icon.svg")
include("icon-colored.svg")
rename("icon.svg", "pluginIcon.svg")
}
archiveBaseName.set("$pluginId-$pluginVersion")
Expand Down
12 changes: 12 additions & 0 deletions components/ide/jetbrains/toolbox/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
# Copyright (c) 2024 Gitpod GmbH. All rights reserved.
# Licensed under the GNU Affero General Public License (AGPL).
# See License.AGPL.txt in the project root for license information.

set -e

JB_GP_VERSION=${1:-debug}

./gradlew -PsupervisorApiProjectPath=components-supervisor-api-java--lib/ -PgitpodPublicApiProjectPath=components-public-api-java--lib/ -PenvironmentName="$JB_QUALIFIER" -Dgradle.user.home="/workspace/.gradle-tb-$JB_QUALIFIER" -Dplugin.verifier.home.dir="$HOME/.cache/pluginVerifier-tb-$JB_QUALIFIER" -PgitpodVersion="$JB_GP_VERSION" pluginZip

# unzip ./build/distributions/io.gitpod.toolbox.gateway-0.0.1-dev.zip -d ./build
4 changes: 4 additions & 0 deletions components/ide/jetbrains/toolbox/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2024 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License.AGPL.txt in the project root for license information.

rootProject.name = "gitpod-toolbox-gateway"

include(":supervisor-api")
Expand Down

0 comments on commit 2165d45

Please sign in to comment.