sbt

Listing files from resource directory in sbt 1.2.8

人走茶凉 提交于 2020-12-25 08:44:13
问题 I have a Scala application which processes binary files from some directory in resources . I would like to get this directory as java.io.File and list all the contents. In the newest sbt I am unable to do it the straight way. I have created minimal repo with my issue: https://github.com/mat646/sbt-resource-bug The issue does not occur with sbt 0.13.18 and lower. So after some research I've found out that since sbt 1.0 the design has changed and such issue has been already addressed here:

SBT: Evaluating sequence of tasks

我是研究僧i 提交于 2020-12-12 21:23:34
问题 I am trying to get the information about all modules in my sbt project. Having the following code lazy val getModule = taskKey[Module]("get single module info") lazy val allModules = taskKey[Seq[Module]]("get all modules info") getModule := Def.task { Module(name.value, description.value, version.value, organization.value) }.value, allModules := Def.task { val sbtModules = (ThisScope / thisProject).value.aggregate sbtModules.map { m => (ThisScope.in(m) / getModule).value } }.value I'm getting

How to fix “static methods in interface require -target:jvm-1.8” in Scala application?

限于喜欢 提交于 2020-12-12 05:44:34
问题 I wrote the following code: import software.amazon.awssdk.services.cloudwatchlogs.CloudWatchLogsClient class Test() extends CloudWatchLogsClient { CloudWatchLogsClient.builder().build() def close():Unit = { println("test") } def serviceName(): String = "serviceName" CloudWatchLogsClient.create() } When it comes to compiling , I get the following error: Static methods in interface require -target:jvm-1.8 CloudWatchLogsClient.builder().build() Finally, I used the following dependencies in my

How to fix “static methods in interface require -target:jvm-1.8” in Scala application?

戏子无情 提交于 2020-12-12 05:42:41
问题 I wrote the following code: import software.amazon.awssdk.services.cloudwatchlogs.CloudWatchLogsClient class Test() extends CloudWatchLogsClient { CloudWatchLogsClient.builder().build() def close():Unit = { println("test") } def serviceName(): String = "serviceName" CloudWatchLogsClient.create() } When it comes to compiling , I get the following error: Static methods in interface require -target:jvm-1.8 CloudWatchLogsClient.builder().build() Finally, I used the following dependencies in my

How to fix “static methods in interface require -target:jvm-1.8” in Scala application?

余生长醉 提交于 2020-12-12 05:42:30
问题 I wrote the following code: import software.amazon.awssdk.services.cloudwatchlogs.CloudWatchLogsClient class Test() extends CloudWatchLogsClient { CloudWatchLogsClient.builder().build() def close():Unit = { println("test") } def serviceName(): String = "serviceName" CloudWatchLogsClient.create() } When it comes to compiling , I get the following error: Static methods in interface require -target:jvm-1.8 CloudWatchLogsClient.builder().build() Finally, I used the following dependencies in my

How to fix “static methods in interface require -target:jvm-1.8” in Scala application?

江枫思渺然 提交于 2020-12-12 05:42:28
问题 I wrote the following code: import software.amazon.awssdk.services.cloudwatchlogs.CloudWatchLogsClient class Test() extends CloudWatchLogsClient { CloudWatchLogsClient.builder().build() def close():Unit = { println("test") } def serviceName(): String = "serviceName" CloudWatchLogsClient.create() } When it comes to compiling , I get the following error: Static methods in interface require -target:jvm-1.8 CloudWatchLogsClient.builder().build() Finally, I used the following dependencies in my

JasperReports Maven broken?

纵然是瞬间 提交于 2020-12-08 08:39:31
问题 I'm trying to add a dependency to JasperReports to my project (Tried SBT and Maven), but seems one dependency is broken. I'm using the latest version 6.1.0 from the maven repo (also tested with previous ones and same issue). I also added the Jasper repository since the itext libs need to be grabbed from there. But I keep getting these errors: [info] Resolving org.codehaus.castor#castor-xml;1.3.3 ... [warn] problem while downloading module descriptor: http://repo1.maven.org/maven2/org/codehaus

JasperReports Maven broken?

时光怂恿深爱的人放手 提交于 2020-12-08 08:39:14
问题 I'm trying to add a dependency to JasperReports to my project (Tried SBT and Maven), but seems one dependency is broken. I'm using the latest version 6.1.0 from the maven repo (also tested with previous ones and same issue). I also added the Jasper repository since the itext libs need to be grabbed from there. But I keep getting these errors: [info] Resolving org.codehaus.castor#castor-xml;1.3.3 ... [warn] problem while downloading module descriptor: http://repo1.maven.org/maven2/org/codehaus