0

目前是否可以在构建 Moqui 期间从 maven 存储库导入依赖项?下面是我的组件中的 build.gradle,但我在日志中没有看到任何内容表明它下载了任何内容?

谢谢你的帮助!

山姆

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'
}
4

1 回答 1

0

这是一个非常基本的问题,我需要将目录添加到 settings.gradle 并且一切正常。

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

我曾认为像组件中的屏幕、实体等一样,它会自动获取我的 gradle 脚本。

于 2015-06-23T10:33:15.440 回答