Skip to content

Commit 0793c50

Browse files
authored
build: Set Java language level (#2380)
* update language level * update stale bot config * update gh actions build
1 parent c5075c4 commit 0793c50

3 files changed

Lines changed: 14 additions & 38 deletions

File tree

.github/stale.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Configuration for probot-stale - https://github.com/probot/stale
22

33
# Number of days of inactivity before an Issue or Pull Request becomes stale
4-
daysUntilStale: 30
4+
daysUntilStale: 60
55

66
# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
77
# 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"
2929
# Comment to post when marking as stale. Set to `false` to disable
3030
markComment: >
3131
This issue has been automatically marked as stale because it has not had
32-
recent activity. It will be closed if no further activity occurs. Thank you
32+
recent activity. The issue will be unassigned if no further activity occurs. Thank you
3333
for your contributions.
3434
3535
# Comment to post when removing the stale label.
@@ -47,13 +47,15 @@ limitPerRun: 30
4747
# only: issues
4848

4949
# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':
50-
# pulls:
51-
# daysUntilStale: 30
52-
# markComment: >
53-
# This pull request has been automatically marked as stale because it has not had
54-
# recent activity. It will be closed if no further activity occurs. Thank you
55-
# for your contributions.
50+
pulls:
51+
daysUntilStale: 30
52+
daysUntilClose: 45
53+
markComment: >
54+
This pull request has been automatically marked as stale because it has not had
55+
recent activity. It will be closed if no further activity occurs.
56+
closeComment: >
57+
Closed due to inactivity. Thank you for your contributions.
5658
5759
# issues:
5860
# exemptLabels:
59-
# - confirmed
61+
# - confirmed

.github/workflows/maven-ci.yml

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ on:
3636

3737
jobs:
3838

39-
# This Workflow Job will build this project and run Sonar analysis using JDK 11.0.3
4039
build-and-analyze:
4140

4241
name: Build and Run Sonar analysis on JDK 17
@@ -56,7 +55,7 @@ jobs:
5655
distribution: 'temurin'
5756
cache: 'maven'
5857

59-
# Cache Sonar packages which as used to run anaylysis and collect metrics
58+
# Cache Sonar packages which as used to run analysis and collect metrics
6059
- name: Cache SonarCloud packages
6160
uses: actions/cache@v3
6261
with:
@@ -74,28 +73,3 @@ jobs:
7473
# These two env variables are needed for sonar analysis
7574
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7675
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
77-
78-
79-
# This Workflow Job is going to build the project on the latest stable JDK 11
80-
build:
81-
82-
name: Build and Test on JDK 17
83-
runs-on: ubuntu-20.04
84-
steps:
85-
86-
- name: Checkout Code
87-
uses: actions/checkout@v3
88-
89-
- name: Set up JDK 17
90-
uses: actions/setup-java@v3
91-
with:
92-
java-version: '17'
93-
distribution: 'temurin'
94-
cache: 'maven'
95-
96-
# Some tests need screen access
97-
- name: Install xvfb
98-
run: sudo apt-get install -y xvfb
99-
100-
- name: Build with Maven
101-
run: xvfb-run ./mvnw clean verify

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,8 @@
278278
<groupId>org.apache.maven.plugins</groupId>
279279
<artifactId>maven-compiler-plugin</artifactId>
280280
<configuration>
281-
<source>11</source>
282-
<target>11</target>
281+
<source>17</source>
282+
<target>17</target>
283283
</configuration>
284284
</plugin>
285285
<plugin>

0 commit comments

Comments
 (0)