mirror of
https://github.com/lightbend/config.git
synced 2025-01-28 21:20:07 +08:00
Add scalariform to the build, to format the Scala tests
This commit is contained in:
parent
9348bf2132
commit
f1530e64c5
@ -1,6 +1,17 @@
|
||||
import de.johoop.findbugs4sbt.FindBugs._
|
||||
import de.johoop.findbugs4sbt.{ Effort, ReportType }
|
||||
import de.johoop.jacoco4sbt.JacocoPlugin.jacoco
|
||||
import com.typesafe.sbt.SbtScalariform
|
||||
import com.typesafe.sbt.SbtScalariform.ScalariformKeys
|
||||
import scalariform.formatter.preferences._
|
||||
|
||||
SbtScalariform.scalariformSettings
|
||||
|
||||
val formatPrefs = FormattingPreferences()
|
||||
.setPreference(IndentSpaces, 4)
|
||||
|
||||
ScalariformKeys.preferences in Compile := formatPrefs
|
||||
ScalariformKeys.preferences in Test := formatPrefs
|
||||
|
||||
fork in test := true
|
||||
fork in run := true
|
||||
|
@ -265,11 +265,11 @@ class ConfigValueTest extends TestUtils {
|
||||
@Test
|
||||
def configConfigSerializable() {
|
||||
val expectedSerialization = "" +
|
||||
"ACED0005_s_r00_._c_o_m_._t_y_p_e_s_a_f_e_._c_o_n_f_i_g_._i_m_p_l_._S_e_r_i_a_l_i" +
|
||||
"_z_e_d_C_o_n_f_i_g_V_a_l_u_e00000000000000010C0000_x_p_w_z02000000_n050000001906" +
|
||||
"0000000D000B_f_a_k_e_ _o_r_i_g_i_n0900000001000104000000_J07000000030001_a050000" +
|
||||
"000101040000000802000000010001_1010001_b050000000101040000000802000000020001_201" +
|
||||
"0001_c050000000101040000000802000000030001_3010103000000010101_x"
|
||||
"ACED0005_s_r00_._c_o_m_._t_y_p_e_s_a_f_e_._c_o_n_f_i_g_._i_m_p_l_._S_e_r_i_a_l_i" +
|
||||
"_z_e_d_C_o_n_f_i_g_V_a_l_u_e00000000000000010C0000_x_p_w_z02000000_n050000001906" +
|
||||
"0000000D000B_f_a_k_e_ _o_r_i_g_i_n0900000001000104000000_J07000000030001_a050000" +
|
||||
"000101040000000802000000010001_1010001_b050000000101040000000802000000020001_201" +
|
||||
"0001_c050000000101040000000802000000030001_3010103000000010101_x"
|
||||
|
||||
val aMap = configMap("a" -> 1, "b" -> 2, "c" -> 3)
|
||||
val a = new SimpleConfigObject(fakeOrigin(), aMap)
|
||||
|
@ -2,6 +2,7 @@ addSbtPlugin("de.johoop" % "findbugs4sbt" % "1.2.1")
|
||||
addSbtPlugin("de.johoop" % "jacoco4sbt" % "2.1.1")
|
||||
addSbtPlugin("com.typesafe.sbt" % "sbt-pgp" % "0.8.1")
|
||||
addSbtPlugin("com.typesafe.sbt" % "sbt-osgi" % "0.6.0")
|
||||
addSbtPlugin("com.typesafe.sbt" % "sbt-scalariform" % "1.2.1")
|
||||
|
||||
resolvers += "jgit-repo" at "http://download.eclipse.org/jgit/maven"
|
||||
addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "0.6.2")
|
||||
|
Loading…
Reference in New Issue
Block a user