Skip to content

Commit

Permalink
pack and IT
Browse files Browse the repository at this point in the history
Signed-off-by: Rafael Raposo <[email protected]>
  • Loading branch information
RRap0so committed Aug 6, 2024
1 parent 67d36d9 commit d90af65
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
9 changes: 6 additions & 3 deletions flytekit-examples-scala/project/FlytekitScalaPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@
package org.flyte.flytekitscala

import io.github.classgraph.{ClassGraph, ClassInfo, ClassInfoList, ScanResult}
import sbt.Keys._
import sbt._
import sbt.Keys.*
import sbt.*
import xerial.sbt.pack.PackPlugin
import xerial.sbt.pack.PackPlugin.autoImport.{packCopyDependenciesTarget, packDir, packLibJars, packResourceDir, packTargetDir}

import scala.collection.JavaConverters.*

Expand All @@ -36,6 +38,7 @@ object FlytekitScalaPlugin extends AutoPlugin {
)

override def trigger: PluginTrigger = noTrigger
override def requires: Plugins = PackPlugin



Expand All @@ -47,7 +50,7 @@ object FlytekitScalaPlugin extends AutoPlugin {
"org.flyte" %% "flytekit-scala" % flyteVersion.value,
"org.flyte" % "flytekit-testing" % flyteVersion.value % Test
),
// add flyte generated services after compilation as a jar resource
// add flyte generated services after compilation as a jar resource
// note that we first have to remove potentially duplicated META-INF/services
// files to address a failure path like:
// $ sbt clean pack
Expand Down
1 change: 1 addition & 0 deletions flytekit-examples-scala/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
addSbtPlugin("org.xerial.sbt" % "sbt-pack" % "0.20")
3 changes: 3 additions & 0 deletions integration-tests/src/test/java/org/flyte/Fixtures.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
*/
package org.flyte;

import static org.flyte.examples.FlyteEnvironment.STAGING_DOMAIN;

import org.flyte.utils.FlyteSandboxClient;

class Fixtures {
Expand All @@ -24,5 +26,6 @@ class Fixtures {
static {
CLIENT.registerWorkflows("integration-tests/target/lib");
CLIENT.registerWorkflows("flytekit-examples/target/lib");
CLIENT.registerWorkflows("flytekit-examples-scala/target/pack/lib", STAGING_DOMAIN);
}
}

0 comments on commit d90af65

Please sign in to comment.