modular.gradle 1.27 KB
Newer Older
洪国微 committed
1 2 3 4 5 6 7 8 9 10
modular {
    packageName "com.ydl.confide"
    // 模块发布需要的参数
    publish {
        modules {
            xlzx {
                //发布信息 module/api 通用
                groupId = "com.ydl"
                artifactId = "m-confide-module-xlzx"
                // 上报的业务模块 aar 包的版本号
11
                version = rootProject.ext.ydlPublishVersion[childProject.getName()]
洪国微 committed
12 13 14 15 16 17 18
            }

            ydl{
                //发布信息 module/api 通用
                groupId = "com.ydl"
                artifactId = "m-confide-module-ydl"
                // 上报的业务模块 aar 包的版本号
19
                version = rootProject.ext.ydlPublishVersion[childProject.getName()]
洪国微 committed
20 21 22 23 24 25 26
            }
        }

        api {
            //发布信息 module/api 通用
            groupId = "com.ydl"
            artifactId = "m-confide-api"
27
            version = rootProject.ext.ydlPublishVersion["${childProject.getName()}-api"]
洪国微 committed
28 29 30 31 32 33 34 35 36
            // API 层打包时需要引入的依赖
            apiDependencies {
                implementation "com.google.code.gson:gson:2.8.2"
                implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
                implementation 'com.alibaba:arouter-api:1.4.1'
            }
        }
    }
}