forked from airlift/airlift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jreleaser.yml
76 lines (72 loc) · 2.3 KB
/
jreleaser.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Hooks that will run on the CI to generate the summary of the steps
hooks:
condition: '"{{ Env.CI }}" == true'
script:
before:
- filter:
includes: ['session']
run: |
echo "### {{command}}" >> $GITHUB_STEP_SUMMARY
echo "| Step | Outcome |" >> $GITHUB_STEP_SUMMARY
echo "| ---- | ------- |" >> $GITHUB_STEP_SUMMARY
success:
- filter:
excludes: ['session']
run: 'echo "| {{event.name}} | :white_check_mark: |" >> $GITHUB_STEP_SUMMARY'
- filter:
includes: ['session']
run: echo "" >> $GITHUB_STEP_SUMMARY
failure:
- filter:
excludes: ['session']
run: 'echo "| {{event.name}} | :x: |" >> $GITHUB_STEP_SUMMARY'
- filter:
includes: ['session']
run: |
echo "" >> $GITHUB_STEP_SUMMARY
echo "### Failure" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "{{event.stacktrace}}\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
# Project configuration
project:
name: airlift
description: Airlift is a framework for building REST services in Java.
license: Apache-2
java:
groupId: io.airlift
multiProject: true
# Ordered as defined in the https://jreleaser.org/guide/latest/concepts/workflow.html#_full_release
signing:
active: ALWAYS
armored: true
# Deploy to OSSRH
deploy:
maven:
pomchecker:
failOnWarning: false # We don't want to fail the build on warnings
failOnError: false # We don't want to fail the build on errors
nexus2:
maven-central:
active: ALWAYS
url: https://oss.sonatype.org/service/local
snapshotUrl: https://oss.sonatype.org/content/repositories/snapshots/
javadocJar: false # Not every module has javadoc (packaging)
closeRepository: true
releaseRepository: true
stagingRepositories:
- target/checkout/target/staging-deploy
# Release to Github
release:
github:
owner: airlift
overwrite: true # if tag already exists, overwrite it
skipTag: true # created by the release plugin
branch: master
uploadAssets: NEVER
tagName: '{{projectVersion}}'
files: false
draft: false
releaseNotes:
enabled: true
configurationFile: .github/release.yml