Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.tmtsoftware:esw-prototype:v0.1'
}
dependencies {
implementation("com.github.tmtsoftware:esw-prototype:v0.1")
}
<dependency>
<groupId>com.github.tmtsoftware</groupId>
<artifactId>esw-prototype</artifactId>
<version>v0.1</version>
</dependency>
libraryDependencies += "com.github.tmtsoftware" % "esw-prototype" % "v0.1"
:dependencies [[com.github.tmtsoftware/esw-prototype "v0.1"]]
The build is based on sbt and depends on libraries published to bintray from the csw project.
run csw-services.sh script using tmt-deploy readme
- Clone csw-prod
git checkout <sha>
(sha is mentioned in Libs.scala for csw-prod dependencies)
- Run sbt universal:stage
- $cd target/universal/stage/bin
- $./csw-services.sh start -i en0
Follow instructions in readme
sbt
sequencer-scripts-test/reStart iris darknight 8000
ssh repl@localhost -p8000
sbt
ocs-gateway/reStart
Default port for gateway is 9090 you can override it e.g.
sbt
ocs-gateway/reStart 9000
sbt
ocs-react4s-app/fastOptJS::startWebpackDevServer
Open <HOST>:<PORT> e.g - localhost:8080 (with webpack dev server) OR Open index.html from intelliJ
npm install
npm start
ocs-client module exposes componentFactory which is simpler API for resolving assembly or sequencer It also provides standalone app which grants access to components registered with Location service via componentFactory
sbt ocs-client/run
It provides mocks for cswServices and sequencerCommandService. It allows to unit test scripts logic by mocking cswServices. Find sample unit test case for script for iris here
This module provides facade/interface for reactJs and react-dom javascript libraries to be used in ScalaJs.