2017-08-02 3 views
0

私のプロジェクトで、Springライブラリのバージョン4.3.8.RELEASEを使用したいと言いました。しかし、 "アセンブル"を実行すると、Gradleはいくつかの依存関係の最新バージョンを取得します。私は "Gradleの依存関係" を行うと、私は次を参照してください。いくつかのライブラリの最新バージョンを取得中の

+--- aopalliance:aopalliance:1.0 
| | +--- org.springframework.security:spring-security-core:3.2.0.RELEASE 
| | | +--- aopalliance:aopalliance:1.0 
| | | +--- org.springframework:spring-aop:3.2.6.RELEASE -> 4.3.8.RELEASE 
| | | | +--- org.springframework:spring-beans:4.3.8.RELEASE 
| | | | | \--- org.springframework:spring-core:4.3.8.RELEASE 
| | | | |   \--- commons-logging:commons-logging:1.2 
| | | | \--- org.springframework:spring-core:4.3.8.RELEASE (*) 
| | | +--- org.springframework:spring-beans:3.2.6.RELEASE -> 4.3.8.RELEASE (*) 
| | | +--- org.springframework:spring-context:3.2.6.RELEASE -> 4.3.8.RELEASE 
| | | | +--- org.springframework:spring-aop:4.3.8.RELEASE (*) 

地獄はGradleのようなものをやっている理由:AOP:3.2.6.RELEASE - > 4.3.8.RELEASE

を他のコマンドに依存関係はどこから来たのか?

+0

私の答えは役に立ちましたか? – LazerBanana

+1

でした。問題の一環として、私たちの内部組織でもありますが、100%一致する回答は誰にも与えられません。もちろん、それは助けになりました。ソリー私はそれに戻って忘れた... – hublo

答えて

2

これらは、別のライブラリからの推移的な依存性がある可能性があります。

dependencyInsightを使用して、どこから来ているのかを追跡します。

gradle -q dependencyInsight --configuration <configuration> --dependency <dependency> 

<dependency> - 依存

<configuration>の名前 - コンパイル、実行時など

あなたはまた、ファイルへの依存関係やパイプ、それを使用して手動で検索することができます。

gradle dependencies >deps.txt 

追加ソースgradle getting more dependency

関連する問題