21
18

More than 5 years have passed since last update.

Gradleでサブプロジェクトからライブラリを除外する

Last updated at Posted at 2014-11-01

ライブラリからライブラリを除外

compile('commons-configuration:commons-configuration:1.6') {
    exclude module: 'commons-digester'
    exclude module: 'commons-beanutils-core'
}

サブプロジェクトからライブラリを除外

compile (project(':someproject')) {
    exclude group: 'org.apache.pdfbox', module: 'pdfbox'
}

Groupまで指定する必要があり、nameのみの指定だとエラーになります

21
18
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
21
18