forked from build-trust/ockam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
37 lines (29 loc) · 793 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
plugins {
id 'network.ockam.gradle.commands' version '1.0.0'
}
// collect list of all directories in ockam/
def crates = []
def ockamDir = java.nio.file.Paths.get(projectDir.toPath().toString(), 'ockam').toFile()
ockamDir.eachFile(groovy.io.FileType.DIRECTORIES) {
crates << projectDir.toPath().relativize(it.toPath()).toFile()
}
crates << new File('../../examples/rust/get_started')
commands {
group = 'ockam'
rootDir = '../..'
list = [
build: [
'cargo --locked build',
'cargo --locked build --examples'
],
test: 'cargo --locked test',
clean: 'cargo clean',
lint: [
'cargo check',
'cargo fmt --all -- --check',
'cargo clippy --all --all-targets -- --cap-lints=warn',
'cargo audit',
],
]
directories = crates
}