Skip to content

Commit 65586f1

Browse files
authored
setup project (#2)
* setup project Signed-off-by: olivier lamy <[email protected]> * format and fix missing elements in pom Signed-off-by: olivier lamy <[email protected]>
1 parent dc72ffa commit 65586f1

File tree

5 files changed

+133
-39
lines changed

5 files changed

+133
-39
lines changed

.github/dependabot.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "maven"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
9+
schedule:
10+
interval: "daily"

.github/release-drafter.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
_extends: .github
2+
tag-template: plexus-testing-$NEXT_MINOR_VERSION

.github/workflows/maven.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
name: GitHub CI
19+
20+
on: [push, pull_request]
21+
22+
jobs:
23+
build:
24+
25+
strategy:
26+
matrix:
27+
os: [ubuntu-latest,windows-latest, macOS-latest]
28+
java: [8, 11]
29+
jdk: [adopt, zulu]
30+
fail-fast: false
31+
32+
runs-on: ${{ matrix.os }}
33+
34+
steps:
35+
- name: Checkout
36+
uses: actions/checkout@v2
37+
38+
- name: Set up cache for ~./m2/repository
39+
uses: actions/[email protected]
40+
with:
41+
path: ~/.m2/repository
42+
key: maven-${{ matrix.os }}-java${{ matrix.java }}-${{ hashFiles('**/pom.xml') }}
43+
restore-keys: |
44+
maven-${{ matrix.os }}-java${{ matrix.java }}-
45+
maven-${{ matrix.os }}-
46+
47+
- name: Set up JDK
48+
uses: actions/setup-java@v2
49+
with:
50+
distribution: ${{ matrix.jdk }}
51+
java-version: ${{ matrix.java }}
52+
53+
- name: Build with Maven
54+
run: mvn install javadoc:javadoc -e -B -V -Pno-tests-if-not-on-osx

.github/workflows/release-drafter.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Release Drafter
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
update_release_draft:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: release-drafter/[email protected]
11+
env:
12+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

pom.xml

+55-39
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,59 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

3-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4-
<modelVersion>4.0.0</modelVersion>
3+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
56

7+
<parent>
68
<groupId>org.codehaus.plexus</groupId>
7-
<artifactId>plexus-testing</artifactId>
8-
<version>1.0-SNAPSHOT</version>
9-
<packaging>jar</packaging>
10-
11-
<dependencies>
12-
<dependency>
13-
<groupId>org.eclipse.sisu</groupId>
14-
<artifactId>org.eclipse.sisu.plexus</artifactId>
15-
<version>0.3.4</version>
16-
</dependency>
17-
<dependency>
18-
<groupId>com.google.inject</groupId>
19-
<artifactId>guice</artifactId>
20-
<version>4.2.3</version>
21-
</dependency>
22-
<dependency>
23-
<groupId>org.junit.jupiter</groupId>
24-
<artifactId>junit-jupiter-api</artifactId>
25-
<version>5.7.0</version>
26-
</dependency>
27-
</dependencies>
28-
29-
<build>
30-
<plugins>
31-
<plugin>
32-
<groupId>org.apache.maven.plugins</groupId>
33-
<artifactId>maven-compiler-plugin</artifactId>
34-
<version>3.8.1</version>
35-
<configuration>
36-
<source>1.8</source>
37-
<target>1.8</target>
38-
</configuration>
39-
</plugin>
40-
</plugins>
41-
</build>
42-
43-
</project>
9+
<artifactId>plexus</artifactId>
10+
<version>7</version>
11+
</parent>
12+
13+
<artifactId>plexus-testing</artifactId>
14+
<version>1.0.0-SNAPSHOT</version>
15+
16+
<name>Plexus Testing</name>
17+
18+
<scm>
19+
<connection>scm:git:[email protected]:codehaus-plexus/plexus-testing.git</connection>
20+
<developerConnection>scm:git:[email protected]:codehaus-plexus/plexus-testing.git</developerConnection>
21+
<url>http://github.com/codehaus-plexus/plexus-testing</url>
22+
<tag>HEAD</tag>
23+
</scm>
24+
<issueManagement>
25+
<system>github</system>
26+
<url>https://github.com/codehaus-plexus/plexus-testing/issues</url>
27+
</issueManagement>
28+
<distributionManagement>
29+
<site>
30+
<id>github:gh-pages</id>
31+
<url>${project.scm.developerConnection}</url>
32+
</site>
33+
</distributionManagement>
34+
35+
<properties>
36+
<cobertura.skip>true</cobertura.skip>
37+
<javaVersion>8</javaVersion>
38+
<project.build.outputTimestamp>2020-01-20T18:52:37Z</project.build.outputTimestamp>
39+
</properties>
40+
41+
<dependencies>
42+
<dependency>
43+
<groupId>org.eclipse.sisu</groupId>
44+
<artifactId>org.eclipse.sisu.plexus</artifactId>
45+
<version>0.3.4</version>
46+
</dependency>
47+
<dependency>
48+
<groupId>com.google.inject</groupId>
49+
<artifactId>guice</artifactId>
50+
<version>4.2.3</version>
51+
</dependency>
52+
<dependency>
53+
<groupId>org.junit.jupiter</groupId>
54+
<artifactId>junit-jupiter-api</artifactId>
55+
<version>5.7.0</version>
56+
</dependency>
57+
</dependencies>
58+
59+
</project>

0 commit comments

Comments
 (0)