Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build with github packages #1

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 19 additions & 11 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,28 @@ licenses += ("Apache-2.0", url("http://opensource.org/licenses/Apache-2.0"))

scalaVersion := "2.12.8"

githubOwner := "openlawteam"

githubRepository := "eth-propeller-scala"

githubTokenSource := TokenSource.GitConfig("github.token")

// credentials +=
// Credentials(
// "GitHub Package Registry",
// "maven.pkg.github.com",
// TokenSource.GitConfig("github.username"),
// TokenSource.GitConfig("github.token"))

resolvers ++= Seq(
"Local Maven Repository" at "file://"+Path.userHome.absolutePath+"/.m2/repository",
"Github Packages" at "https://maven.pkg.github.com/openlawteam/eth-propeller-core",
// "Local Maven Repository" at "file://"+Path.userHome.absolutePath+"/.m2/repository",
"java-ipfs-api-mvn-repo" at "https://raw.github.com/pascr/java-ipfs-api/mvn-repo/",
"adridadou-bintray" at "https://dl.bintray.com/cubefriendly/maven/",
"scalaz-bintray" at "http://dl.bintray.com/scalaz/releases")
)

// Change this to another test framework if you prefer
libraryDependencies ++= Seq(
"org.adridadou" % "eth-propeller-core" % "0.42",
"org.adridadou" % "eth-propeller-core" % "0.59-SNAPSHOT",
"io.reactivex" %% "rxscala" % "0.26.5",
"org.scala-lang.modules" %% "scala-java8-compat" % "0.8.0",
//Test libs
Expand All @@ -26,11 +39,6 @@ libraryDependencies ++= Seq(
)

fork in run := true

releaseCrossBuild := true

crossScalaVersions := Seq("2.11.8", "2.12.7")

publishTo := Some("Bintray" at "https://api.bintray.com/maven/cubefriendly/maven/eth-propeller-scala")

credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
releaseIgnoreUntrackedFiles := true
crossScalaVersions := Seq("2.11.8", "2.12.7")
6 changes: 2 additions & 4 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.7")

addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.1")

addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.3.4")
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.3.4")
addSbtPlugin("com.codecommit" % "sbt-github-packages" % "0.5.3")
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ScalaFutureConverter() extends FutureConverter{

override def isPayableTypeWithDetails(cls: Class[_]): Boolean = classOf[ScalaEthPayableCall[_]].equals(cls)

override def convertWithDetails(details: CallDetails, futureResult: CompletableFuture[_]): ScalaEthCall[_] = ScalaEthCall(new EthCall(details.getTxHash, futureResult), this )
override def convertWithDetails(details: CallDetails, futureResult: CompletableFuture[_]): ScalaEthCall[_] = ScalaEthCall(new EthCall(details.getNonce, details.getGasEstimate, details.getTxHash, futureResult), this)

override def getPayableWithDetails(smartContract: SmartContract, arguments: Array[AnyRef], method: Method): ScalaEthPayableCall[_] = ScalaEthPayableCall(new EthPayableCall(smartContract, method, arguments), this)

Expand Down