Skip to content

Commit 45acead

Browse files
committed
Fix msgpack#145: msgpack-{core,jackson}-0.7.0-M5 release. Fix sbt scripts to allow multi-module project deployment
1 parent cb918ab commit 45acead

File tree

5 files changed

+17
-9
lines changed

5 files changed

+17
-9
lines changed

msgpack-core/src/main/java/org/msgpack/core/MessageFormat.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ private MessageFormat(ValueType valueType) {
6161

6262
/**
6363
* Retruns the ValueType corresponding to this MessageFormat
64-
* @return
64+
* @return value type
6565
* @throws MessageFormatException if this == NEVER_USED type
6666
*/
6767
public ValueType getValueType() throws MessageFormatException {
@@ -82,7 +82,7 @@ public ValueType getValueType() throws MessageFormatException {
8282

8383
/**
8484
* Returns a MessageFormat type of the specified byte value
85-
* @param b
85+
* @param b MessageFormat of the given byte
8686
* @return
8787
*/
8888
public static MessageFormat valueOf(final byte b) {
@@ -91,7 +91,7 @@ public static MessageFormat valueOf(final byte b) {
9191

9292
/**
9393
* Converting a byte value into MessageFormat. For faster performance, use {@link #valueOf}
94-
* @param b
94+
* @param b MessageFormat of the given byte
9595
* @return
9696
*/
9797
@VisibleForTesting

msgpack-core/src/main/java/org/msgpack/core/MessageUnpacker.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@
5050
* while(unpacker.hasNext()) {
5151
* MessageFormat f = unpacker.getNextFormat();
5252
* switch(f) {
53-
* case MessageFormat.POSFIXINT =>
54-
* case MessageFormat.INT8 =>
55-
* case MessageFormat.UINT8 => {
53+
* case MessageFormat.POSFIXINT:
54+
* case MessageFormat.INT8:
55+
* case MessageFormat.UINT8: {
5656
* int v = unpacker.unpackInt();
5757
* break;
5858
* }
59-
* case MessageFormat.STRING => {
59+
* case MessageFormat.STRING: {
6060
* String v = unpacker.unpackString();
6161
* break;
6262
* }

project/Build.scala

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ object Build extends Build {
2929
val SCALA_VERSION = "2.11.1"
3030

3131
lazy val buildSettings = Defaults.coreDefaultSettings ++
32-
sonatypeSettings ++
3332
releaseSettings ++
3433
findbugsSettings ++
3534
jacoco.settings ++
@@ -46,13 +45,21 @@ object Build extends Build {
4645
concurrentRestrictions in Global := Seq(
4746
Tags.limit(Tags.Test, 1)
4847
),
48+
publishTo := {
49+
val nexus = "https://oss.sonatype.org/"
50+
if (isSnapshot.value)
51+
Some("snapshots" at nexus + "content/repositories/snapshots")
52+
else
53+
Some("releases" at nexus + "service/local/staging/deploy/maven2")
54+
},
4955
parallelExecution in jacoco.Config := false,
5056
// Since sbt-0.13.2
5157
incOptions := incOptions.value.withNameHashing(true),
5258
//resolvers += Resolver.mavenLocal,
5359
scalacOptions ++= Seq("-encoding", "UTF-8", "-deprecation", "-unchecked", "-target:jvm-1.6", "-feature"),
5460
javaOptions in Test ++= Seq("-ea"),
5561
javacOptions in (Compile, compile) ++= Seq("-encoding", "UTF-8", "-Xlint:unchecked", "-Xlint:deprecation", "-source", "1.6", "-target", "1.6"),
62+
javacOptions in doc := Seq("-source", "1.6", "-Xdoclint:none"),
5663
findbugsReportType := Some(ReportType.FancyHtml),
5764
findbugsReportPath := Some(crossTarget.value / "findbugs" / "report.html"),
5865
pomExtra := {

sonatype.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sonatypeSettings

version.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version in ThisBuild := "0.7.0-p1"
1+
version in ThisBuild := "0.7.0-M5"

0 commit comments

Comments
 (0)