5 Star 3 Fork 0

HarmonyOS-TPC/Keyframes

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 3.27 KB
一键复制 编辑 原始数据 按行查看 历史
于光叶 提交于 2021-04-22 10:54 . support sdk 5
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply plugin: 'com.huawei.ohos.app'
ohos {
compileSdkVersion 5
defaultConfig {
compatibleSdkVersion 5
}
}
buildscript {
repositories {
maven {
url 'https://repo.huaweicloud.com/repository/maven/'
}
maven {
url 'https://developer.huawei.com/repo/'
}
jcenter()
}
dependencies {
classpath 'com.huawei.ohos:hap:2.4.2.5'
classpath 'com.huawei.ohos:decctest:1.0.0.6'
}
}
allprojects {
repositories {
maven {
url 'https://repo.huaweicloud.com/repository/maven/'
}
maven {
url 'https://developer.huawei.com/repo/'
}
jcenter()
}
}
apply plugin: 'maven'
apply plugin: 'maven-publish'
def tagMap=[ui:"UI",animation:"Animation",security:"Security",tool:"Tool",
network:"Network",filedata:"FileData",media: "Media",imagecache: "ImageCache",other: "Other"]
ext{
DEFAULT_GROUP_ID = 'io.openharmony.tpc.thirdlib'
DEFAULT_URL="https://gitee.com/openharmony-tpc/Keyframes/"
DEFAULT_ARTIFACT_ID = 'Keyframes'
DEFAULT_VERSION = '1.0.0'
HPM_GROUP_ID = DEFAULT_GROUP_ID
HPM_ARTIFACT_ID = DEFAULT_ARTIFACT_ID
HPM_NAME = "@opensource/" + HPM_ARTIFACT_ID
HPM_VERSION = DEFAULT_VERSION
HPM_TAG= tagMap.animation
HPM_KEYWORDS="animation,extendscript,abode after effect"
HPM_DESCRIPTION ="Keyframes is a combination of (1) an ExtendScript script that extracts image animation data from an After Effects file and (2) a corresponding rendering library for OpenHarmony."
HPM_LICENSE_NAME ="BSD License"
HPM_LICENSE_URL="https://gitee.com/openharmony-tpc/Keyframes/blob/master/LICENSE"
HPM_SCM_CONNECTION="scm:git:https://gitee.com/openharmony-tpc/Keyframes"
HPM_SCM_URL="https://gitee.com/openharmony-tpc/Keyframes.git"
}
task publish2hpm {
doLast {
pom {
project {
groupId(rootProject.ext.HPM_GROUP_ID)
artifactId(rootProject.ext.HPM_ARTIFACT_ID)
description (rootProject.ext.HPM_DESCRIPTION)
version (rootProject.ext.HPM_VERSION)
licenses{
license{
name = rootProject.ext.HPM_LICENSE_NAME
url = rootProject.ext.HPM_LICENSE_URL
}
}
scm{
connection = rootProject.ext.HPM_SCM_CONNECTION
url = rootProject.ext.HPM_SCM_URL
}
url rootProject.ext.DEFAULT_URL
properties = [
'hpm.bundle.name' : rootProject.ext.HPM_NAME,
'hpm.bundle.tags' : rootProject.ext.HPM_TAG,
'hpm.bundle.keywords': rootProject.ext.HPM_KEYWORDS
]
}
}.writeTo("pom4hpm.xml")
def proc
if (System.properties['os.name'].contains('Windows')) {
proc = 'hpm.cmd x2h gradle'.execute()
} else {
proc = 'hpm x2h gradle'.execute()
}
proc.waitForProcessOutput(System.out, System.err)
def pom4hpm = file("./pom4hpm.xml")
//delete pom4hpm
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/HarmonyOS-tpc/Keyframes.git
git@gitee.com:HarmonyOS-tpc/Keyframes.git
HarmonyOS-tpc
Keyframes
Keyframes
master

搜索帮助