代码拉取完成,页面将自动刷新
// 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
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。