diff --git a/README.md b/README.md index 04d2fe3..3900b8c 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ Basically, it does only provide only the two calls `getState` and `executeAction * `sbt doc` to generate the scaladoc API documentation. * `sbt scalafmt` to format the Scala source files with scalafmt. * `sbt release with-defaults` to create a release with a new version number which is published to a repository. +* `sbt publish` publishes the artifact in ReTest's Nexus. Requires a `$HOME/.sbt/.credentials` file. ## NFA for the Representation of Tests A nondeterministic finite automaton represents the states of the GUI during the test. diff --git a/build.sbt b/build.sbt index d1f7143..0895e7a 100644 --- a/build.sbt +++ b/build.sbt @@ -4,6 +4,9 @@ organization := "de.retest" scalaVersion := "2.12.7" +// Disable using the Scala version in output paths and artifacts: +crossPaths := false + // Fixes serialization issues: fork := true @@ -35,7 +38,7 @@ mainClass in (Compile, packageBin) := Some("de.retest.guistatemachine.rest.WebSe // format the code scalafmtOnCompile := true -// https://nexus.retest.org/repository/all/ +// ReTest's Nexus: publishTo := { val nexus = "https://nexus.retest.org/repository/" if (isSnapshot.value) @@ -44,14 +47,4 @@ publishTo := { Some("releases" at nexus + "retest") } -/* -publishTo := { - val nexus = "https://oss.sonatype.org/" - if (isSnapshot.value) - Some("snapshots" at nexus + "content/repositories/snapshots") - else - Some("releases" at nexus + "service/local/staging/deploy/maven2") -} - */ - credentials += Credentials(Path.userHome / ".sbt" / ".credentials") diff --git a/src/main/scala/de/retest/guistatemachine/api/Action.scala b/src/main/scala/de/retest/guistatemachine/api/Action.scala index b2c7990..20604fd 100644 --- a/src/main/scala/de/retest/guistatemachine/api/Action.scala +++ b/src/main/scala/de/retest/guistatemachine/api/Action.scala @@ -5,6 +5,7 @@ package de.retest.guistatemachine.api * TODO #6 Use an abstract representation of actions from retest-model. The legacy code used `ActionIdentifyingAttributes`. * Selenium action types like `org.openqa.selenium.interactions.Action` should not be used since we require an `equals` * and `hashCode` method here to use the action as a key for transitions. + * See [[https://bitbucket.org/retest/surili/src/surili-driver/surili-model/src/main/java/de/retest/surili/model/Action.java]]. */ @SerialVersionUID(1L) case class Action(id: Id) extends Serializable