Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade shared gha used, add dependabot, release drafter #15

Merged
merged 3 commits into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "maven"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
19 changes: 19 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
_extends: .github
name-template: '$RESOLVED_VERSION'
tag-template: 'jdepend-maven-plugin-$RESOLVED_VERSION'
version-resolver:
major:
labels:
- major
minor:
labels:
- minor
- enhancement
patch:
labels:
- patch
default: patch
template: |
## Changes

$CHANGES
10 changes: 5 additions & 5 deletions .github/workflows/maven-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ on:
jobs:
build:
name: Verify
uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v2
with:
os-matrix: '[ "ubuntu-latest" ]'
jdk-matrix: '[ "17" ]'
jdk-distribution-matrix: '[ "temurin" ]'
uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v3
# with:
# os-matrix: '[ "ubuntu-latest" ]'
# jdk-matrix: '[ "17" ]'
# jdk-distribution-matrix: '[ "temurin" ]'
13 changes: 13 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Release Drafter
on:
push:
branches:
- master
workflow_dispatch:
jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15 changes: 15 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: 'Close stale PR'
on:
schedule:
- cron: '30 1 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-pr-message: 'This PR is stale because it has been open 365 days with no activity. Remove stale label or comment or this will be closed in 30 days.'
days-before-stale: 365
days-before-pr-close: 30
26 changes: 12 additions & 14 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,7 @@
<system>github</system>
<url>https://github.com/mojohaus/jdepend-maven-plugin/issues</url>
</issueManagement>
<ciManagement>
<system>Travis-CI</system>
<url>https://travis-ci.org/mojohaus/jdepend-maven-plugin</url>
</ciManagement>


<properties>
<mavenVersion>3.2.5</mavenVersion>
Expand Down Expand Up @@ -203,16 +200,17 @@
</goals>
<configuration>
<extraArtifacts>
<extraArtifact>org.apache.maven.plugins:maven-project-info-reports-plugin:2.7:maven-plugin</extraArtifact>
<extraArtifact>org.apache.maven.plugins:maven-compiler-plugin:3.1:maven-plugin</extraArtifact>
<extraArtifact>org.apache.maven.plugins:maven-install-plugin:2.4:maven-plugin</extraArtifact>
<extraArtifact>org.apache.maven.plugins:maven-clean-plugin:2.5:maven-plugin</extraArtifact>
<extraArtifact>org.apache.maven.plugins:maven-surefire-plugin:2.16:maven-plugin</extraArtifact>
<extraArtifact>org.apache.maven.plugins:maven-assembly-plugin:2.4:maven-plugin</extraArtifact>
<extraArtifact>org.apache.maven.plugins:maven-jar-plugin:2.4:maven-plugin</extraArtifact>
<extraArtifact>org.apache.maven.plugins:maven-war-plugin:2.3:maven-plugin</extraArtifact>
<extraArtifact>org.apache.maven.plugins:maven-resources-plugin:2.6:maven-plugin</extraArtifact>
<extraArtifact>org.apache.maven.plugins:maven-site-plugin:3.3:maven-plugin</extraArtifact>
<extraArtifact>org.apache.maven.plugins:maven-project-info-reports-plugin:3.5.0:maven-plugin</extraArtifact>
<extraArtifact>org.apache.maven.plugins:maven-compiler-plugin:3.12.1:maven-plugin</extraArtifact>
<extraArtifact>org.apache.maven.plugins:maven-install-plugin:3.1.1:maven-plugin</extraArtifact>
<extraArtifact>org.apache.maven.plugins:maven-clean-plugin:3.3.1:maven-plugin</extraArtifact>
<extraArtifact>org.apache.maven.plugins:maven-assembly-plugin:3.6.0:maven-plugin</extraArtifact>
<extraArtifact>org.apache.maven.plugins:maven-jar-plugin:3.3.0:maven-plugin</extraArtifact>
<extraArtifact>org.apache.maven.plugins:maven-war-plugin:3.4.0:maven-plugin</extraArtifact>
<extraArtifact>org.apache.maven.plugins:maven-resources-plugin:3.3.1:maven-plugin</extraArtifact>
<extraArtifact>org.apache.maven.plugins:maven-surefire-plugin:3.2.5:maven-plugin</extraArtifact>
<extraArtifact>org.apache.maven.plugins:maven-site-plugin:3.9.1:maven-plugin</extraArtifact>
<extraArtifact>org.apache.maven.plugins:maven-site-plugin:3.9.1:jar</extraArtifact>
<extraArtifact>org.apache.maven.plugins:maven-verifier-plugin:1.0:maven-plugin</extraArtifact>
<extraArtifact>org.apache.maven.skins:maven-default-skin:1.0:jar</extraArtifact>
<!-- I have to recheck who is really using the following two artifacts. -->
Expand Down
2 changes: 1 addition & 1 deletion src/it/jdepend-01/invoker.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
# limitations under the License.
# #L%
###
invoker.goals=clean site verifier:verify
invoker.goals=clean site
12 changes: 0 additions & 12 deletions src/it/jdepend-01/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,6 @@
<version>1.0-SNAPSHOT</version>
<name>JDepend Quick Test When running site goal</name>
<url>http://maven.apache.org</url>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-verifier-plugin</artifactId>
<version>1.0</version>
<configuration>
<verificationFile>src/verifier/verifications.xml</verificationFile>
</configuration>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
Expand Down
59 changes: 0 additions & 59 deletions src/it/jdepend-01/src/verifier/verifications.xml

