-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
41 lines (37 loc) · 1.4 KB
/
Taskfile.yaml
File metadata and controls
41 lines (37 loc) · 1.4 KB
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
38
39
40
41
---
version: '3'
tasks:
default:
cmds:
- task --list-all
set-version:
desc: "Update versions in gradle and readme files"
summary: |
Update versions in gradle and readme files.
Usage:
- Set individual version for apoc and neo4j:
set-version apoc_version=<version> neo4j_version=<version>
- Set same version for apoc and neo4j:
set-version version=<version>
aliases:
- common:set-version # used in ci
preconditions:
- sh: test -n "{{.apoc_version}}"
msg: "apoc_version must be supplied (apoc_version or version)"
- sh: test -n "{{.neo4j_version}}"
msg: "neo4j_version must be supplied (neo4j_version or version)"
dir: "{{ .WORKDIR }}"
cmds:
- echo "Updating versions Apoc={{ .apoc_version}}, Neo4j={{ .neo4j_version }}"
- ./gradlew setVersion -PnewNeo4jVersion={{ .neo4j_version }} -PnewApocVersion={{ .apoc_version}}
vars:
apoc_version: "{{ .apoc_version | default .version}}"
neo4j_version: "{{ .neo4j_version | default .version}}"
publish:
desc: "Build and publish via gradle"
cmd: ./gradlew publish -Pneo4jVersionOverride=${{ .neo4j_version }} \
{{if .gradle_init}}--init-script {{.gradle_init}}{{end}} \
--info
vars:
neo4j_version: "{{ .NEO4J_VERSION | default .version}}"
gradle_init: "{{ .GRADLE_INIT_FILE_PATH | default \"\"}}"