Skip to content

Commit

Permalink
#244: Create the Info module
Browse files Browse the repository at this point in the history
* created new module Info
* the new modul added to JaCoco and CI routines
  • Loading branch information
benedeki committed Aug 19, 2024
1 parent 202dab2 commit f8b0d9e
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ on:
types: [ opened, synchronize, reopened ]

jobs:
test-agent-and-model:
name: Test Agent and Model
test-agent-info-and-model:
name: Test Agent, Info and Model
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -39,10 +39,10 @@ jobs:
java-version: "[email protected]"

- name: Build and run unit tests
run: sbt "project model" test doc "project agent_spark3" test doc
run: sbt "project model" test doc "project info" test doc "project agent_spark3" test doc

- name: Build and run integration tests
run: sbt "project model" testIT "project agent_spark3" testIT
run: sbt "project model" testIT "project info" testIT "project agent_spark3" testIT

test-database-and-server:
name: Test Database and Server
Expand Down
15 changes: 15 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,18 @@ lazy val database = (projectMatrix in file("database"))
): _*
)
.addSingleScalaBuild(Setup.serverAndDbScalaVersion, Dependencies.databaseDependencies)

/**
* Module `info` is the library to be plugged into application which wants to easily read the measured data stored in the
* server
*/
lazy val info = (projectMatrix in file("info"))
.disablePlugins(sbtassembly.AssemblyPlugin)
.settings(
Setup.commonSettings ++ Seq(
name := "atum-info",
javacOptions ++= Setup.clientJavacOptions
): _*
)
.addScalaCrossBuild(Setup.clientSupportedScalaVersions, Dependencies.infoDependencies)
.dependsOn(model)
21 changes: 21 additions & 0 deletions info/src/main/scala/za/co/absa/atum/info/FLowInfo.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Copyright 2024 ABSA Group Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package za.co.absa.atum.info

class FLowInfo {

}
21 changes: 21 additions & 0 deletions info/src/main/scala/za/co/absa/atum/info/PartitioningInfo.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Copyright 2024 ABSA Group Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package za.co.absa.atum.info

class PartitioningInfo {

}
6 changes: 6 additions & 0 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,12 @@ object Dependencies {
jsonSerdeDependencies
}

def infoDependencies(scalaVersion: Version): Seq[ModuleID] = {
Seq(
) ++
testDependencies
}

def databaseDependencies: Seq[ModuleID] = {
lazy val scalaTest = "org.scalatest" %% "scalatest" % Versions.scalatest % Test
lazy val balta = "za.co.absa" %% "balta" % Versions.balta % Test
Expand Down

0 comments on commit f8b0d9e

Please sign in to comment.