This file was deleted.

28 changes: 28 additions & 0 deletions src/it/jdepend-01/verify.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* 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.
*/

// Verify the existence of some files
assert new File( basedir,'target/jdepend-report.xml' ).exists()

assert new File( basedir,'target/site/jdepend-report.html' ).exists()
assert new File( basedir,'target/site/dependencies.html' ).exists()
assert new File( basedir,'target/site/index.html' ).exists()
assert new File( basedir,'target/site/licenses.html' ).exists()
assert new File( basedir,'target/site/project-reports.html' ).exists()
assert new File( basedir,'target/site/project-info.html' ).exists()
2 changes: 1 addition & 1 deletion src/it/jdepend-02/invoker.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
# limitations under the License.
# #L%
###
invoker.goals=clean site verifier:verify
invoker.goals=clean site
10 changes: 0 additions & 10 deletions src/it/jdepend-02/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,6 @@
<url>http://maven.apache.org</url>
<build>
<outputDirectory>target/output-classes</outputDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-verifier-plugin</artifactId>
<version>1.0</version>
<configuration>
<verificationFile>src/verifier/verifications.xml</verificationFile>
</configuration>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
Expand Down
59 changes: 0 additions & 59 deletions src/it/jdepend-02/src/verifier/verifications.xml

This file was deleted.

28 changes: 28 additions & 0 deletions src/it/jdepend-02/verify.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* 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.
*/

// Verify the existence of some files
assert new File( basedir,'target/jdepend-report.xml' ).exists()

assert new File( basedir,'target/site/jdepend-report.html' ).exists()
assert new File( basedir,'target/site/dependencies.html' ).exists()
assert new File( basedir,'target/site/index.html' ).exists()
assert new File( basedir,'target/site/licenses.html' ).exists()
assert new File( basedir,'target/site/project-reports.html' ).exists()
assert new File( basedir,'target/site/project-info.html' ).exists()
2 changes: 1 addition & 1 deletion src/it/jdepend-03/invoker.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
# limitations under the License.
# #L%
###
invoker.goals=clean org.codehaus.mojo:jdepend-maven-plugin:generate verifier:verify
invoker.goals=clean org.codehaus.mojo:jdepend-maven-plugin:generate
8 changes: 0 additions & 8 deletions src/it/jdepend-03/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,6 @@
<url>http://maven.apache.org</url>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-verifier-plugin</artifactId>
<version>1.0</version>
<configuration>
<verificationFile>src/verifier/verifications.xml</verificationFile>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jdepend-maven-plugin</artifactId>
Expand Down
Loading