{"id":1322,"date":"2014-01-01T13:20:44","date_gmt":"2014-01-01T04:20:44","guid":{"rendered":"http:\/\/kazu.tv\/blog\/?p=1322"},"modified":"2014-01-02T12:36:19","modified_gmt":"2014-01-02T03:36:19","slug":"play-framework-2-1-to-2-2","status":"publish","type":"post","link":"https:\/\/kazu.tv\/blog\/2014\/01\/01\/play-framework-2-1-to-2-2\/","title":{"rendered":"Play! framework 2.1 \u2192 2.2\u306b\u4e0a\u3052\u305f"},"content":{"rendered":"<p>\u6b63\u6708\u4f11\u307f\u3092\u5229\u7528\u3057\u3066\u3001Play! framework 2.1\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30922.2\u306b\u3057\u305f\u3002\u3042\u3001\u7686\u69d8\u3042\u3051\u307e\u3057\u3066\u304a\u3081\u3067\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002<\/p>\n<p>\u7d50\u8ad6\u304b\u3089\u8a00\u3063\u3061\u3083\u3046\u3068\u3001<a title=\"Play 2.2 Migration Guide\" href=\"http:\/\/www.playframework.com\/documentation\/2.2.0\/Migration22\" target=\"_blank\">Play 2.2 Migration Guide<\/a>\u306b\u66f8\u3044\u3066\u3042\u308b\u60c5\u5831\u3067\u5927\u4f53\u7db2\u7f85\u3055\u308c\u3066\u3044\u305f\u3002<\/p>\n<h2>Play\u81ea\u4f53\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9<\/h2>\n<p>Migration Guide\u901a\u308a\u3001Build.scala\u3068\u304b\u4fee\u6b63\u3059\u308c\u3070OK\u3002\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u306f2.2.1\u306a\u306e\u3067\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b2.2.0\u3063\u3066\u66f8\u3044\u3066\u3042\u308b\u6240\u306f\u30012.2.1\u3068\u7f6e\u304d\u63db\u3048\u3066\u8aad\u3081\u3070OK\u3002<\/p>\n<h2>\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9<\/h2>\n<p>Play\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3068\u304b\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u306f\u3001Play 2.1.x\u306e\u4eba\u306f\u30d0\u30fc\u30b8\u30e7\u30f3M\u3092\u3001Play 2.2.x\u306e\u4eba\u306f\u30d0\u30fc\u30b8\u30e7\u30f3N\u3092\u4f7f\u3063\u3066\u304f\u308c\u3001\u3063\u3066\u3044\u3046\u30d1\u30bf\u30fc\u30f3\u306e\u3082\u306e\u304c\u7d50\u69cb\u3042\u308b\u3002<\/p>\n<p>\u305d\u3046\u3044\u3063\u305f\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u304b\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6b63\u3057\u3044\u3082\u306e\u306b\u5909\u66f4\u305b\u305a\u306b\u30d3\u30eb\u30c9\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u69d8\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3002<\/p>\n<pre class=\"brush: plain\">[error] Modules were resolved with conflicting cross-version suffixes in {file:\/Users\/kazu\/Documents\/workspace\/projectfoo\/}projectfoo:\r\n[error]    org.scala-stm:scala-stm _2.10, _2.10.0\r\n[trace] Stack trace suppressed: run last projectfoo\/*:update for the full output.\r\n[error] (projectfoo\/*:update) Conflicting cross-version suffixes in: org.scala-stm:scala-stm\r\n[error] Total time: 0 s, completed Jan 1, 2014 12:31:37 AM<\/pre>\n<p>\u500b\u4eba\u7684\u306b\u4f7f\u3063\u3066\u3044\u3066\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u3063\u305f\u306e\u306f\u3053\u306e\u8fba\u3002<\/p>\n<ul>\n<li><a title=\"Amazon S3 Module for Play\" href=\"https:\/\/github.com\/Rhinofly\/play-s3\" target=\"_blank\">Amazon S3 Module for Play<\/a><\/li>\n<li><a title=\"Play2.x module for Authentication and Authorization\" href=\"https:\/\/github.com\/t2v\/play2-auth\" target=\"_blank\">Play2.x module for Authentication and Authorization<\/a>(\u4ee5\u4e0b\u3001play2-auth)<\/li>\n<li><a title=\"SecureSocial\" href=\"http:\/\/securesocial.ws\/\" target=\"_blank\">SecureSocial<\/a><\/li>\n<\/ul>\n<h2>\u30bd\u30fc\u30b9\u306e\u5909\u66f4<\/h2>\n<p>\u81ea\u5206\u304c\u5fc5\u8981\u3068\u306a\u3063\u305f\u3068\u3053\u308d\u3060\u3051\u8a18\u8f09\u3002<\/p>\n<h3>Result -&gt; SimpleResult<\/h3>\n<p>\u3053\u308c\u3082Migration Guide\u306b\u66f8\u3044\u3066\u3042\u308b\u3051\u3069\u3001play.api.mvc.Result\u306fdeprecated\u306b\u306a\u3063\u305f\u3002<\/p>\n<p>play2-auth\u95a2\u9023\u306e\u30b3\u30fc\u30c9\u3082\u4fee\u6b63\u304c\u5fc5\u8981\u3002\u5177\u4f53\u7684\u306b\u306fAuthConfigImple\u306e\u5404\u30e1\u30bd\u30c3\u30c9\u306e\u30b7\u30b0\u30cb\u30c1\u30e3\u30fc\u3092\u5909\u66f4\u3059\u308c\u3070OK\u3002<\/p>\n<h3>Jackson<\/h3>\n<p>\u30d1\u30c3\u30b1\u30fc\u30b8\u540d\u304c\u5909\u308f\u3063\u3066\u308b\u3002org.codehaus.jackson \u2192 com.fasterxml.jackson<\/p>\n<h2>\u305d\u306e\u4ed6\uff08\u8ffd\u8a18\uff09<\/h2>\n<h3>evolutions\u304c\u518d\u5b9f\u884c\u3055\u308c\u305d\u3046\u306b<\/h3>\n<p>\u958b\u767a\u74b0\u5883\u3067\u8d77\u52d5\u3057\u305f\u3089\u3001evolutions\u3067\u304b\u306a\u308a\u6614\u307e\u3067\u623b\u3063\u3066\u304b\u3089\u518d\u5b9f\u884c\u3055\u308c\u305d\u3046\u306b\u306a\u3063\u305f\u3002\u4f8b\u3048\u3070\u3001\u73fe\u5728\u306e\u6700\u65b0\u304c50.sql\u3060\u3068\u3057\u3066\u300120.sql\u307e\u3067Down\u304c\u5b9f\u884c\u3055\u308c\u3001\u305d\u306e\u5f8c\u518d\u5ea620\u301c50.sql\u306eUp\u304c\u5b9f\u884c\u3055\u308c\u305d\u3046\u306b\u306a\u3063\u305f\u3002<\/p>\n<p>\u539f\u56e0\u306f\u300120.sql \u3092\u9069\u7528\u3057\u305f\u5f8c\u306b\u300120.sql \u3092\u3044\u3058\u3063\u305f\u70ba\u3060\u3068\u601d\u3046\u3002\u305f\u3060\u3001Play 2.1\u306e\u6642\u306b\u306f\u3001\u9069\u7528\u6e08\u307f\u306e\u53e4\u3044\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4fee\u6b63\u3057\u3066\u3082\u305d\u3053\u307e\u3067\u5dfb\u304d\u623b\u3089\u306a\u304b\u3063\u305f\u3093\u3060\u3051\u3069\u3001Play 2.2\u3067\u82e5\u5e72\u4ed5\u7d44\u307f\u304c\u5909\u308f\u3063\u305f\u3089\u3057\u3044\u3002\u8a73\u3057\u304f\u306f<a title=\"Evolutions hash change\" href=\"https:\/\/github.com\/playframework\/playframework\/issues\/1575\" target=\"_blank\">\u3053\u3061\u3089<\/a>\u3092\u53c2\u7167\u3002<\/p>\n<p>\u5bfe\u7b56\u3068\u3057\u3066\u3001\u65b0\u3057\u3044\u307e\u3063\u3055\u3089\u306aDB\u3092\u4f5c\u3063\u3066\u305d\u3053\u3067evolutions\u3092\u5b9f\u884c\u3057\u3001\u305d\u306e\u5f8cplay_evolutions\u30c6\u30fc\u30d6\u30eb\u304b\u3089\u5fc5\u8981\u306a\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u5143\u306eDB\u306b\u79fb\u3057\u66ff\u3048\u308b\u3053\u3068\u3002<\/p>\n<h3>specs2\u95a2\u9023<\/h3>\n<p>\u4ee5\u524d\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u306e\u304cOK\u3060\u3063\u305f\u304c\u3001<\/p>\n<pre class=\"brush: scala;\">listOfStrings must contain(\"A\", \"B\") \/\/A, B\u304c\u4e21\u65b9\u542b\u307e\u308c\u3066\u3044\u306a\u3044\u3068\u30c0\u30e1\r\nlistOfStrings must not contain(\"C\", \"D\") \/\/ C, D\u306e\u3069\u3063\u3061\u304b\u3067\u3082\u542b\u307e\u308c\u3066\u3044\u305f\u3089\u30c0\u30e1<\/pre>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u304d\u63db\u3048\u306a\u3044\u3068\u30c0\u30e1\u3060\u3063\u305f\u3002specs2\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u4e00\u7dd2\u306a\u306e\u306b\u4f55\u3067\u3060\u308d\u3046\u3002Scala\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u5909\u308f\u3063\u305f\u304b\u3089\u304b\u306a\uff1f<\/p>\n<pre>listOfStrings must contain(allOf(\"A\", \"B\")) \/\/A, B\u304c\u4e21\u65b9\u542b\u307e\u308c\u3066\u3044\u306a\u3044\u3068\u30c0\u30e1\r\nlistOfStrings must not contain(\"C\")\r\nlistOfStrings must not contain(\"D\")<\/pre>\n<h2>\u6700\u5f8c\u306b<\/h2>\n<p>Play 2.0 \u2192 2.1\u306e\u6642\u3088\u308a\u306f\u697d\u3060\u3063\u305f\u6c17\u304c\u3059\u308b\u3002\u3042\u306e\u6642\u306fJson\u5468\u308a\u3068\u304b\u7d50\u69cb\u5909\u66f4\u306b\u306a\u3063\u305f\u3057\u3002<\/p>\n<p>\u73fe\u72b6\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u901a\u3063\u305f\u3060\u3051\u3067\u3001\u307e\u3060\u3042\u3093\u307e\u308a\u30c6\u30b9\u30c8\u3057\u3066\u306a\u3044\u306e\u3067\u3001\u4f55\u304b\u3042\u308c\u3070\u8ffd\u8a18\u4e88\u5b9a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6b63\u6708\u4f11\u307f\u3092\u5229\u7528\u3057\u3066\u3001Play! framework 2.1\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30922.2\u306b\u3057\u305f\u3002\u3042\u3001\u7686\u69d8\u3042\u3051\u307e\u3057\u3066\u304a\u3081\u3067\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002 \u7d50\u8ad6\u304b\u3089\u8a00\u3063\u3061\u3083\u3046\u3068\u3001Play 2.2 Migration Guide\u306b\u66f8\u3044\u3066\u3042\u308b\u60c5\u5831\u3067\u5927&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[20],"tags":[916],"class_list":["post-1322","post","type-post","status-publish","format-standard","hentry","category-scala","tag-play-framework"],"_links":{"self":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/posts\/1322","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/comments?post=1322"}],"version-history":[{"count":7,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/posts\/1322\/revisions"}],"predecessor-version":[{"id":1341,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/posts\/1322\/revisions\/1341"}],"wp:attachment":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/media?parent=1322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/categories?post=1322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/tags?post=1322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}