Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Commit

Permalink
Library for baseline calculation (#104)
Browse files Browse the repository at this point in the history
* init commit

* minor fixes

* minor fix

* minor fix

* minor fix

Co-authored-by: Sarthak Singhal <[email protected]>
  • Loading branch information
sarthak77 and Sarthak Singhal authored Sep 20, 2021
1 parent e770071 commit b84981c
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 2 deletions.
21 changes: 21 additions & 0 deletions gateway-service-baseline-lib/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
plugins {
`java-library`
jacoco
id("org.hypertrace.jacoco-report-plugin")
id("org.hypertrace.publish-plugin")
}

tasks.test {
useJUnitPlatform()
}

dependencies {
api(project(":gateway-service-api"))

// Common utilities
implementation("org.apache.commons:commons-lang3:3.10")
implementation("org.apache.commons:commons-math:2.2")
implementation("com.google.protobuf:protobuf-java-util:3.17.3")

testImplementation("org.junit.jupiter:junit-jupiter:5.7.0")
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.hypertrace.gateway.service.baseline;
package org.hypertrace.gateway.service.baseline.lib;

import com.google.common.annotations.VisibleForTesting;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.hypertrace.gateway.service.baseline;
package org.hypertrace.gateway.service.baseline.lib;

import java.util.ArrayList;
import java.util.List;
Expand Down
1 change: 1 addition & 0 deletions gateway-service-impl/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ tasks.test {

dependencies {
api(project(":gateway-service-api"))
api(project(":gateway-service-baseline-lib"))

implementation("org.hypertrace.core.query.service:query-service-client:0.6.2")
implementation("org.hypertrace.core.attribute.service:attribute-service-client:0.12.5")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import org.hypertrace.core.attribute.service.v1.AttributeMetadata;
import org.hypertrace.core.query.service.api.QueryRequest;
import org.hypertrace.core.query.service.api.ResultSetChunk;
import org.hypertrace.gateway.service.baseline.lib.BaselineCalculator;
import org.hypertrace.gateway.service.common.AttributeMetadataProvider;
import org.hypertrace.gateway.service.common.util.AttributeMetadataUtil;
import org.hypertrace.gateway.service.common.util.QueryExpressionUtil;
Expand Down
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ plugins {
include(":gateway-service-api")
include(":gateway-service-impl")
include(":gateway-service")
include(":gateway-service-baseline-lib")

0 comments on commit b84981c

Please sign in to comment.