Skip to content

Commit

Permalink
Merge pull request #38 from vitruv-tools/releases/2.0.0
Browse files Browse the repository at this point in the history
Releases/2.0.0
  • Loading branch information
Jan Wittler authored Aug 17, 2022
2 parents 07f942c + 1130f63 commit 6835e5d
Show file tree
Hide file tree
Showing 6 changed files with 85 additions and 180 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @JanWittler
7 changes: 7 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!--
Pull requests regarding major or minor updates need to target the `develop` branch.
Pull requests regarding patch updates need to target the `main` branch.
Please make sure to select the appropriate branch while creating the pull request.
Please also make sure to add an appropriate label (`major` / `minor` / `patch`).
For a reference on semantic versioning, see https://semver.org.
-->
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Verify and publish to Maven Central
on:
push:
branches: [master]
create:
tags:
branches: [main, develop]
release:
types: [created]
pull_request:
jobs:
publish:
Expand Down Expand Up @@ -35,7 +35,7 @@ jobs:
env:
MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
- name: Deploy snapshot
if: github.ref == 'refs/heads/master' && github.repository_owner == 'vitruv-tools'
if: github.ref == 'refs/heads/develop' && github.repository_owner == 'vitruv-tools'
run: >
mvn deploy
--batch-mode
Expand All @@ -45,7 +45,7 @@ jobs:
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
- name: Stage release
if: startsWith(github.ref, 'refs/tags/releases/') && github.repository_owner == 'vitruv-tools'
if: github.event_name == 'release' && github.repository_owner == 'vitruv-tools'
run: >
mvn deploy -P release
--batch-mode
Expand All @@ -55,7 +55,7 @@ jobs:
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
- name: Deploy release
if: startsWith(github.ref, 'refs/tags/releases/') && github.repository_owner == 'vitruv-tools'
if: github.event_name == 'release' && github.repository_owner == 'vitruv-tools'
run: >
mvn nexus-staging:release -P release
--batch-mode
Expand Down
12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,8 @@ The POM enables all compiler, tycho, packaging, feature, test, bundles and Xtend

### Test Projects

Projects ending with `.tests` are automatically interpreted as plugin test projects by Maven. By default, they set up an Eclipse/Equinox platform to run the tests on.
If the test can be run without such a platform, it improves performance when running them as ordinary JUnit test. To do so, the POM provides a profile that can be activated for a project by placing the marker file `.tests-without-platform` in the project's root folder.
In addition, some needs to be run in a full Eclipse workbench, i.e., with UI harness. To do so, the POM provides a profile that can be activated for a a project by placing the marker file `.tests-need-workbench` in the project's root folder.
.tests-without-platform

### Aggregated Updatesites

For building aggregated updatesites with the CBI aggregator, the aggregator file named `updatesite.aggr` has to be placed within the project's main folder to enable building the updatesite.
Projects ending with `.tests` are automatically interpreted as plugin test projects by Maven. The provided POM defines that these tests are executed as pure Jave tests (using the `maven-surefire-plugin` by default.
For cases in which tests need to be run in a full Eclipse workbench based on an Equinox environment, the `tycho-surefire-plugin` with UI harness has to used. To do so, the POM provides a profile that can be activated for a project by placing the marker file `.tests-need-workbench` in the project's root folder.

### MWE2 Workflows

Expand All @@ -25,7 +19,7 @@ The POM preconfigures the automatic execution of MWE2 workflow executions placed

### Automatic

Deployment is automatically performed by GitHub Actions. Snapshot versions committed to the `master` branch are deployed to the Sonatype Snapshots repository. Commits with release versions that are also tagged as a release are deployed to the Sonatype Release repository.
Deployment is automatically performed by GitHub Actions. Snapshot versions committed to the `develop` branch are deployed to the Sonatype Snapshots repository. For release versions, the according commit on the `main` branch has to be tagged with the version number and a [GitHub release](https://github.com/vitruv-tools/Maven-Build-Parent/releases) has to be created, which triggers deployment to the Sonatype Release repository.

Both the Sonatype user and the GPG key used for signing are provided by secrets of the GitHub repository.

Expand Down
Loading

0 comments on commit 6835e5d

Please sign in to comment.