![](/img/trans.png)
[英]Using NetBeans UI designer, how can I copy UI components from one project and paste them into another?
[英]How can I copy project libraries from one project into another one in IntelliJ?
如果要將所有庫從gradle項目復制到另一個gradle項目,則只需要從build.gradle
文件復制dependencies
部分到另一個項目的build.gradle
。 通常,您的構建文件如下所示:
...
repositories {
mavenCentral() // that's where the gradle gets all libraries for project
}
dependencies { // it's the list of dependencies are used for your project
implementation 'library1Name'
implementation 'library2Name'
...
}
...
查看更多Gradle聲明依賴項
對於基於Gradle(或Maven)的項目,IDE提取您在build.gradle(pom.xml)文件中配置的依賴項后,會將它們存儲在Project級別的項目配置文件中。 請參閱文檔的“ 庫和全局庫”部分。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.