apply plugin: 'com.huawei.ohos.library' ohos { compileSdkVersion 6 defaultConfig { compatibleSdkVersion 5 } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' } /** * 上传 maven 仓库 */ //apply from: '../upload.gradle' rootProject.ext { DEFAULT_ARTIFACT_ID = "AsymmetricGridview" // 替换为自己库的 artifactId DEFAULT_VERSION = '1.0.0' }