-
Notifications
You must be signed in to change notification settings - Fork 1
/
.project-keeper.yml
192 lines (188 loc) · 6.77 KB
/
.project-keeper.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
sources:
- type: maven
path: pom.xml
- type: maven
path: shared-model-classes/pom.xml
modules:
- maven_central
parentPom:
groupId: "com.exasol"
artifactId: "project-keeper-parent-pom"
version: "${revision}"
relativePath: "../parent-pom/pom.xml"
advertise: false
artifacts:
# [itest->dsn~customize-release-artifacts-custom~0]
- target/project-keeper-shared-model-classes-${version}.jar
- type: maven
path: project-keeper/pom.xml
modules:
- maven_central
- integration_tests
parentPom:
groupId: "com.exasol"
artifactId: "project-keeper-parent-pom"
version: "${revision}"
relativePath: "../parent-pom/pom.xml"
- type: maven
path: project-keeper-cli/pom.xml
modules:
- maven_central
- integration_tests
- jar_artifact
parentPom:
groupId: "com.exasol"
artifactId: "project-keeper-parent-pom"
version: "${revision}"
relativePath: "../parent-pom/pom.xml"
- type: maven
path: project-keeper-maven-plugin/pom.xml
modules:
- maven_central
- integration_tests
- udf_coverage
parentPom:
groupId: "com.exasol"
artifactId: "project-keeper-parent-pom"
version: "${revision}"
relativePath: "../parent-pom/pom.xml"
- type: maven
path: maven-project-crawler/pom.xml
modules:
- maven_central
- udf_coverage
- integration_tests
advertise: false
parentPom:
groupId: "com.exasol"
artifactId: "project-keeper-parent-pom"
version: "${revision}"
relativePath: "../parent-pom/pom.xml"
- type: maven
path: shared-test-setup/pom.xml
advertise: false
modules:
parentPom:
groupId: "com.exasol"
artifactId: "project-keeper-parent-pom"
version: "${revision}"
relativePath: "../parent-pom/pom.xml"
version:
fromSource: project-keeper/pom.xml
excludes:
# PK can't use itself as a Maven plugin
- regex: "W-PK-CORE-151: Pom file .* contains no reference to project-keeper-maven-plugin."
# No configuration necessary for aggregator POM
- "E-PK-CORE-103: Missing parent declaration in 'pom.xml'"
- "E-PK-CORE-17: Missing required file: 'pk_generated_parent.pom'"
- regex: "E-PK-CORE-17: Missing required file: 'src/test/resources/.*'"
- regex: "E-PK-CORE-17: Missing required file: '.settings/.*'"
linkReplacements:
- https://eclipse-ee4j.github.io/jsonb-api|https://projects.eclipse.org/projects/ee4j.jsonp
build:
workflows:
# [itest->dsn~customize-build-process.ci-build~0]
# [itest->dsn~customize-build-process.insert-step-after~0]
# [itest->dsn~customize-build-process.replace-step~0]
- name: "ci-build.yml"
stepCustomizations:
- action: INSERT_AFTER
job: build-and-test
stepId: setup-java
content:
name: Set up Go
id: setup-go
uses: actions/setup-go@v5
with:
go-version: "1.22"
cache-dependency-path: .project-keeper.yml
- action: INSERT_AFTER
job: build-and-test
stepId: setup-go
content:
name: Install Go tools
id: install-go-tools
run: go install github.com/google/[email protected]
- action: REPLACE
job: build-and-test
stepId: build-pk-verify
content:
name: Run tests and build with Maven
id: maven-build
run: |
mvn -T 1C --batch-mode clean install verify \
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
-DtrimStackTrace=false
env:
GITHUB_TOKEN: ${{ github.token }} # Required for integration tests
- action: INSERT_AFTER
job: build-and-test
stepId: sonar-analysis
content:
name: Run project-keeper itself
id: build-pk-verify
run: mvn --batch-mode com.exasol:project-keeper-maven-plugin:verify --projects .
- action: INSERT_AFTER
job: build-and-test
stepId: build-pk-verify
content:
name: Verify that metrics.json was created
id: verify-metrics-json
run: |
# Ensure that file exists:
ls -lh coverage-aggregator/target/metrics.json
cat coverage-aggregator/target/metrics.json
- action: INSERT_AFTER
job: build
stepId: setup-java
content:
name: Install Project Keeper before check-release
id: install-project-keeper
run: |
mvn --batch-mode --threads 1C install \
-Dmaven.test.skip=true -Dproject-keeper.skip=true \
-Dossindex.skip=true -Dmaven.javadoc.skip=true \
-Derror-code-crawler.skip=true -Dreproducible.skip=true
# [itest->dsn~customize-build-process.dependency-check~0]
- name: "dependencies_check.yml"
stepCustomizations:
- action: INSERT_AFTER
job: report_security_issues
stepId: setup-jdks
content:
name: Install Project Keeper
id: install-project-keeper
# This fixes https://github.com/exasol/project-keeper/issues/330
run: |
mvn --batch-mode --threads 1C install \
-Dmaven.test.skip=true -Dproject-keeper.skip=true \
-Dossindex.skip=true -Dmaven.javadoc.skip=true \
-Derror-code-crawler.skip=true -Dreproducible.skip=true
# [itest->dsn~customize-build-process.dependency-update~0]
- name: "dependencies_update.yml"
stepCustomizations:
- action: INSERT_AFTER
stepId: check-branch
content:
name: Install Project Keeper
id: install-project-keeper
# This fixes https://github.com/exasol/project-keeper/issues/330
run: |
mvn --batch-mode --threads 1C install \
-Dmaven.test.skip=true -Dproject-keeper.skip=true \
-Dossindex.skip=true -Dmaven.javadoc.skip=true \
-Derror-code-crawler.skip=true -Dreproducible.skip=true
# [itest->dsn~customize-build-process.release~0]
- name: "release.yml"
stepCustomizations:
- action: INSERT_AFTER
stepId: check-ci-build-status
content:
name: Install Project Keeper
id: install-project-keeper
# Required for running PK verify-release
run: |
mvn --batch-mode --threads 1C install \
-Dmaven.test.skip=true -Dproject-keeper.skip=true \
-Dossindex.skip=true -Dmaven.javadoc.skip=true \
-Derror-code-crawler.skip=true -Dreproducible.skip=true