Adelin
Adelin

Reputation: 18951

How add more than one dependency in Gradle build file?

This question may be silly but, I could not find a simple example how to add more than one dependency to dependencies closure in a gradle file the example given in the documentations is :

dependencies {
 compile 'commons-beanutils:commons-beanutils:1.8.3'
}

What if I want add spring and Hibernate and other ?

Upvotes: 1

Views: 236

Answers (1)

yonisha
yonisha

Reputation: 3096

dependencies {
    compile 'commons-beanutils:commons-beanutils:1.8.3'
    compile 'some:other-dependency:1.8.3'
}

You may also want to read Gradle Dependency Management Basics and Advanced Dependency Management

Upvotes: 1

Related Questions