-
Notifications
You must be signed in to change notification settings - Fork 174
Add workflow-operator to micro-services #2994
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
c2d4efd
add operators
bobbai00 85d14ed
pass compilation
bobbai00 aaa7428
fix the tests
bobbai00 52b00a6
fmt
bobbai00 dd3a38f
resolve some comments and move some classes
bobbai00 400a721
move packages
bobbai00 6f95d04
rename packages
bobbai00 33a715c
fmt
bobbai00 8bc1100
make sure external package unchanged
bobbai00 e7d647e
fmt
bobbai00 a620b34
Merge branch 'master' into jiadong-add-operators
Yicong-Huang 25ecb34
Merge branch 'master' into jiadong-add-operators
bobbai00 fcfd479
Merge branch 'master' into jiadong-add-operators
bobbai00 e676a6e
clean up the workflow oeprator config
bobbai00 d008b35
Merge branch 'master' into jiadong-add-operators
bobbai00 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,101 @@ | ||
| import scala.collection.Seq | ||
| ///////////////////////////////////////////////////////////////////////////// | ||
| // Project Settings | ||
| ///////////////////////////////////////////////////////////////////////////// | ||
|
|
||
| name := "workflow-operator" | ||
| organization := "edu.uci.ics" | ||
| version := "0.1.0" | ||
| scalaVersion := "2.13.12" | ||
|
|
||
| enablePlugins(JavaAppPackaging) | ||
|
|
||
| // Enable semanticdb for Scalafix | ||
| ThisBuild / semanticdbEnabled := true | ||
| ThisBuild / semanticdbVersion := scalafixSemanticdb.revision | ||
|
|
||
| // Manage dependency conflicts by always using the latest revision | ||
| ThisBuild / conflictManager := ConflictManager.latestRevision | ||
|
|
||
| // Restrict parallel execution of tests to avoid conflicts | ||
| Global / concurrentRestrictions += Tags.limit(Tags.Test, 1) | ||
|
|
||
|
|
||
| ///////////////////////////////////////////////////////////////////////////// | ||
| // Compiler Options | ||
| ///////////////////////////////////////////////////////////////////////////// | ||
|
|
||
| // Scala compiler options | ||
| Compile / scalacOptions ++= Seq( | ||
| "-Xelide-below", "WARNING", // Turn on optimizations with "WARNING" as the threshold | ||
| "-feature", // Check feature warnings | ||
| "-deprecation", // Check deprecation warnings | ||
| "-Ywarn-unused:imports" // Check for unused imports | ||
| ) | ||
|
|
||
| ///////////////////////////////////////////////////////////////////////////// | ||
| // Test-related Dependencies | ||
| ///////////////////////////////////////////////////////////////////////////// | ||
|
|
||
| libraryDependencies ++= Seq( | ||
| "org.scalamock" %% "scalamock" % "5.2.0" % Test, // ScalaMock | ||
| "org.scalatest" %% "scalatest" % "3.2.15" % Test, // ScalaTest | ||
| "junit" % "junit" % "4.13.2" % Test, // JUnit | ||
| "com.novocode" % "junit-interface" % "0.11" % Test // SBT interface for JUnit | ||
| ) | ||
|
|
||
|
|
||
| ///////////////////////////////////////////////////////////////////////////// | ||
| // Jackson-related Dependencies | ||
| ///////////////////////////////////////////////////////////////////////////// | ||
|
|
||
| val jacksonVersion = "2.15.1" | ||
| libraryDependencies ++= Seq( | ||
| "com.fasterxml.jackson.core" % "jackson-databind" % jacksonVersion, // Jackson Databind | ||
| "com.fasterxml.jackson.core" % "jackson-annotations" % jacksonVersion, // Jackson Annotation | ||
| "com.fasterxml.jackson.module" %% "jackson-module-scala" % jacksonVersion, // Scala Module | ||
| ) | ||
|
|
||
| // Lucene related, used by the keyword-search operators | ||
| val luceneVersion = "8.7.0" | ||
| libraryDependencies ++= Seq( | ||
| "org.apache.lucene" % "lucene-core" % luceneVersion, | ||
| "org.apache.lucene" % "lucene-queryparser" % luceneVersion, | ||
| "org.apache.lucene" % "lucene-queries" % luceneVersion, | ||
| "org.apache.lucene" % "lucene-memory" % luceneVersion | ||
| ) | ||
|
Yicong-Huang marked this conversation as resolved.
|
||
|
|
||
| // kjetland | ||
| libraryDependencies ++= Seq( | ||
| "javax.validation" % "validation-api" % "2.0.1.Final", | ||
| "org.slf4j" % "slf4j-api" % "1.7.26", | ||
| "io.github.classgraph" % "classgraph" % "4.8.157", | ||
| "ch.qos.logback" % "logback-classic" % "1.2.3" % "test", | ||
| "com.github.java-json-tools" % "json-schema-validator" % "2.2.14" % "test", | ||
| "com.fasterxml.jackson.module" % "jackson-module-kotlin" % jacksonVersion % "test", | ||
| "com.fasterxml.jackson.datatype" % "jackson-datatype-jdk8" % jacksonVersion % "test", | ||
| "com.fasterxml.jackson.datatype" % "jackson-datatype-jsr310" % jacksonVersion % "test", | ||
| "joda-time" % "joda-time" % "2.12.5" % "test", | ||
| "com.fasterxml.jackson.datatype" % "jackson-datatype-joda" % jacksonVersion % "test", | ||
| "com.fasterxml.jackson.module" % "jackson-module-jsonSchema" % jacksonVersion, | ||
| "com.fasterxml.jackson.module" % "jackson-module-scala_2.13" % jacksonVersion, | ||
| // https://mvnrepository.com/artifact/com.fasterxml.jackson.module/jackson-module-no-ctor-deser | ||
| "com.fasterxml.jackson.module" % "jackson-module-no-ctor-deser" % jacksonVersion, | ||
| ) | ||
|
|
||
| ///////////////////////////////////////////////////////////////////////////// | ||
| // Additional Dependencies | ||
| ///////////////////////////////////////////////////////////////////////////// | ||
|
|
||
| libraryDependencies ++= Seq( | ||
| "com.thesamet.scalapb" %% "scalapb-json4s" % "0.12.0", | ||
| "com.github.tototoshi" %% "scala-csv" % "1.3.10", // csv parser | ||
| "com.konghq" % "unirest-java" % "3.14.2", | ||
| "commons-io" % "commons-io" % "2.15.1", | ||
| "org.apache.commons" % "commons-compress" % "1.23.0", | ||
| "org.tukaani" % "xz" % "1.9", | ||
| "com.univocity" % "univocity-parsers" % "2.9.1", | ||
| "edu.stanford.nlp" % "stanford-corenlp" % "4.5.4", | ||
| "edu.stanford.nlp" % "stanford-corenlp" % "4.5.4" classifier "models", | ||
| "io.github.redouane59.twitter" % "twittered" % "2.21", | ||
| ) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| sbt.version=1.9.7 |
14 changes: 14 additions & 0 deletions
14
...ces/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/JsonSchemaDraft.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| package com.kjetland.jackson.jsonSchema; | ||
|
|
||
| public enum JsonSchemaDraft { | ||
| DRAFT_04("http://json-schema.org/draft-04/schema#"), | ||
| DRAFT_06("http://json-schema.org/draft-06/schema#"), | ||
| DRAFT_07("http://json-schema.org/draft-07/schema#"), | ||
| DRAFT_2019_09("http://json-schema.org/draft/2019-09/schema#"); | ||
|
|
||
| final String url; | ||
|
|
||
| JsonSchemaDraft(String url) { | ||
| this.url = url; | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.