How do you do the equivalent of adding a jar to the classpath when using gradle?
I have been searching and reading the doc but i cannot get it to compile.
Edit: As pointed out below there is in fact a previous question about this very issue.
If you plan later to switch to a real repository, you can define a repository in local library folder first following similar conventions as any other Maven repo uses:
repositories {
flatDir name: "local-lib", dirs: "$projectDir/lib"
}
dependencies {
compile ':avalon-framework-api:4.3.1'
compile ':avalon-framework-impl:4.3.1'
}
lib
folder content:
avalon-framework-api-4.3.1.jar
avalon-framework-impl-4.3.1.jar
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.