1
無法從jar中排除依賴關係,我該如何去做這件事。無法從jar中排除依賴關係
compile ('com.amazonaws:aws-java-sdk:1.11.+') {
exclude module: 'aws-java-sdk-machinelearning'
}
gradle這個依賴仍然顯示這也和上面的排除總是獲取下載爲好。
無法從jar中排除依賴關係,我該如何去做這件事。無法從jar中排除依賴關係
compile ('com.amazonaws:aws-java-sdk:1.11.+') {
exclude module: 'aws-java-sdk-machinelearning'
}
gradle這個依賴仍然顯示這也和上面的排除總是獲取下載爲好。
我有類似的情況,但我確實喜歡下面。如果它有幫助..請選擇回答。
dependencies {
classpath "gradle.plugin.net.foragerr.jmeter:jmeter-gradle-plugin:1.0.5-2.13"
classpath "org.codehaus.groovy:groovy-all:2.4.3"
classpath(group: 'kg.apc', name: 'jmeter-plugins-extras-libs', version: '1.3.1') {
exclude group: 'commons-math3', module: 'commons-math3'
exclude group: 'commons-pool2', module: 'commons-pool2'
}
}
}
同時使用組名和模塊名與排除。 – RaGe
你的例子適合我。我沒有'machinelearning'依賴。當我刪除該行時,它就會出現。 Gradle版本2.13 – Nikem