modular.gradle 1.33 KB
Newer Older
1
modular {
konghaorui committed
2
    //模块包名
3 4 5 6 7 8 9
    packageName "com.yidianling.consultant"
    // 模块发布需要的参数
    publish {
        modules {
            xlzx {
                groupId = "com.ydl"
                artifactId = "m-consultant-module-xlzx"
konghaorui committed
10
                // 上报的 心理咨询 业务模块 aar 包的版本号
11
                version = rootProject.ext.ydlPublishVersion[childProject.getName()]
12 13 14 15 16
            }

            ydl{
                groupId = "com.ydl"
                artifactId = "m-consultant-module-ydl"
konghaorui committed
17
                // 上报的 壹点灵 业务模块 aar 包的版本号
18
                version = rootProject.ext.ydlPublishVersion[childProject.getName()]
19 20 21 22
            }
        }

        api {
konghaorui committed
23
            // 壹点灵/心理咨询 业务模块 API层 jar包的发布信息
24 25
            groupId = "com.ydl"
            artifactId = "m-consultant-api"
konghaorui committed
26
            //开发时注释掉版本号,发布api时打开
徐健 committed
27
            version = rootProject.ext.ydlPublishVersion[childProject.getName()+"-api"]
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'
            }
        }
    }
}