java - Migration Of play 2.4 from 2.3:sbt.IncompatiblePluginsException: Binary incompatibility in plugins detected -
i trying migrate play version 2.3 2.4.0,i'm facing error "sbt.incompatiblepluginsexception: binary incompatibility in plugins detected." i'm using sbt version of 0.13.8.java version 8,can 1 suggest me do.
i'll attach error occurred in console
[error] sbt.incompatiblepluginsexception: binary incompatibility in plugins dete cted. [error] note conflicts resolved dependencies: [error] org.apache.commons:commons-compress [error] org.tukaani:xz [error] com.google.guava:guava [error] com.typesafe:config [error] org.slf4j:slf4j-api [error] org.fusesource.leveldbjni:leveldbjni [error] com.typesafe:jse_2.10 [error] com.typesafe.sbt:sbt-js-engine [error] com.typesafe.sbt:sbt-web [error] org.javassist:javassist [error] org.scala-sbt:launcher-interface [error] org.scala-sbt:interface [error] org.scala-sbt:io [error] org.scala-sbt:collections [error] org.scala-sbt:control [error] use 'last' full log.
here "build.sbt"
import sbtbuildinfo.plugin._ import com.typesafe.config._ import sbt._ import keys._ //import dbconfig.driver.api._ import play.play.autoimport._ import com.typesafe.sbt.packager.archetypes.serverloader.{systemv, upstart} serverloading in debian := systemv name := "vhms" version := "1.0-snapshot" sbtplugin := true librarydependencies ++= seq( javajdbc, //javaebean, javaws, filters, cache, specs2 % test, "org.springframework" % "spring-context" % "3.2.6.release", "org.springframework" % "spring-context-support" % "3.2.6.release", "org.springframework" % "spring-core" % "3.2.6.release", "org.springframework" % "spring-beans" % "3.2.6.release", "org.springframework" % "spring-orm" % "3.2.6.release", "org.springframework" % "spring-jdbc" % "3.2.6.release", "org.springframework" % "spring-tx" % "3.2.6.release", "org.springframework" % "spring-expression" % "3.2.6.release", "org.springframework" % "spring-aop" % "3.2.6.release", "org.springframework" % "spring-test" % "3.2.6.release" % "test", "org.json"%"org.json"%"chargebee-1.0", "org.sql2o" % "sql2o" % "1.5.2", "mysql" % "mysql-connector-java" % "5.1.18", "org.mindrot" % "jbcrypt" % "0.3m", "org.modelmapper" % "modelmapper" % "0.7.1", "com.sun.jersey"% "jersey-client" % "1.17.1", "com.sun.jersey"% "jersey-core" % "1.17.1", "com.sun.jersey.contribs"% "jersey-multipart" % "1.17.1", "com.rabbitmq" % "amqp-client" % "2.7.1", "aopalliance" % "aopalliance" % "1.0", "cglib" % "cglib" % "3.1", "org.aspectj" % "aspectjrt" % "1.8.1", "org.aspectj" % "aspectjweaver" % "1.8.1", "commons-logging" % "commons-logging" % "1.1.1", "commons-dbcp" % "commons-dbcp" % "1.4", "net.vz.mongodb.jackson" %% "play-mongo-jackson-mapper" % "1.1.0", "org.springframework.retry" % "spring-retry" % "1.1.0.release", "org.springframework.amqp" % "spring-amqp" % "1.4.5.release", "org.springframework.amqp" % "spring-rabbit" % "1.4.5.release", "com.google.code.gson" % "gson" % "2.2.4", "com.google.apis" % "google-api-services-storage" % "v1-rev20-1.19.0", "com.google.api-client" % "google-api-client" % "1.19.0", "com.google.http-client" % "google-http-client" % "1.19.0", "com.google.http-client" % "google-http-client-jackson2" % "1.19.0", "com.google.oauth-client" % "google-oauth-client" % "1.19.0", "com.google.oauth-client" % "google-oauth-client-java6" % "1.19.0", "com.google.oauth-client" % "google-oauth-client-jetty" % "1.19.0", "com.fasterxml.jackson.core" % "jackson-databind" % "2.1.3", "org.mortbay.jetty" % "jetty" % "6.1.26", "org.mortbay.jetty" % "jetty-util" % "6.1.26", "commons-beanutils" % "commons-beanutils" % "1.8.3", "org.jasypt" % "jasypt-spring31" % "1.9.0", "org.jasypt" % "jasypt" % "1.8", "org.apache.commons" % "commons-email" % "1.2", "commons-codec" % "commons-codec" % "1.5", "com.fasterxml.jackson.core" % "jackson-annotations" % "2.5.1", "com.itextpdf" % "itextpdf" % "5.5.0", "com.itextpdf" % "itext-pdfa" % "5.5.0", "net.sf.jasperreports" % "jasperreports" % "6.0.0", "net.sf.jasperreports" % "jasperreports-fonts" % "6.0.0", "org.apache.commons" % "commons-digester3" % "3.2", "org.apache.poi" % "poi" % "3.9", "dom4j" % "dom4j" % "1.6.1", "antlr" % "antlr" % "2.7.6", "javax.transaction" % "jta" % "1.1", "org.slf4j" % "slf4j-log4j12" % "1.5.8", "javassist" % "javassist" % "3.9.0.ga", "tomcat" % "jasper-compiler-jdt" % "5.5.15", "org.apache.commons" % "commons-io" % "1.3.2", "org.imgscalr" % "imgscalr-lib" % "4.2", "com.sandinh" %% "play-hikaricp" % "1.7.1", "org.webjars" %% "webjars-play" % "2.3.0", "com.typesafe" %% "play-plugins-mailer" % "2.2.0", "org.webjars" % "jquery" % "2.1.0-2", "org.webjars" % "bootstrap" % "3.1.1", "org.webjars" % "angularjs" % "1.2.26", "com.fizzed" %% "fizzed-play-module-sprockets" % "1.2.0" //"com.typesafe.play" %% "play-slick" % "1.1.1" //"com.typesafe.play" %% "play-slick-evolutions" % "1.1.1" //"com.h2database" % "h2" % "1.3.175" ) buildinfosettings sourcegenerators in compile <+= buildinfo buildinfopackage := "app" //pipelinestages in assets := seq(concat) //includefilter in closure := "all.js" pipelinestages := seq(uglify,digest,gzip) includefilter in (assets, lesskeys.less) := "*.less" lazy val root = project.in(file(".")).enableplugins(playjava, sbtweb) //enable eban plugin 2.4 migration lazy val myproject = (project in file(".")).enableplugins(playjava, playebean) buildinfokeys := seq[buildinfokey](name, version, scalaversion, sbtversion) lazy val exectask = taskkey[unit]("execute build task") exectask := { val file: file = basedirectory.value / "buildinfo.properties" val prop = new java.util.properties def readprop: int = { prop.load(new java.io.fileinputstream(file)) prop.getproperty("buildnumber", "0").toint } def writeprop(value: int) { prop.setproperty("buildnumber", value.tostring) prop.store(new java.io.fileoutputstream(file), null) } val current = if (file.exists) readprop else 0 writeprop(current + 1) current } buildinfokeys += buildinfokey(exectask) version <<= (version) { (v) => if (new file("buildinfo.properties").exists()) { val config = configfactory.parsefile(new file("buildinfo.properties")).resolve() lazy val buildnumber = config.getstring("buildnumber") val buildversion=buildnumber.toint/3 v.replace(".0-snapshot","."+ buildversion) } else { v.replace(".0-snapshot", "."+ "0") } } resolvers += "jasper olap" @ "http://jaspersoft.artifactoryonline.com/jaspersoft/jaspersoft-repo/" //specs2 included 2.4 migration resolvers += "scalaz-bintray" @ "https://dl.bintray.com/scalaz/releases"
here "plugins.sbt"
// comment more information during initialization loglevel := level.warn // typesafe repository resolvers += "typesafe repository" @ "http://repo.typesafe.com/typesafe/maven-releases/" //jbcrypt repository resolvers +="jbcrypt repository" @ "http://repo1.maven.org/maven2/org/" //modelmapper repository resolvers +="modelmapper repository" @ "http://repo1.maven.org/maven2/org/" resolvers += "jersey repository" @ "http://http://repo.typesafe.com/typesafe/releases/com/sun/jersey/" //aop repository resolvers +="aspectj repository" @ "http://repo1.maven.org/maven2/org/" //rabbit mq dependency jars resolvers +="amqp repository" @ "https://www.versioneye.com/java/org.springframework.amqp:spring-rabbit/1.4.5.release" //google storage repository //resolvers +="google storage repository" @ "http://repo1.maven.org/maven2/org/" // use play sbt plugin play projects //addsbtplugin("com.typesafe.play" % "sbt-plugin" % "2.4.0") addsbtplugin("com.typesafe.play" % "sbt-fork-run-plugin" % "2.4.0") resolvers += "jasper olap" @ "http://jaspersoft.artifactoryonline.com/jaspersoft/jaspersoft-repo/" //resolvers += "edulify repository" @ "https://edulify.github.io/modules/releases/" resolvers += resolver.url("edulify repository", url("http://edulify.github.io/modules/releases/"))(resolver.ivystylepatterns) resolvers += "sbt plugins" @ "https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/" // use play2war plugin play projects addsbtplugin("com.github.play2war" % "play2-war-plugin" % "1.3-beta3") addsbtplugin("com.eed3si9n" % "sbt-buildinfo" % "0.3.2") addsbtplugin("com.typesafe.sbt" % "sbt-less" % "1.0.0") addsbtplugin("com.typesafe.sbt" % "sbt-web" % "1.0.0") // web plugins addsbtplugin("com.typesafe.sbt" % "sbt-coffeescript" % "1.0.0") addsbtplugin("com.typesafe.sbt" % "sbt-jshint" % "1.0.1") addsbtplugin("com.typesafe.sbt" % "sbt-rjs" % "1.0.2") addsbtplugin("com.typesafe.sbt" % "sbt-uglify" % "1.0.3") addsbtplugin("com.typesafe.sbt" % "sbt-digest" % "1.0.0") addsbtplugin("com.typesafe.sbt" % "sbt-mocha" % "1.0.0") addsbtplugin("com.typesafe.sbt" % "sbt-gzip" % "1.0.0") addsbtplugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0") //ebean dependency play 2.4 addsbtplugin("com.typesafe.sbt" % "sbt-play-ebean" % "1.0.0") //byte code enhancement play 2.4 addsbtplugin("com.typesafe.sbt" % "sbt-play-enhancer" % "1.1.0") dependencyoverrides += "org.scala-sbt" % "sbt" % "0.13.5"
you need use more recent version of mailer play 2.4. add line build.sbt (instead of current import): "com.typesafe.play" %% "play-mailer" % "3.0.1"
note name play-mailer , play-plugins not needed. here link
Comments
Post a Comment