Skip to content

Commit

Permalink
Cleaned up dependencies; switched to a version of protobuf that the d…
Browse files Browse the repository at this point in the history
…ependencies can be happy with.

Fixed sbt assembly by ignoring an unneeded file.
  • Loading branch information
mcoblenz committed Jan 16, 2020
1 parent 51aef67 commit c177d39
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .idea/modules/Obsidian.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ libraryDependencies += "org.scalactic" %% "scalactic" % "3.0.1" % "test"
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.1" % "test"

libraryDependencies += "junit" % "junit" % "4.12" % "test"
libraryDependencies += "com.google.protobuf" % "protobuf-java" % "3.10.0"
libraryDependencies += "com.google.protobuf" % "protobuf-java" % "3.5.1"
libraryDependencies += "org.hyperledger.fabric-chaincode-java" % "fabric-chaincode-shim" % "1.4.4"
libraryDependencies += "org.hyperledger.fabric-chaincode-java" % "fabric-chaincode-protos" % "1.4.4"
libraryDependencies += "com.helger" % "jcodemodel" % "3.3.0"
libraryDependencies += "org.apache.commons" % "commons-io" % "1.3.2"

Expand All @@ -39,6 +38,7 @@ libraryDependencies += "org.apache.commons" % "commons-io" % "1.3.2"
// don't get confused about multiple META-INF/MANIFEST.MF
assemblyMergeStrategy in assembly := {
case PathList("META-INF", "MANIFEST.MF") => MergeStrategy.discard
case x if x.contains("module-info.class") => MergeStrategy.discard // https://stackoverflow.com/questions/54834125/sbt-assembly-deduplicate-module-info-class
case x if x.contains("io.netty.versions.properties") => MergeStrategy.discard
case x =>
val oldStrategy = (assemblyMergeStrategy in assembly).value
Expand Down
2 changes: 1 addition & 1 deletion buildscript/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ dependencies {
compile 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:1.4.+'
compile 'org.glassfish:javax.json:1.1.0-M1'
compile 'org.json:json:20171018'
compile 'com.google.protobuf:protobuf-java:3.10.0'
compile 'com.google.protobuf:protobuf-java:3.5.1'
}

version = '1.0'
Expand Down
2 changes: 1 addition & 1 deletion fabric/java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ repositories {
dependencies {
implementation 'edu.cmu.cs.obsidian:runtime:0.1'
compile group: 'org.hyperledger.fabric-chaincode-java', name: 'fabric-chaincode-shim', version: '1.4.4'
compile group: 'com.google.protobuf', name: 'protobuf-java', version: '3.10.0'
compile group: 'com.google.protobuf', name: 'protobuf-java', version: '3.5.1'
testCompile group: 'junit', name: 'junit', version: '4.12'
}

Expand Down

0 comments on commit c177d39

Please sign in to comment.