Skip to content

Using the sbt-assembly plugin results in Scala compilation errors #1

Description

@jg8481

Using the provided build.sbt, build.properties, and plugins.sbt files will result in the following Scala compilation errors. Luckily, the Maven pom.xml works perfectly fine.

NY-JGorospe:robotframework-scala-remote-library joshuagorospe$ sbt assembly

[info] Loading settings for project robotframework-scala-remote-library-build from plugins.sbt ...

[info] Loading project definition from /Users/joshuagorospe/robotframework-scala-remote-library/project

[info] Loading settings for project robotframework-scala-remote-library from build.sbt ...

[info] Set current project to robotframework-scala-remote-library (in build file:/Users/joshuagorospe/robotframework-scala-remote-library/)

[info] Updating ...

[info] Done updating.

[info] Compiling 2 Scala sources to /Users/joshuagorospe/robotframework-scala-remote-library/target/scala-2.12/classes ...

[error] /Users/joshuagorospe/robotframework-scala-remote-library/src/main/scala/com/qamercenaryforhire/robotframework/scalaremotelibrary/ScalaRemoteLibraryServer.scala:3:12: object robotframework is not a member of package org

[error] import org.robotframework.javalib.library.AnnotationLibrary

[error]            ^

[error] /Users/joshuagorospe/robotframework-scala-remote-library/src/main/scala/com/qamercenaryforhire/robotframework/scalaremotelibrary/ScalaRemoteLibraryServer.scala:5:12: object robotframework is not a member of package org

[error] import org.robotframework.remoteserver.RemoteServer

[error]            ^

[error] /Users/joshuagorospe/robotframework-scala-remote-library/src/main/scala/com/qamercenaryforhire/robotframework/scalaremotelibrary/ScalaRemoteLibraryServer.scala:22:13: not found: type AnnotationLibrary

[error]     extends AnnotationLibrary("com/qamercenaryforhire/robotframework/scalaremotelibrary/keywords/*.class") {

[error]             ^

[error] /Users/joshuagorospe/robotframework-scala-remote-library/src/main/scala/com/qamercenaryforhire/robotframework/scalaremotelibrary/ScalaRemoteLibraryServer.scala:13:5: not found: value RemoteServer

[error]     RemoteServer.configureLogging()

[error]     ^

[error] /Users/joshuagorospe/robotframework-scala-remote-library/src/main/scala/com/qamercenaryforhire/robotframework/scalaremotelibrary/ScalaRemoteLibraryServer.scala:14:17: not found: type RemoteServer

[error]     val server: RemoteServer = new RemoteServer()

[error]                 ^

[error] /Users/joshuagorospe/robotframework-scala-remote-library/src/main/scala/com/qamercenaryforhire/robotframework/scalaremotelibrary/ScalaRemoteLibraryServer.scala:14:36: not found: type RemoteServer

[error]     val server: RemoteServer = new RemoteServer()

[error]                                    ^

[error] /Users/joshuagorospe/robotframework-scala-remote-library/src/main/scala/com/qamercenaryforhire/robotframework/scalaremotelibrary/ScalaRemoteLibraryServer.scala:22:31: no arguments allowed for nullary constructor Object: ()Object

[error]     extends AnnotationLibrary("com/qamercenaryforhire/robotframework/scalaremotelibrary/keywords/*.class") {

[error]                               ^

[error] /Users/joshuagorospe/robotframework-scala-remote-library/src/main/scala/com/qamercenaryforhire/robotframework/scalaremotelibrary/ScalaRemoteLibraryServer.scala:28:11: value getKeywordDocumentation is not a member of AnyRef

[error]     super.getKeywordDocumentation(keywordName)

[error]           ^

[error] /Users/joshuagorospe/robotframework-scala-remote-library/src/main/scala/com/qamercenaryforhire/robotframework/scalaremotelibrary/keywords/ScalaKeywords.scala:3:12: object robotframework is not a member of package org

[error] import org.robotframework.javalib.annotation.ArgumentNames

[error]            ^

[error] /Users/joshuagorospe/robotframework-scala-remote-library/src/main/scala/com/qamercenaryforhire/robotframework/scalaremotelibrary/keywords/ScalaKeywords.scala:5:12: object robotframework is not a member of package org

[error] import org.robotframework.javalib.annotation.RobotKeyword

[error]            ^

[error] /Users/joshuagorospe/robotframework-scala-remote-library/src/main/scala/com/qamercenaryforhire/robotframework/scalaremotelibrary/keywords/ScalaKeywords.scala:7:12: object robotframework is not a member of package org

[error] import org.robotframework.javalib.annotation.RobotKeywords

[error]            ^

[error] /Users/joshuagorospe/robotframework-scala-remote-library/src/main/scala/com/qamercenaryforhire/robotframework/scalaremotelibrary/keywords/ScalaKeywords.scala:10:2: not found: type RobotKeywords

[error] @RobotKeywords

[error]  ^

[error] /Users/joshuagorospe/robotframework-scala-remote-library/src/main/scala/com/qamercenaryforhire/robotframework/scalaremotelibrary/keywords/ScalaKeywords.scala:13:4: not found: type RobotKeyword

[error]   @RobotKeyword("Say Something")

[error]    ^

[error] /Users/joshuagorospe/robotframework-scala-remote-library/src/main/scala/com/qamercenaryforhire/robotframework/scalaremotelibrary/keywords/ScalaKeywords.scala:14:4: not found: type ArgumentNames

[error]   @ArgumentNames(Array("things"))

[error]    ^

[error] /Users/joshuagorospe/robotframework-scala-remote-library/src/main/scala/com/qamercenaryforhire/robotframework/scalaremotelibrary/keywords/ScalaKeywords.scala:19:4: not found: type RobotKeyword

[error]   @RobotKeyword("Check String")

[error]    ^

[error] /Users/joshuagorospe/robotframework-scala-remote-library/src/main/scala/com/qamercenaryforhire/robotframework/scalaremotelibrary/keywords/ScalaKeywords.scala:20:4: not found: type ArgumentNames

[error]   @ArgumentNames(Array("parameters"))

[error]    ^

[error] /Users/joshuagorospe/robotframework-scala-remote-library/src/main/scala/com/qamercenaryforhire/robotframework/scalaremotelibrary/keywords/ScalaKeywords.scala:23:4: not found: type RobotKeyword

[error]   @RobotKeyword("Just Text")

[error]    ^

[error] 17 errors found

[error] (Compile / compileIncremental) Compilation failed

[error] Total time: 1 s, completed Feb 1, 2019 5:27:53 PM

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    non-criticalAnything minor that does not disrupt functionality.wontfixThis will not be worked on

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions