Last active
September 9, 2015 13:54
-
-
Save kaakaa/2617c0e8d56b633f1e5b to your computer and use it in GitHub Desktop.
GradleでEclipseプラグインをビルド
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 参考: 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