Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into RD-12432-from-main
Browse files Browse the repository at this point in the history
  • Loading branch information
torcato committed Aug 26, 2024
2 parents 7e113df + b656eb2 commit ddb46ae
Show file tree
Hide file tree
Showing 1,839 changed files with 41,329 additions and 41,735 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ on:
- build.sbt
- project/**
- deps/**
- utils/**
- client/**
- snapi-client/**
- utils-core/**
- utils-sources/**
- compiler/**
- snapi-frontend/**
- parsers/**
- snapi-truffle/**
- python-client/**
- sql-client/**
- snapi-compiler/**
- python-compiler/**
- sql-compiler/**
- .github/workflows/ci.yaml
workflow_dispatch:

Expand Down Expand Up @@ -45,10 +45,11 @@ jobs:
fail-fast: false
matrix:
component:
- utils-sources
- snapi-frontend
- snapi-client
- sql-client
- python-client
- snapi-compiler
- sql-compiler
- python-compiler
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
Expand Down
15 changes: 0 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,6 @@ target/
/.project
*.iml

language/version
extensions/version
utils/version
client/version
snapi-client/version
sql-client/version
snapi-frontend/version
snapi-truffle/version
sql-parser/version
snapi-parser/version
python-client/version

snapi-parser/src/main/java/raw/compiler/rql2/generated
sql-parser/src/main/java/raw/client/sql/generated

**/pom.xml.versionsBackup

version
Expand Down
86 changes: 47 additions & 39 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,17 @@ writeVersionToFile := {

lazy val root = (project in file("."))
.aggregate(
protocol,
utils,
sources,
client,
protocolRaw,
protocolCompiler,
utilsCore,
utilsSources,
compiler,
snapiParser,
snapiFrontend,
snapiTruffle,
snapiClient,
snapiCompiler,
sqlParser,
sqlClient
sqlCompiler
)
.settings(
commonSettings,
Expand All @@ -57,7 +58,7 @@ lazy val root = (project in file("."))
publishLocal / skip := true
)

lazy val utils = (project in file("utils"))
lazy val utilsCore = (project in file("utils-core"))
.settings(
commonSettings,
scalaCompileSettings,
Expand All @@ -77,9 +78,9 @@ lazy val utils = (project in file("utils"))
jacksonDeps
)

lazy val sources = (project in file("sources"))
lazy val utilsSources = (project in file("utils-sources"))
.dependsOn(
utils % "compile->compile;test->test"
utilsCore % "compile->compile;test->test"
)
.settings(
commonSettings,
Expand All @@ -102,7 +103,7 @@ lazy val sources = (project in file("sources"))
)
)

lazy val protocol = (project in file("protocol"))
lazy val protocolRaw = (project in file("protocol-raw"))
.enablePlugins(ProtobufPlugin)
.settings(
commonSettings,
Expand All @@ -113,10 +114,25 @@ lazy val protocol = (project in file("protocol"))
Compile / unmanagedResourceDirectories += (ProtobufConfig / sourceDirectory).value
)

lazy val client = (project in file("client"))
lazy val protocolCompiler = (project in file("protocol-compiler"))
.dependsOn(
utils % "compile->compile;test->test",
protocol % "compile->compile;test->test"
protocolRaw % "compile->compile;test->test;protobuf->protobuf"
)
.enablePlugins(ProtobufPlugin)
.settings(
commonSettings,
commonCompileSettings,
testSettings,
ProtobufConfig / version := "3.25.4",
ProtobufConfig / protobufIncludePaths += (protocolRaw / ProtobufConfig / sourceDirectory).value,
// Include the protobuf files in the JAR
Compile / unmanagedResourceDirectories += (ProtobufConfig / sourceDirectory).value
)

lazy val compiler = (project in file("compiler"))
.dependsOn(
utilsCore % "compile->compile;test->test",
protocolCompiler % "compile->compile;test->test"
)
.settings(
commonSettings,
Expand All @@ -130,27 +146,23 @@ lazy val snapiParser = (project in file("snapi-parser"))
.settings(
commonSettings,
commonCompileSettings,
javaSrcBasePath := s"${baseDirectory.value}/src/main/java",
parserDefinitions := List(
(
s"${javaSrcBasePath.value}/raw/compiler/rql2/generated",
"raw.compiler.rql2.generated",
s"${javaSrcBasePath.value}/raw/snapi/grammar",
s"${(Compile / sourceManaged).value}/java/com/rawlabs/snapi/parser/generated",
"com.rawlabs.snapi.parser.generated",
s"${(Compile / sourceDirectory).value}/java/com/rawlabs/snapi/parser/grammar",
"Snapi"
)
),
Compile / doc := { file("/dev/null") },
compileOrder := CompileOrder.JavaThenScala,
libraryDependencies ++= Seq(
antlr4Runtime
)
libraryDependencies += antlr4Runtime
)

lazy val snapiFrontend = (project in file("snapi-frontend"))
.dependsOn(
utils % "compile->compile;test->test",
client % "compile->compile;test->test",
sources % "compile->compile;test->test",
utilsCore % "compile->compile;test->test",
compiler % "compile->compile;test->test",
utilsSources % "compile->compile;test->test",
snapiParser % "compile->compile;test->test"
)
.settings(
Expand Down Expand Up @@ -184,7 +196,7 @@ val annotationProcessors = Seq(

lazy val snapiTruffle = (project in file("snapi-truffle"))
.dependsOn(
utils % "compile->compile;test->test",
utilsCore % "compile->compile;test->test",
snapiFrontend % "compile->compile;test->test"
)
.enablePlugins(JavaAnnotationProcessorPlugin)
Expand Down Expand Up @@ -245,9 +257,9 @@ lazy val snapiTruffle = (project in file("snapi-truffle"))
publishSigned := (publishSigned dependsOn runJavaAnnotationProcessor).value
)

lazy val snapiClient = (project in file("snapi-client"))
lazy val snapiCompiler = (project in file("snapi-compiler"))
.dependsOn(
client % "compile->compile;test->test",
compiler % "compile->compile;test->test",
snapiFrontend % "compile->compile;test->test",
snapiTruffle % "compile->compile;test->test"
)
Expand All @@ -262,25 +274,21 @@ lazy val sqlParser = (project in file("sql-parser"))
.settings(
commonSettings,
commonCompileSettings,
javaSrcBasePath := s"${baseDirectory.value}/src/main/java",
parserDefinitions := List(
(
s"${javaSrcBasePath.value}/raw/client/sql/generated",
"raw.client.sql.generated",
s"${javaSrcBasePath.value}/raw/psql/grammar",
s"${(Compile / sourceManaged).value}/java/com/rawlabs/sql/parser/generated",
"com.rawlabs.sql.parser.generated",
s"${(Compile / sourceDirectory).value}/java/com/rawlabs/sql/parser/grammar",
"Psql"
)
),
Compile / doc := { file("/dev/null") },
compileOrder := CompileOrder.JavaThenScala,
libraryDependencies ++= Seq(
antlr4Runtime
)
libraryDependencies += antlr4Runtime
)

lazy val sqlClient = (project in file("sql-client"))
lazy val sqlCompiler = (project in file("sql-compiler"))
.dependsOn(
client % "compile->compile;test->test",
compiler % "compile->compile;test->test",
sqlParser % "compile->compile;test->test"
)
.settings(
Expand All @@ -296,9 +304,9 @@ lazy val sqlClient = (project in file("sql-client"))
)
)

lazy val pythonClient = (project in file("python-client"))
lazy val pythonCompiler = (project in file("python-compiler"))
.dependsOn(
client % "compile->compile;test->test"
compiler % "compile->compile;test->test"
)
.settings(
commonSettings,
Expand Down
34 changes: 0 additions & 34 deletions client/src/main/java/module-info.java

This file was deleted.

94 changes: 0 additions & 94 deletions client/src/main/scala/raw/client/api/Errors.scala

This file was deleted.

Loading

0 comments on commit ddb46ae

Please sign in to comment.