Skip to content

Commit f36e16d

Browse files
author
Dennis Labordus
committed
Describe how to make a release and moving parts to new file.
Signed-off-by: Dennis Labordus <[email protected]>
1 parent 2ad178c commit f36e16d

File tree

2 files changed

+35
-27
lines changed

2 files changed

+35
-27
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,9 @@ We have two places for our documentation
142142
##### LF Energy Wiki
143143
LF Energy has it's own [CoMPAS specific Wiki](https://wiki.lfenergy.org/display/HOME/CoMPAS). This is the place for documenation about CoMPAS in general (like roadmap and the community call agendas).
144144

145-
##### CoMPAS Architecture Github Pages
146-
There is also a [Github Pages](https://com-pas.github.io/compas-architecture/) website for CoMPAS architecture specific topics.
145+
#### Architecture and technologies
146+
For all architecture and technology choices (for example frameworks, build tools, database choices, etcetera),
147+
please check the source code (duh!) and our [CoMPAS Architecture Github Pages](https://com-pas.github.io/compas-architecture/).
147148

148149
#### Copyright and Licensing
149150
Copyright and license information is done on per-file basis. We use the specification of [REUSE](https://reuse.software/spec/)
@@ -153,23 +154,6 @@ Every source code repository within CoMPAS has a Github Action for checking agai
153154

154155
For more information, check the [Copyright Guidelines](#copyright-guidelines) section.
155156

156-
#### Architecture and technologies
157-
For all architecture and technology choices (for example frameworks, build tools, database choices, etcetera),
158-
please check the source code (duh!) and our [CoMPAS Architecture Github Pages](https://com-pas.github.io/compas-architecture/).
159-
160-
#### Adding custom badges to your README
161-
Badges are great for quickly checking several status reports of a specific repository.
162-
Sometimes a application doesn't serve badges ([LFX Security tool](https://security.lfx.linuxfoundation.org/) for example), and you need to do it yourself.
163-
We use [shields.io](https://shields.io/) for this problem.
164-
165-
In case of the LFX Security Tool, we used the following:
166-
- Go to [shields.io](https://shields.io/).
167-
- Go to the 'Dynamic' section.
168-
- Choose JSON as data type.
169-
- Insert 'LFX Security Tool' as the label.
170-
- Insert the API to use, in case of our LFX Security tool projects we use [this API](https://api.security.lfx.linuxfoundation.org/v1/project/e8b6fdf9-2686-44c5-bbaa-6965d04ad3e1/issues).
171-
- Now you can query using JsonPath. To get all open high issues from the 'CoMPAS Core' project, use `issues[?(@['repository-name'] == 'compas-core')]['high-open-issues']`.
172-
- Choose a color and a pre- or surfix text.
173157

174158
### Github Project Boards
175159
For managing the CoMPAS issues created in all the separate repositories, we use the [Projects Board](https://github.com/orgs/com-pas/projects) of Github.

DEVELOPING.md

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
# Developing for CoMPAS
22

3+
#### Table Of Contents
4+
5+
* [Tooling](#tooling)
6+
* [Styleguides](#styleguides)
7+
* [IDEs](#ides)
8+
* [GitHub Actions](#github-actions)
9+
* [Others](#others)
10+
311
## Tooling
412

5-
#### GitHub
13+
### GitHub
614
What's GitHub? It's where you're looking right now! (Joking!).
715

816
We are using GitHub for hosting our Git repositories. GitHub is being used for creating issues and creating Pull
@@ -20,7 +28,7 @@ GitHub Action (most of the time on each push).
2028

2129
A Pull Request can't be merged before all SonarCloud issues are being fixed!
2230

23-
#### GitHub Packages
31+
### GitHub Packages
2432
To make artifacts available between the different GIT repositories we are using GitHub Packages to distribute these.
2533
Every GIT repository can build its artifacts and publish these to GitHub Packages.
2634
Other GIT repositories can then add GitHub Packages as Maven repository to their build tool.
@@ -30,13 +38,13 @@ To use GitHub Packages a username and token is needed. The username is your GitH
3038
in GitHub by going to your settings, Developer settings, Personal access tokens.
3139
Generate a new token here and make sure that the scope "read:packages" is enabled. Use this token below to configure the build tools.
3240

33-
#### Basic Maven
41+
### Basic Maven
3442
The project uses Maven to manage the build. Most projects use multi-module structures to build all code. A basic command to run Maven is:
3543
```
3644
$ maven clean verify
3745
```
3846

39-
#### GitHub Packages in Maven
47+
### GitHub Packages in Maven
4048
To use GitHub Packages in Maven an extra repository need to be added to the build process.
4149
```xml
4250
<repositories>
@@ -49,7 +57,7 @@ To use GitHub Packages in Maven an extra repository need to be added to the buil
4957
```
5058
Because credentials are needed for GitHub Packages, these will be passed by using the Settings.xml file.
5159

52-
##### Maven Local Settings.xml for GitHub Packages
60+
### Maven Local Settings.xml for GitHub Packages
5361
Edit (or create if not already exists) the `~/.m2/settings.xml` file and add the following content:
5462
```xml
5563
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
@@ -116,7 +124,7 @@ After importing the projects with either method, install SonarLint for quicker f
116124

117125
## GitHub Actions
118126

119-
##### Settings.xml during GitHub Action for GitHub Packages
127+
### Settings.xml during GitHub Action for GitHub Packages
120128
During multiple GitHub Actions (like building and SonarCloud analysis), the custom `settings.xml` file is needed because it needs access to the GitHub Packages
121129
to download certain artifacts. We can do this by adding the following step **before** the GitHub Packages repository is needed.
122130

@@ -169,10 +177,26 @@ To publish artifacts to GiHub Packages a distribution section needs to be added
169177
<repository>
170178
<id>github-packages-compas</id>
171179
<name>GitHub Packages</name>
172-
<url>https://maven.pkg.github.com/com-pas/"repo-name"</url>
180+
<url>https://maven.pkg.github.com/com-pas/[repo-name]</url>
173181
</repository>
174182
</distributionManagement>
175183
```
176184
The ID is the same as the ID used for the repository section [above](#github-packages-in-maven).
177185
This way the same credentials will be used to connect to GitHub Packages as described [above](#maven-local-settingsxml-for-github-packages).
178-
Replace "repo-name" with the name of the repository from CoMPAS.
186+
Replace "[repo-name]" with the name of the repository from CoMPAS.
187+
188+
## Others
189+
190+
### Adding custom badges to your README
191+
Badges are great for quickly checking several status reports of a specific repository.
192+
Sometimes a application doesn't serve badges ([LFX Security tool](https://security.lfx.linuxfoundation.org/) for example), and you need to do it yourself.
193+
We use [shields.io](https://shields.io/) for this problem.
194+
195+
In case of the LFX Security Tool, we used the following:
196+
- Go to [shields.io](https://shields.io/).
197+
- Go to the 'Dynamic' section.
198+
- Choose JSON as data type.
199+
- Insert 'LFX Security Tool' as the label.
200+
- Insert the API to use, in case of our LFX Security tool projects we use [this API](https://api.security.lfx.linuxfoundation.org/v1/project/e8b6fdf9-2686-44c5-bbaa-6965d04ad3e1/issues).
201+
- Now you can query using JsonPath. To get all open high issues from the 'CoMPAS Core' project, use `issues[?(@['repository-name'] == 'compas-core')]['high-open-issues']`.
202+
- Choose a color and a pre- or surfix text.

0 commit comments

Comments
 (0)