Moqui Component with Gradle Maven Repo Dependencies

131 Views Asked by At

Is it currently possible to import a dependencies from a maven repo during the build of Moqui? Below is my build.gradle in my component but I don't see anything in the logs to suggest it downloads anything?

Thanks for any help!

Sam

apply plugin: 'groovy'

sourceCompatibility = '1.7'

def moquiDir = file(projectDir.absolutePath + '/../../..')
def frameworkDir = file(moquiDir.absolutePath + '/framework')

repositories {
    mavenCentral()
}

dependencies {
    compile group: 'com.braintreepayments.gateway', name: 'braintree-java', version: '2.45.0'
}
1

There are 1 best solutions below

1
On BEST ANSWER

It was a very basic problem, I needed to add the directory to settings.gradle and things work.

include 'framework', 'runtime/base-component/example', 'runtime/mantle/mantle-usl', 'runtime/component/braintree'

I had thought that like screens, entities etc in components it would pick up my gradle script automatically.