| James E. King III | b1d63e7 | 2019-01-22 14:16:39 -0500 | [diff] [blame] | 1 | # Apache Thrift ActionScript Library |
| 2 | |
| 3 | ## Building |
| 4 | |
| 5 | We use gradle and gradlefx to build the as3 library. Unfortunately gradlefx requires |
| 6 | an older version of gradle (2.5) but it still works - for now. If you use the docker |
| 7 | container to do the build, the Adobe Flex SDK 4.6 is installed and the FLEX_HOME |
| 8 | environment variable is configured: |
| 9 | |
| 10 | dev@ubuntu:~/thrift$ docker run -v $(pwd):/thrift/src:rw -it thrift/thrift-build:ubuntu-bionic /bin/bash |
| 11 | root@7624b61bbf84:/thrift/src# cd lib/as3 |
| 12 | root@7624b61bbf84:/thrift/src/lib/as3# ./gradlew -Prelease=true compileFlex |
| 13 | |
| 14 | ... |
| 15 | |
| 16 | :compileFlex UP-TO-DATE |
| 17 | |
| 18 | BUILD SUCCESSFUL |
| 19 | |
| 20 | Total time: 10.784 secs |
| 21 | |
| 22 | root@7624b61bbf84:/thrift/src/lib/as3# ls -ls build/ |
| 23 | total 4 |
| 24 | 4 -rw-r--r-- 1 root root 1379 Jan 22 19:23 libthrift-as3.swc |
| 25 | |
| 26 | ## Publishing |
| 27 | |
| 28 | We use a similar gradle-based signing and publishing mechanism as in the java |
| 29 | library. See the java library [README.md](../java/README.md) for more details. |
| 30 | |
| 31 | To publish into a local .m2 repository you can mount a directory into the docker container, |
| 32 | for example: |
| 33 | |
| 34 | dev@ubuntu:~/thrift$ docker run -v~/.m2:/root/.m2 -v $(pwd):/thrift/src:rw -it thrift/thrift-build:ubuntu-bionic /bin/bash |
| 35 | root@7624b61bbf84:/thrift/src/lib/as3# ./gradlew -Prelease=true publishToMavenLocal |
| 36 | |
| 37 | You will find your `~/.m2` directory is now populated with a release build `swc`. |