Skip to content

Commit

Permalink
Clean up and prepare for next release
Browse files Browse the repository at this point in the history
  • Loading branch information
Hélios GILLES committed Nov 28, 2023
1 parent f2570b7 commit 494f763
Show file tree
Hide file tree
Showing 49 changed files with 174 additions and 525 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
targetplatform: [eclipse-4.22, eclipse-4.24]

steps:
- name: Checkout 🛎
Expand All @@ -37,9 +33,12 @@ jobs:
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
java-version: '17'
cache: 'maven'

- name: Setup Maven
uses: stCarolas/[email protected]
with:
maven-version: 3.9.4

- name: Install xvfb
run: sudo apt-get install xvfb
Expand All @@ -49,11 +48,20 @@ jobs:
BUILD_ID: "${{ steps.time.outputs.time }}"
BUILD_TYPE: "S"
BUILD_LABEL: "CI ${{ steps.time.outputs.time }} (${{ steps.branch_name.outputs.branch }})"
run: xvfb-run mvn -file org.moreunit.build/pom.xml verify -Dtarget.platform.classifier=${{ matrix.targetplatform }} --fail-at-end -Dtycho.disableP2Mirrors=true --batch-mode --strict-checksums --update-snapshots -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
run: xvfb-run mvn -file org.moreunit.build/pom.xml clean install --fail-at-end -Dtycho.disableP2Mirrors=true --batch-mode --strict-checksums --update-snapshots -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn

- name: Publish Surefire Test Results for 🖨
if: ${{ always() }}
uses: ScaCap/action-surefire-report@v1
with:
check_name: Test Results for ${{ matrix.targetplatform }}
check_name: Test Results

- name: Release SNAPSHOT
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build"
files: |
./org.moreunit.updatesite/target/org.moreunit.updatesite-*-SNAPSHOT.zip
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,3 @@ Thumbs.db

# Tycho temp
.tycho*

# non osgi libs for JRE11+ compatibility
org.moreunit.mock*/lib/
39 changes: 0 additions & 39 deletions org.moreunit.build/README.txt

This file was deleted.

65 changes: 0 additions & 65 deletions org.moreunit.build/eclipse-4.22.target

This file was deleted.

65 changes: 0 additions & 65 deletions org.moreunit.build/eclipse-4.24.target

This file was deleted.

19 changes: 0 additions & 19 deletions org.moreunit.build/mvn clean install.launch

This file was deleted.

41 changes: 22 additions & 19 deletions org.moreunit.build/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,35 @@
</modules>

<properties>
<tycho-version>3.0.3</tycho-version>
<exec-maven-version>3.0.0</exec-maven-version>
<tycho-version>4.0.4</tycho-version>
<exec-maven-version>3.1.1</exec-maven-version>
<surefire-version>3.2.2</surefire-version>

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<tests.use.ui>false</tests.use.ui>

<target.platform.classifier>eclipse-4.24</target.platform.classifier>
<eclipse-repo.url>https://download.eclipse.org/releases/latest</eclipse-repo.url>
<testng-repo.url>https://testng.org/testng-eclipse-update-site</testng-repo.url>
</properties>

<repositories>
<repository>
<id>eclipse-release</id>
<url>${eclipse-repo.url}</url>
<layout>p2</layout>
</repository>
<repository>
<id>testng-release</id>
<url>${testng-repo.url}</url>
<layout>p2</layout>
</repository>
</repositories>
<build>
<extensions>
<extension>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<artifactId>exec-maven-plugin</artifactId>
<version>${exec-maven-version}</version>
</extension>
</extensions>
Expand Down Expand Up @@ -68,14 +81,14 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
<version>${surefire-version}</version>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<providerHint>junit4</providerHint>
<providerHint>junit4</providerHint>
<argLine>
--add-opens java.base/java.lang=ALL-UNNAMED
</argLine>
Expand Down Expand Up @@ -131,24 +144,14 @@
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-compiler-plugin</artifactId>
<configuration>
<source>11</source>
<target>11</target>
<source>17</source>
<target>17</target>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<configuration>
<target>
<artifact>
<groupId>org.moreunit</groupId>
<artifactId>moreunit</artifactId>
<version>${project.version}</version>
<classifier>${target.platform.classifier}</classifier>
</artifact>
</target>
<includePackedArtifacts>true</includePackedArtifacts>
<resolver>p2</resolver>
<environments>
<environment>
<os>linux</os>
Expand Down
Loading

0 comments on commit 494f763

Please sign in to comment.