Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
Update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
YorkShen committed Oct 18, 2019
1 parent d8e1ed9 commit 1a4c9da
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions android/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@ Double type `SHIFT` and enter `Build Variants`, will give you build variants win
### When to publish SNAPSHOT
When some commits of playground rely on unpublished features of weex-sdk,a SNAPSHOT of weex-sdk will be needed to support it.
### How to publish SNAPSHOT
`cd android `
`./gradlew clean install ArtifactoryPublish -PweexVersion=$PUBLISH_VERSION -PbintrayUser=alibabaweex -PbintrayApiKey=$JCENTER_TOKEN `

```
cd android
./gradlew clean install ArtifactoryPublish -PartifactName="sdk_legacy" -PuseApachePackageName="false" -PunbundlingJSC="true" -PbuildRuntimeApi=true -PweexVersion=$PUBLISH_VERSION -PbintrayUser=alibabaweex -PbintrayApiKey=$JCENTER_TOKEN
```

* Explanation for variable:
$PUBLISH_VERSION The version of snapshot, like 0.26.1.3-SNAPSHOT
Expand Down
1 change: 0 additions & 1 deletion android/sdk/buildSrc/download_jsc.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ task copyJSCHeaderToWeexCore(type: Copy, dependsOn: unzipJSC) {
into '../../weex_core/Source/include/JSCHeaderNew/JavaScriptCore'
includeEmptyDirs false
inputs.dir(new File(jsc_dir, 'include'))
outputs.upToDateWhen {false}
}

preBuild.dependsOn copyJscToJniDir
Expand Down
3 changes: 2 additions & 1 deletion android/sdk/buildSrc/jcenter.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ install {
pom {
project {
packaging 'aar'
name project.artifactName
name 'Apache Incubator-Weex'
artifactId project.artifactName
groupId 'org.apache.weex'
url siteUrl
licenses {
Expand Down

0 comments on commit 1a4c9da

Please sign in to comment.