aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/program/aedifex/metadata.lux
diff options
context:
space:
mode:
authorEduardo Julian2021-07-02 03:11:36 -0400
committerEduardo Julian2021-07-02 03:11:36 -0400
commit5cf4efa861075f8276f43a2516f5beacaf610b44 (patch)
treee21cf528d960c29d22cbc7e41180fa09e62f16d6 /stdlib/source/program/aedifex/metadata.lux
parent744ee69630de59ca3ba660b0aab6361cd17ce1b4 (diff)
No longer employing the capabilities model on the lux/world/* modules.
Capabilities should be opt-in, but using them in the standard library makes them mandatory.
Diffstat (limited to 'stdlib/source/program/aedifex/metadata.lux')
-rw-r--r--stdlib/source/program/aedifex/metadata.lux24
1 files changed, 23 insertions, 1 deletions
diff --git a/stdlib/source/program/aedifex/metadata.lux b/stdlib/source/program/aedifex/metadata.lux
index 08dab9ed3..86981eb62 100644
--- a/stdlib/source/program/aedifex/metadata.lux
+++ b/stdlib/source/program/aedifex/metadata.lux
@@ -1,12 +1,34 @@
(.module:
[lux #*
+ [data
+ [text
+ ["%" format (#+ format)]]]
[world
- [file (#+ Path)]]])
+ [file (#+ Path)]
+ [net
+ ["." uri (#+ URI)]]]]
+ ["." // #_
+ ["#." artifact (#+ Artifact)]])
(def: #export remote_file
Path
"maven-metadata.xml")
+(def: #export (remote_artifact_uri artifact)
+ (-> Artifact URI)
+ (let [/ uri.separator]
+ (format (get@ #//artifact.group artifact)
+ / (get@ #//artifact.name artifact)
+ / (get@ #//artifact.version artifact)
+ / ..remote_file)))
+
+(def: #export (remote_project_uri artifact)
+ (-> Artifact URI)
+ (let [/ uri.separator]
+ (format (get@ #//artifact.group artifact)
+ / (get@ #//artifact.name artifact)
+ / ..remote_file)))
+
(def: #export local_file
Path
"maven-metadata-local.xml")