aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/program/aedifex/local.lux
blob: 4fec9c339b30a4d11cf822ba4192041e9cc170ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
(.module:
  [library
   [lux "*"
    [data
     [text
      ["%" format {"+" [format]}]]]
    [world
     [net
      ["." uri {"+" [URI]}]]]]]
  ["." // "_"
   ["#." artifact {"+" [Version Artifact]}]])

(def: / uri.separator)

(def: .public repository
  URI
  (format ".m2" / "repository"))

(def: .public (uri version artifact)
  (-> Version Artifact URI)
  (format ..repository / (//artifact.uri version artifact)))