<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>int128</author_name>
  <author_url>https://blog.hatena.ne.jp/int128/</author_url>
  <blog_title>GeekFactory</blog_title>
  <blog_url>https://int128.hatenablog.com/</blog_url>
  <categories>
    <anon>gradle</anon>
    <anon>groovy</anon>
  </categories>
  <description>GradleプラグインのテストにGradle TestKitを利用すると便利です。 何に使うの？ ユニットテストではうまく動いているのに、実際のプロジェクトにプラグインを適用するとうまく動かないことがあります。これはGroovyのバージョンが違うとか、ビルドスクリプトのスコープで暗黙的に定義されている変数があるといったことが原因です。MetaClassやdelegateで特殊なことをしていると起こることがあります。 実際のプロジェクトにプラグインを適用するには、以下の手順が必要になります。 プラグインのJARをビルドする。 プラグインをローカルのMavenリポジトリに配置する。 テスト対象プロ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fint128.hatenablog.com%2Fentry%2F2016%2F09%2F22%2F215815&quot; title=&quot;Gradle TestKitでプラグインをテストする - GeekFactory&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://ecx.images-amazon.com/images/I/51EV2ZpCwLL.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-09-22 21:58:15</published>
  <title>Gradle TestKitでプラグインをテストする</title>
  <type>rich</type>
  <url>https://int128.hatenablog.com/entry/2016/09/22/215815</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
