LoginSignup
5
5

More than 5 years have passed since last update.

[Gradle] デフォルトのjarタスク実行時にjarに含めたくないファイルを除外する

Posted at

ant駆逐中に迷ったのでメモ

// jarに含めたくないファイルを除外
jar{
    from sourceSets.main.output
    exclude("*.dicon")
    exclude("*.bat")
    exclude("*.sh")
    exclude("*.txt")
    exclude("*.dtd")
    exclude("*.xml")
}

既存のタスクを簡単に拡張できるってのは素晴らしいですね。

5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5