File tree Expand file tree Collapse file tree 4 files changed +50
-19
lines changed Expand file tree Collapse file tree 4 files changed +50
-19
lines changed Original file line number Diff line number Diff line change 1
1
version : 2
2
2
updates :
3
- - package-ecosystem : maven
4
- directory : " /"
5
- schedule :
6
- interval : daily
7
- open-pull-requests-limit : 10
3
+ - package-ecosystem : maven
4
+ directory : " /"
5
+ schedule :
6
+ interval : daily
7
+ open-pull-requests-limit : 10
8
+ - package-ecosystem : " github-actions"
9
+ directory : " /"
10
+ schedule :
11
+ interval : " daily"
Original file line number Diff line number Diff line change 9
9
timeout-minutes : 10
10
10
strategy :
11
11
matrix :
12
- java : [ 8, 11, 17, 19 ]
12
+ java : [ 8, 11, 17, 21 ]
13
13
fail-fast : false
14
14
max-parallel : 64
15
- name : Test JDK ${{ matrix.java }}
15
+ name : CI JDK ${{ matrix.java }}
16
16
17
17
steps :
18
- - uses : actions/checkout@v3
19
- - uses : actions/setup-java@v3
18
+ - uses : actions/checkout@v4
19
+ - uses : actions/setup-java@v4
20
20
with :
21
21
java-version : ${{ matrix.java }}
22
- distribution : ' zulu'
23
- cache : ' maven'
22
+ distribution : zulu
23
+ cache : maven
24
24
- run : scripts/integration_test
25
25
# https://github.com/marketplace/actions/codecov
26
26
- run : ./mvnw -V --no-transfer-progress -P gen-code-cov clean package
Original file line number Diff line number Diff line change 25
25
<url >git@github.com:oldratlee/log4j2-ttl-thread-context-map.git</url >
26
26
</scm >
27
27
<issueManagement >
28
- <url >https://github.com/oldratlee/log4j2-ttl-thread-context-map/issues</url >
29
28
<system >GitHub Issues</system >
29
+ <url >https://github.com/oldratlee/log4j2-ttl-thread-context-map/issues</url >
30
30
</issueManagement >
31
+ <ciManagement >
32
+ <system >GitHub Actions</system >
33
+ <url >https://github.com/oldratlee/log4j2-ttl-thread-context-map/actions</url >
34
+ </ciManagement >
31
35
<organization >
32
36
<name >Alibaba</name >
33
37
<url >https://www.alibaba.com</url >
130
134
<!--
131
135
official docs: https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
132
136
133
- add maven-enforce -plugin to make sure the right jdk is used
137
+ add maven-enforcer -plugin to make sure the right jdk is used
134
138
https://stackoverflow.com/a/18420462/922688
135
139
-->
136
140
<plugin >
143
147
</goals >
144
148
<configuration >
145
149
<rules >
150
+ <requireJavaVersion >
151
+ <version >1.8</version >
152
+ </requireJavaVersion >
146
153
<requireMavenVersion >
147
154
<version >3.3.9</version >
148
155
</requireMavenVersion >
149
156
</rules >
150
157
</configuration >
151
158
</execution >
159
+ <execution >
160
+ <id >enforce-property</id >
161
+ <goals >
162
+ <goal >enforce</goal >
163
+ </goals >
164
+ <configuration >
165
+ <rules >
166
+ <!-- https://maven.apache.org/enforcer/enforcer-rules/requireProperty.html -->
167
+ <requireProperty >
168
+ <property >project.version</property >
169
+ <regex >^\d\.\d+\.\d+(-(Alpha|Beta|RC)\d+)?$|^\d(\.\d+)?\.(\d+|x)-SNAPSHOT$</regex >
170
+ <regexMessage >"Project version(${project.version} ) format is invalid!"</regexMessage >
171
+ </requireProperty >
172
+ <requireProperty >
173
+ <property >maven.multiModuleProjectDirectory</property >
174
+ </requireProperty >
175
+ </rules >
176
+ <fail >true</fail >
177
+ </configuration >
178
+ </execution >
152
179
</executions >
153
180
</plugin >
154
181
<plugin >
Original file line number Diff line number Diff line change @@ -11,12 +11,12 @@ color_echo() {
11
11
local color=$1
12
12
shift
13
13
14
- # NOTE: $'foo' is the escape sequence syntax of bash
15
- local -r ec= $' \033 ' # escape char
16
- local -r eend= $' \033 [0m ' # escape end
17
-
18
- # if stdout is the console, turn on color output.
19
- [ -t 1 ] && echo " ${ec} [1; ${color} m $* ${eend} " || echo " $* "
14
+ # if stdout is the terminal, turn on color output.
15
+ if [[ -t 1 || " ${GITHUB_ACTIONS :- } " = true ]] ; then
16
+ printf " \e[1;%sm%s\e[0m\n " " $color " " $* "
17
+ else
18
+ echo " $* "
19
+ fi
20
20
}
21
21
22
22
die () {
You can’t perform that action at this time.
0 commit comments