-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml.jinja2
More file actions
28 lines (27 loc) · 892 Bytes
/
Taskfile.yml.jinja2
File metadata and controls
28 lines (27 loc) · 892 Bytes
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
version: '3'
tasks:
# Update this repo with the copier-template
# `--vcs-ref HEAD` to avoid `You are downgrading from 0.1.0.post2.dev0+0a9a33e to 0.1.0. Downgrades are not supported.`
update:
cmds:
- |
copier update --vcs-ref HEAD .
{%- if package_manager == 'maven' %}
# Install the package locally
# * -DskipTests and not -Dmaven.test.skip so that test packaging is not skipped
# * use --update-snapshots if the dependency pom was changed
install:
cmds:
- ./mvnw install -DskipTests
# Quick check to get all java docs error
# Without javadoc, no publication to central
javadoc:
cmds:
- ./mvnw javadoc:javadoc -q | grep "error"
{%- endif %}
{%- if package_manager == 'maven' and (application_type == 'pom' or application_type == 'library') %}
# Deploy the snapshot to maven central
deploy:
cmds:
- deploy
{%- endif %}