blob: c14f8c78b681ae2a2b050c3528fba3e95dd9202d [file] [log] [blame] [view]
James E. King IIIb1d63e72019-01-22 14:16:39 -05001# Apache Thrift ActionScript Library
2
3## Building
4
5We use gradle and gradlefx to build the as3 library. Unfortunately gradlefx requires
6an older version of gradle (2.5) but it still works - for now. If you use the docker
7container to do the build, the Adobe Flex SDK 4.6 is installed and the FLEX_HOME
8environment 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
28We use a similar gradle-based signing and publishing mechanism as in the java
29library. See the java library [README.md](../java/README.md) for more details.
30
31To publish into a local .m2 repository you can mount a directory into the docker container,
32for 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
37You will find your `~/.m2` directory is now populated with a release build `swc`.