Skip to content

Commit

Permalink
[BUILD] Add Saros VS Code to gradle files
Browse files Browse the repository at this point in the history
  • Loading branch information
mschaefer88 committed Sep 20, 2020
1 parent 18cd7cb commit 04f1ee7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ tasks {
from(project(":saros.server").tasks.findByName("jar"))
into("build/distribution/server")
}

register("sarosLsp", Copy::class) {
dependsOn(
":saros.core:test",
Expand All @@ -271,6 +272,18 @@ tasks {
from(project(":saros.lsp").tasks.findByName("jar"))
into("build/distribution/lsp")
}

register("sarosVSCode", Copy::class) {
dependsOn(
"sarosLsp",
":saros.vscode:packageExtension"
)
group = "Build"
description = "Builds and tests all modules required by the Saros VS Code Extension"

from("vscode/vsix")
into("build/distribution/vscode")
}

register("sarosIntellij", Copy::class) {
dependsOn(
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
* because the osgi bundle names had to match the project names.
*/
val prefix = "saros."
listOf("core", "eclipse", "intellij", "server", "lsp", "stf", "stf.test").forEach { dir ->
listOf("core", "eclipse", "intellij", "server", "lsp", "vscode", "stf", "stf.test").forEach { dir ->
val projectName = prefix + dir
include(projectName)
project(":$projectName").projectDir = file(dir)
Expand Down

0 comments on commit 04f1ee7

Please sign in to comment.