Skip to content

Commit

Permalink
Add Maven wrapper
Browse files Browse the repository at this point in the history
- added Maven wrapper

Signed-off-by: Mark Hoffmann <m.hoffmann@data-in-motion.biz>
  • Loading branch information
maho7791 committed Jun 22, 2023
1 parent 82e5b35 commit 7deccdf
Show file tree
Hide file tree
Showing 8 changed files with 630 additions and 45 deletions.
14 changes: 14 additions & 0 deletions .github/scripts/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
#*********************************************************************
# Copyright (c) 2023-06-22 Data In Motion Consulting and others
#
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#**********************************************************************
set -ev

./mvnw --batch-mode --version
./mvnw --batch-mode --no-transfer-progress install "$@"
13 changes: 13 additions & 0 deletions .github/scripts/publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
#*********************************************************************
# Copyright (c) 2023-06-22 Data In Motion Consulting and others
#
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#**********************************************************************
set -ev

./mvnw --batch-mode deploy "$@"
45 changes: 0 additions & 45 deletions .github/workflows/build.yml

This file was deleted.

72 changes: 72 additions & 0 deletions .github/workflows/cibuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: CI Build
on:
push:
branches-ignore:
- 'dependabot/**'
paths-ignore:
- 'docs/**'
- '.github/**/*docs*'
- '.github/**/*codeql*'
- '.github/*.yml'
pull_request:
paths-ignore:
- 'docs/**'
- '.github/**/*docs*'
- '.github/**/*codeql*'
- '.github/*.yml'

env:
LC_ALL: en_US.UTF-8
MAVEN_OPTS: >-
-Dhttp.keepAlive=false
-Dmaven.wagon.http.pool=false
-Dmaven.wagon.http.retryHandler.count=3
defaults:
run:
shell: bash

permissions:
contents: read

jobs:
build:
strategy:
matrix:
java:
- '11'
- '17'
os:
- 'ubuntu-latest'
include:
- os: 'windows-latest'
java: '17'
- os: 'ubuntu-latest'
java: '17'
canonical: ${{ (github.repository == 'osgi/jakartarest-osgi') && ((github.ref == 'refs/heads/main') || (github.ref == 'refs/heads/release')) && (github.event_name != 'pull_request') }}
- os: 'ubuntu-latest'
java: '17'
experimental: true
mavenopts: '-Pbnd-next'
name: JDK${{ matrix.java }} ${{ matrix.os }} ${{ matrix.mavenopts }}
runs-on: ${{ matrix.os }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@55d479fb1c5bcad5a4f9099a5d9f37c8857b2845
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

- name: Git Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
- name: Set up Java ${{ matrix.java }}
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2
with:
distribution: 'temurin'
java-version: java-version: ${{ matrix.java }}
cache: maven
- name: Build Maven
id: build
continue-on-error: ${{ matrix.experimental }}
run: |
./.github/scripts/build.sh ${{ matrix.mavenopts }}
Binary file added .mvn/wrapper/maven-wrapper.jar
Binary file not shown.
18 changes: 18 additions & 0 deletions .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.6/apache-maven-3.8.6-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar

0 comments on commit 7deccdf

Please sign in to comment.