Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Commit

Permalink
Remove Scala version from artifact, list command to publish #8
Browse files Browse the repository at this point in the history
  • Loading branch information
tdauth committed Dec 4, 2018
1 parent 36f3494 commit bf6d6f6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
15 changes: 4 additions & 11 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)
Expand All @@ -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")
1 change: 1 addition & 0 deletions src/main/scala/de/retest/guistatemachine/api/Action.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit bf6d6f6

Please sign in to comment.