Skip to content

Instantly share code, notes, and snippets.

@kaakaa
Last active September 9, 2015 13:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaakaa/2617c0e8d56b633f1e5b to your computer and use it in GitHub Desktop.
Save kaakaa/2617c0e8d56b633f1e5b to your computer and use it in GitHub Desktop.
GradleでEclipseプラグインをビルド
// 参考: http://mikamikuh.hatenablog.com/entry/2013/06/24/234405
apply plugin: 'java'
apply plugin: 'eclipse'
sourceSets {
main {
java.srcDir 'src'
resources {
include "META-INF/*", "plugin.xml", "icons/*"
srcDir './'
}
}
}
dependencies {
compile fileTree(dir: /C:\\Program Files\eclipse\plugins/, include: '**/*.jar')
}
jar {
// METAINF/MANIFEST.MF はGradleが自動生成したものに置き換えられてしまうため、
// Eclipseが生成したMANIFEST.MFをjarに含めるよう指定する
manifest {
from('META-INF/MANIFEST.MF')
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment