Skip to content

Commit

Permalink
[MAINTENANCE] Add versioning workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alien11689 committed Jan 11, 2025
1 parent b850591 commit 5b4f599
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 12 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/versioning.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: Versioning - CI Build

on:
pull_request:
paths:
- versioning/**
- .github/workflows/versioning.yml
push:
branches:
- 'trunk'

env:
LC_ALL: en_US.UTF-8

jobs:
JDKxx_Matrix:
timeout-minutes: 10
strategy:
matrix:
java: [ 8, 11 ]
os: [ ubuntu-latest ]
name: JDK${{ matrix.java }} ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- name: Git Checkout
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Build
shell: bash
run: |
mvn -U -e -B -ntp clean install -f versioning/pom.xml
17 changes: 12 additions & 5 deletions versioning/versioning-checker/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@

<parent>
<groupId>org.apache.aries</groupId>
<artifactId>java5-parent</artifactId>
<version>1.0.0</version>
<artifactId>parent</artifactId>
<version>2.1.1</version>
<relativePath />
</parent>

Expand All @@ -46,7 +46,7 @@
${project.artifactId};blueprint.graceperiod:=false
</aries.osgi.symbolic.name>
<aries.osgi.import>
org.objectweb.asm*;version=3.2;resolution:=optional,
org.objectweb.asm*;version="[9,10)";resolution:=optional,
org.osgi.framework;version="[1.5,2)",
org.slf4j;version="[1.5,2)",
*
Expand All @@ -58,6 +58,7 @@
org.apache.aries.versioning.utils;
</aries.osgi.private.pkg>
<lastReleaseVersion>0.2.0</lastReleaseVersion>
<aries.skip.version.check>true</aries.skip.version.check>
</properties>

<dependencies>
Expand All @@ -82,9 +83,15 @@
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-debug-all</artifactId>
<artifactId>asm</artifactId>
<optional>true</optional>
<version>5.0.3</version>
<version>9.6</version>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-commons</artifactId>
<optional>true</optional>
<version>9.6</version>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
Expand Down
9 changes: 2 additions & 7 deletions versioning/versioning-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@

<parent>
<groupId>org.apache.aries</groupId>
<artifactId>java5-parent</artifactId>
<version>1.0.0</version>
<artifactId>parent</artifactId>
<version>2.1.1</version>
<relativePath />
</parent>

Expand All @@ -46,11 +46,6 @@
<artifactId>org.apache.aries.versioning.checker</artifactId>
<version>0.3.2-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-debug-all</artifactId>
<version>5.0.3</version>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.core</artifactId>
Expand Down

0 comments on commit 5b4f599

Please sign in to comment.