mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-18 12:14:29 +00:00
build: Set Java language level (#2380)
* update language level * update stale bot config * update gh actions build
This commit is contained in:
1 parent
c5075c4783
commit
0793c50363
3 files changed
+13
-37
No files matched your search
+10
-8
@@ -1,7 +1,7 @@
|
|||||||
# Configuration for probot-stale - https://github.com/probot/stale
|
# Configuration for probot-stale - https://github.com/probot/stale
|
||||||
|
|
||||||
# Number of days of inactivity before an Issue or Pull Request becomes 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.
|
# 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.
|
# 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
|
# Comment to post when marking as stale. Set to `false` to disable
|
||||||
markComment: >
|
markComment: >
|
||||||
This issue has been automatically marked as stale because it has not had
|
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.
|
for your contributions.
|
||||||
|
|
||||||
# Comment to post when removing the stale label.
|
# Comment to post when removing the stale label.
|
||||||
@@ -47,12 +47,14 @@ limitPerRun: 30
|
|||||||
# only: issues
|
# only: issues
|
||||||
|
|
||||||
# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':
|
# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':
|
||||||
# pulls:
|
pulls:
|
||||||
# daysUntilStale: 30
|
daysUntilStale: 30
|
||||||
# markComment: >
|
daysUntilClose: 45
|
||||||
# This pull request has been automatically marked as stale because it has not had
|
markComment: >
|
||||||
# recent activity. It will be closed if no further activity occurs. Thank you
|
This pull request has been automatically marked as stale because it has not had
|
||||||
# for your contributions.
|
recent activity. It will be closed if no further activity occurs.
|
||||||
|
closeComment: >
|
||||||
|
Closed due to inactivity. Thank you for your contributions.
|
||||||
|
|
||||||
# issues:
|
# issues:
|
||||||
# exemptLabels:
|
# exemptLabels:
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
# This Workflow Job will build this project and run Sonar analysis using JDK 11.0.3
|
|
||||||
build-and-analyze:
|
build-and-analyze:
|
||||||
|
|
||||||
name: Build and Run Sonar analysis on JDK 17
|
name: Build and Run Sonar analysis on JDK 17
|
||||||
@@ -56,7 +55,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
cache: 'maven'
|
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
|
- name: Cache SonarCloud packages
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
@@ -74,28 +73,3 @@ jobs:
|
|||||||
# These two env variables are needed for sonar analysis
|
# These two env variables are needed for sonar analysis
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_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
|
|
||||||
@@ -278,8 +278,8 @@
|
|||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>11</source>
|
<source>17</source>
|
||||||
<target>11</target>
|
<target>17</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|||||||
Reference in new issue
Block a user