Skip to content

Commit f46cd49

Browse files
committed
update the aws-api+s3, still not working
1 parent 9c95c57 commit f46cd49

File tree

3 files changed

+19
-9
lines changed

3 files changed

+19
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Here the list of libraries tested:
2525
| :x: | [clj-sophia](./clj-sophia) | A fast RAM-Disk hybrid storage | *Runtime error/JNA* |
2626
| :white_check_mark: | [clj-uuid](./clj-uuid) | RFC4122 Unique Identifiers for Clojure | No objects in namespaced uuids |
2727
| :white_check_mark: | [clostache](./clostache) | {{ mustache }} for Clojure | |
28-
| :question: | cognitect/aws-api+s3 | Cloud API library | |
28+
| :x: | [cognitect/aws-api+s3](./aws-api-s3) | Cloud API library | *Buildtime error* |
2929
| :white_check_mark: | [component](./component) | Managing lifecycle and dependencies of software | |
3030
| :white_check_mark: | [datascript](./datascript) | Immutable database and Datalog query engine | |
3131
| :warning: | [fastmath](./fastmath) | Fast and primitive math and stats library | *See README* |

aws-api-s3/project.clj

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
(defproject aws-api-s3 "0.1.0-SNAPSHOT"
22

3-
:dependencies [[org.clojure/clojure "1.10.0"]
4-
[com.cognitect.aws/api "0.8.301"]
5-
[com.cognitect.aws/endpoints "1.1.11.537"]
6-
[com.cognitect.aws/s3 "714.2.430.0"]]
3+
:dependencies [[org.clojure/clojure "1.10.1"]
4+
[com.cognitect.aws/api "0.8.456"]
5+
[com.cognitect.aws/endpoints "1.1.11.789"]
6+
[com.cognitect.aws/s3 "799.2.682.0"]]
77

88
:main simple.main
99

@@ -12,10 +12,21 @@
1212
:dev {:plugins [[lein-shell "0.5.0"]]}}
1313

1414
:aliases
15-
{"native"
15+
{"native-config"
16+
["shell"
17+
;; run the application to infer the build configuration
18+
"java" "-agentlib:native-image-agent=config-output-dir=./target/config/"
19+
"-jar" "./target/${:uberjar-name:-${:name}-${:version}-standalone.jar}"]
20+
21+
"native"
1622
["shell"
1723
"native-image" "--report-unsupported-elements-at-runtime" "--no-server"
24+
"-H:+PrintClassInitialization"
25+
"-H:ConfigurationFileDirectories=./target/config/"
26+
"-H:+AllowIncompleteClasspath"
1827
"--initialize-at-build-time"
28+
;;"--initialize-at-run-time=com.amazonaws.auth.DefaultAWSCredentialsProviderChain"
29+
"--enable-http" "--enable-https" "--enable-all-security-services"
1930
"-jar" "./target/${:uberjar-name:-${:name}-${:version}-standalone.jar}"
2031
"-H:Name=./target/${:name}"]
2132

aws-api-s3/src/simple/main.clj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
(:gen-class))
44

55

6-
(def s3 (aws/client {:api :s3}))
7-
86
(defn -main []
9-
(prn (aws/invoke s3 {:op :ListBuckets})))
7+
(let [s3 (aws/client {:api :s3})]
8+
(prn (aws/invoke s3 {:op :ListBuckets}))))

0 commit comments

Comments
 (0)