Skip to content

Commit

Permalink
Fix broken release (that cannot be handled by sbt-matrix apparently) …
Browse files Browse the repository at this point in the history
…by extracting testcases to a separate library
  • Loading branch information
MateuszKubuszok committed Sep 24, 2022
1 parent 863efdc commit 37c1660
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 210 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Pipez

[![Pipez JVM](https://index.scala-lang.org/mateuszkubuszok/pipez/pipez/latest-by-scala-version.svg?platform=jvm)](https://search.maven.org/artifact/com.kubuszok/pipez_2.13)
[![Pipez JS](https://index.scala-lang.org/mateuszkubuszok/pipez/pipez/latest-by-scala-version.svg?platform=sjs1)](https://search.maven.org/artifact/com.kubuszok/pipez_2.13)
[![Pipez Native](https://index.scala-lang.org/mateuszkubuszok/pipez/pipez/latest-by-scala-version.svg?platform=native0.4)](https://search.maven.org/artifact/com.kubuszok/pipez_3)
[![Pipez JS](https://index.scala-lang.org/mateuszkubuszok/pipez/pipez/latest-by-scala-version.svg?platform=sjs1)](https://search.maven.org/artifact/com.kubuszok:pipez_sjs1_2.13)
[![Pipez Native](https://index.scala-lang.org/mateuszkubuszok/pipez/pipez/latest-by-scala-version.svg?platform=native0.4)](https://search.maven.org/artifact/com.kubuszok/pipez_native0.4_3)

[![Scaladoc](https://javadoc.io/badge2/com.kubuszok/pipez_2.13/scaladoc%202.13.svg)](https://javadoc.io/doc/com.kubuszok/pipez_2.13)
[![Scaladoc](https://javadoc.io/badge2/com.kubuszok/pipez_3/scaladoc%203.svg)](https://javadoc.io/doc/com.kubuszok/pipez_3)
Expand Down
31 changes: 6 additions & 25 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
import commandmatrix.extra._
import Settings._

// 2.13 only since apparently my way of doing Java Beans (@BeanProperty) have slightly different behavior in 3.x
val testCases = projectMatrix
.in(file("testcases"))
.allVariations(
List(scala2_13version),
List(VirtualAxis.jvm, VirtualAxis.js, VirtualAxis.native)
)
.settings(name := "testcases")
.settings(commonSettings)
.settings(publishSettings)
.settings(noPublishSettings)
// Scala Native 2.13 seem to generate linking errors so we're disabling it for now

val pipez = projectMatrix
.in(file("pipez"))
Expand All @@ -22,15 +12,10 @@ val pipez = projectMatrix
.enablePlugins(GitVersioning)
.settings(name := "pipez")
.settings(commonSettings: _*)
.settings(publishSettings: _*)
.dependsOn(testCases % "test->compile")
.settings(
excludeDependencies ++= Seq(
ExclusionRule().withName("testcases_3"),
ExclusionRule().withName("testcases_sjs1_3"),
ExclusionRule().withName("testcases_native0.4_3")
)
libraryDependencies += ("com.kubuszok" %%% "pipez-testcases" % "0.1.0").cross(CrossVersion.for3Use2_13) % Test
)
.settings(publishSettings: _*)

val pipezDsl = projectMatrix
.in(file("pipez-dsl"))
Expand All @@ -41,15 +26,11 @@ val pipezDsl = projectMatrix
.enablePlugins(GitVersioning)
.settings(name := "pipez-dsl")
.settings(commonSettings: _*)
.settings(publishSettings: _*)
.dependsOn(testCases % "compile->test", pipez)
.settings(
excludeDependencies ++= Seq(
ExclusionRule().withName("testcases_3"),
ExclusionRule().withName("testcases_sjs1_3"),
ExclusionRule().withName("testcases_native0.4_3")
)
libraryDependencies += ("com.kubuszok" %%% "pipez-testcases" % "0.1.0").cross(CrossVersion.for3Use2_13) % Test
)
.settings(publishSettings: _*)
.dependsOn(pipez)

val root = project
.in(file("."))
Expand Down
183 changes: 0 additions & 183 deletions testcases/src/main/scala/pipez/testcases.scala

This file was deleted.

0 comments on commit 37c1660

Please sign in to comment.