Skip to content

Commit

Permalink
Merge pull request #29 from retronym/topic/bump
Browse files Browse the repository at this point in the history
Support Scala 2.13, Java 10+
  • Loading branch information
retronym authored Jul 3, 2018
2 parents da223d8 + 6ccee1e commit 0db52cb
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 22 deletions.
36 changes: 22 additions & 14 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ val buildName = "jardiff"
inThisBuild(Seq[Setting[_]](
version := "1.0-SNAPSHOT",
organization := "org.scala-lang",
scalaVersion := "2.12.2",
scalaVersion := "2.12.6",
licenses := List(("Scala license", url("https://github.com/scala/jardiff/blob/master/LICENSE"))),
homepage := Some(url("http://github.com/scala/jardiff")),
scalacOptions := Seq("-feature", "-deprecation", "-Xlint")
Expand Down Expand Up @@ -41,23 +41,31 @@ lazy val root = (
aggregate(core)
settings(
name := buildName,
publish := (),
publishLocal := ()
publish := {()},
publishLocal := {()}
)
)

lazy val core = (
project.
settings(libraryDependencies ++= Seq(
"commons-cli" % "commons-cli" % "1.4",
"org.scala-lang.modules" % "scala-asm" % "5.1.0-scala-2",
"org.scala-lang" % "scalap" % System.getProperty("scalap.version", scalaVersion.value),
"org.eclipse.jgit" % "org.eclipse.jgit" % "4.6.0.201612231935-r",
"org.slf4j" % "slf4j-api" % "1.7.25",
"org.slf4j" % "log4j-over-slf4j" % "1.7.25", // for any java classes looking for this
"ch.qos.logback" % "logback-classic" % "1.2.3"
),
name := buildName + "-core")
settings(sonatypePublishSettings:_*)
settings(
scalaVersion := "2.13.0-M4",
libraryDependencies ++= Seq(
"commons-cli" % "commons-cli" % "1.4",
"org.ow2.asm" % "asm" % "6.2",
"org.ow2.asm" % "asm-util" % "6.2",
"org.scala-lang" % "scalap" % System.getProperty("scalap.version", scalaVersion.value),
"org.eclipse.jgit" % "org.eclipse.jgit" % "4.6.0.201612231935-r",
"org.slf4j" % "slf4j-api" % "1.7.25",
"org.slf4j" % "log4j-over-slf4j" % "1.7.25", // for any java classes looking for this
"ch.qos.logback" % "logback-classic" % "1.2.3"
),
name := buildName + "-core",
assemblyMergeStrategy in assembly := {
case "module-info.class" => MergeStrategy.discard
case "rootdoc.txt" => MergeStrategy.discard
case x => (assemblyMergeStrategy in assembly).value(x)
}
).settings(sonatypePublishSettings:_*)
)

Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import java.io.PrintWriter
import java.nio.file.{Files, Path}

import scala.collection.JavaConverters._
import scala.tools.asm.{ClassReader, Opcodes}
import scala.tools.asm.tree.{ClassNode, FieldNode, InnerClassNode, MethodNode}
import scala.tools.asm.util.TraceClassVisitor
import org.objectweb.asm.{ClassReader, Opcodes}
import org.objectweb.asm.tree.{ClassNode, FieldNode, InnerClassNode, MethodNode}
import org.objectweb.asm.util.TraceClassVisitor

class AsmTextifyRenderer(code: Boolean, raw: Boolean, privates: Boolean) extends FileRenderer {
def outFileExtension: String = ".asm"
Expand Down
3 changes: 2 additions & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
sbt.version=0.13.15
sbt.version=1.1.6

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.eed3si9n" % "sbt-assembly" % "0.14.4")
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.7")

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

libraryDependencies += "org.scala-sbt" % "scripted-plugin" % sbtVersion.value
addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.4")

0 comments on commit 0db52cb

Please sign in to comment.