Bulid.gradle:
More information: https://www.cnblogs.com/gzdaijie/p/5296624.html
Http://www.cnblogs.com/gzdaijie/category/798374.html
Https://docs.gradle.org/current/userguide/dependency_management_for_java_projects.html
Group' [Package name] 'Version' [Version] 'Buildscript{Repositories{Mavencentral()}}ApplyPlugin' Java 'Sourcecompatibility=[language version]Targetcompatibility=[language version]Repositories{Mavencentral()}Sourcesets{Main.java.+= ' [Source code directory] ' test. Java.+= ' [Test code Catalog] ' }dependencies {compile group: ' [dependent package name] ' , Span class= "NL" >name: ' [dependent name] ' version: testcompile group: name: "[Test code dependent name] ' version: [version] '
/span>
Compile (' com.neulion:savanna-common:6.17.0 ') {
changing = true//means pulling up the latest code from the library, and if someone commits the jar of the current module and the name does not change, it will pull from the cache
Exclude group: ' Javax.servlet '
Exclude group: ' javax.servlet.jsp '
Exclude group: ' Org.apache.axis '
}
< Span class= "o" > < Span class= "o" > < Span class= "NL" > } /span>
Dependency management of the Java Gradle Getting Started Guide (adding dependencies, warehouses, versioning conflicts)