build: Set Java language level (#2380)

* update language level

* update stale bot config

* update gh actions build
This commit is contained in:
Ilkka Seppälä
2022-12-03 20:46:22 +02:00
committed by GitHub
parent c5075c4783
commit 0793c50363
3 changed files with 14 additions and 38 deletions
+11 -9
View File
@@ -1,7 +1,7 @@
# Configuration for probot-stale - https://github.com/probot/stale
# Number of days of inactivity before an Issue or Pull Request becomes stale
daysUntilStale: 30
daysUntilStale: 60
# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
@@ -29,7 +29,7 @@ staleLabel: "status: stale"
# Comment to post when marking as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
recent activity. The issue will be unassigned if no further activity occurs. Thank you
for your contributions.
# Comment to post when removing the stale label.
@@ -47,13 +47,15 @@ limitPerRun: 30
# only: issues
# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':
# pulls:
# daysUntilStale: 30
# markComment: >
# This pull request has been automatically marked as stale because it has not had
# recent activity. It will be closed if no further activity occurs. Thank you
# for your contributions.
pulls:
daysUntilStale: 30
daysUntilClose: 45
markComment: >
This pull request has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs.
closeComment: >
Closed due to inactivity. Thank you for your contributions.
# issues:
# exemptLabels:
# - confirmed
# - confirmed
+1 -27
View File
@@ -36,7 +36,6 @@ on:
jobs:
# This Workflow Job will build this project and run Sonar analysis using JDK 11.0.3
build-and-analyze:
name: Build and Run Sonar analysis on JDK 17
@@ -56,7 +55,7 @@ jobs:
distribution: 'temurin'
cache: 'maven'
# Cache Sonar packages which as used to run anaylysis and collect metrics
# Cache Sonar packages which as used to run analysis and collect metrics
- name: Cache SonarCloud packages
uses: actions/cache@v3
with:
@@ -74,28 +73,3 @@ jobs:
# These two env variables are needed for sonar analysis
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# This Workflow Job is going to build the project on the latest stable JDK 11
build:
name: Build and Test on JDK 17
runs-on: ubuntu-20.04
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'
# Some tests need screen access
- name: Install xvfb
run: sudo apt-get install -y xvfb
- name: Build with Maven
run: xvfb-run ./mvnw clean verify
+2 -2
View File
@@ -278,8 +278,8 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>11</source>
<target>11</target>
<source>17</source>
<target>17</target>
</configuration>
</plugin>
<plugin>