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

Gradle #191

Merged
merged 104 commits into from
Sep 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
7431bd6
QD-517 added Gradle support for Qodana
HackerMadCat Dec 1, 2020
8d5fdec
Added pretty qodana extension functions
HackerMadCat Dec 1, 2020
8c12b01
Added Readme.md
HackerMadCat Feb 15, 2021
b859098
Cleanup Readme.md for Github preview
HackerMadCat Feb 15, 2021
d7781bf
Update Readme.md
HackerMadCat Feb 15, 2021
baa6a83
Update Readme.md
HackerMadCat Feb 15, 2021
bfa826a
Update Readme.md
HackerMadCat Feb 15, 2021
29ce5b5
Update version for CI and deploy description
avafanasiev Jun 23, 2021
0552157
Dont mount ./.gradle dir
avafanasiev Jul 8, 2021
1541d81
Update docs
avafanasiev Jul 8, 2021
d8f7aa5
Update docs
avafanasiev Jul 9, 2021
cddd387
Update plugin name in README.md
avafanasiev Jul 22, 2021
2df6cfc
java -> kotlin
hsz Aug 10, 2021
67c2d42
Gradle – migrate to Kotlin DSL
hsz Aug 10, 2021
add3d15
README cleanup
hsz Aug 10, 2021
030205b
README badges
hsz Aug 10, 2021
09e8abe
Dependabot integration
hsz Aug 10, 2021
e0b0b5d
Bump Gradle dependencies
hsz Aug 10, 2021
b9fb83a
bump Gradle to 7.1.1
hsz Aug 10, 2021
5412870
create separated tasks
hsz Aug 10, 2021
ec428dd
introducing lazy properties
hsz Aug 10, 2021
ffbaffc
Merge pull request #1 from JetBrains/refactoring
hsz Aug 11, 2021
7243deb
README update
hsz Aug 12, 2021
cf6c1b1
Bump junit-jupiter-api from 5.6.0 to 5.7.2
dependabot[bot] Aug 11, 2021
b57b9fc
LICENSE file
hsz Aug 12, 2021
388e96c
Provide tasks for Clone Finder and License Audit; cleanup properties;…
hsz Aug 13, 2021
d6babf9
Gradle 7.2
hsz Aug 18, 2021
3b43362
Bump jvm from 1.5.21 to 1.5.30
dependabot[bot] Aug 24, 2021
2647800
tests initial configuration
hsz Aug 27, 2021
89fc374
tests initial configuration
hsz Aug 27, 2021
31afa2f
fixed tests for Windows
hsz Aug 27, 2021
a0ed585
fixed tests for Windows
hsz Aug 27, 2021
97d8484
GitHub Actions: Use Gradle cache provided with `actions/setup-java`
hsz Aug 31, 2021
6259078
Cleanup
hsz Aug 31, 2021
e21ea99
UpdateInspectionsTask + `qodana.autoUpdate` flag
hsz Aug 31, 2021
1f12010
README update
hsz Aug 31, 2021
5e4f632
tests fix
hsz Aug 31, 2021
ec9321c
tests
hsz Sep 1, 2021
8af9c68
test fixes for Windows
hsz Sep 1, 2021
4fb434e
test fixes for Windows
hsz Sep 1, 2021
2c78228
README update
hsz Sep 1, 2021
9ba9eec
README update
hsz Sep 1, 2021
8148a88
Remove `--label org.jetbrains.analysis=inspection`
hsz Sep 1, 2021
9fc83d5
Better inspections error handling
hsz Sep 1, 2021
2bafcaf
`qodana.reportDir` property
hsz Sep 1, 2021
369c339
Provide generated report path and URL
hsz Sep 1, 2021
11200fa
`qodana.baselinePath` and `qodana.baselineIncludeAbsent` support
hsz Sep 1, 2021
15cf170
`qodana.failThreshold` support
hsz Sep 1, 2021
53871ed
tests
hsz Sep 1, 2021
7058c43
cleanup
hsz Sep 1, 2021
e8117b7
require Gradle 6.6+
hsz Sep 15, 2021
b7b648c
GitHub Actions: JetBrains/[email protected]
hsz Sep 15, 2021
a7fc47d
QD-1259 "cleanInspections" should clean report folder too
hsz Sep 15, 2021
023a7ed
tests fix
hsz Sep 15, 2021
27abd79
QD-1260 Update GitHub documentation about Qodana Gradle plugin
hsz Sep 15, 2021
2518958
GitHub Actions: JetBrains/[email protected]
hsz Sep 15, 2021
aba6620
Bump com.gradle.plugin-publish from 0.15.0 to 0.17.0
dependabot[bot] Nov 5, 2021
c3e6bcb
Bump actions/checkout from 2.3.4 to 2.4.0
dependabot[bot] Nov 3, 2021
6d50d15
Bump JetBrains/qodana-action from 2.2.1.pre.eap to 3.2.1
dependabot[bot] Oct 22, 2021
5281854
Bump jvm from 1.5.30 to 1.5.31
dependabot[bot] Sep 20, 2021
547a45a
Gradle + Kotlin DSL
hsz Nov 5, 2021
10a9f35
Upgrade Gradle Wrapper to `7.3`
hsz Nov 10, 2021
fd77ae2
Bump jvm from 1.5.31 to 1.6.0
dependabot[bot] Nov 15, 2021
4a0098d
Bump com.gradle.plugin-publish from 0.17.0 to 0.18.0 (#16)
dependabot[bot] Nov 25, 2021
07b4a79
README update
hsz Nov 25, 2021
6e26a56
Use Java 11 with 1.8 as a target
hsz Nov 25, 2021
4dad871
Change the default image to jetbrains/qodana-jvm-community
tiulpin Jan 14, 2022
9fd8fa4
Change the default image to jetbrains/qodana-jvm-community
tiulpin Jan 14, 2022
082a0ce
Update Qodana Scan action
tiulpin Jan 14, 2022
311a613
Bump the plugin dependencies
tiulpin Jan 14, 2022
5276664
Update README to reflect the latest changes
tiulpin Jan 14, 2022
889e59e
Add GitHub issue template
tiulpin Jan 14, 2022
5db18fa
Fix environment variable QODANA_ENV
rillig Feb 25, 2022
f56c1eb
Bump JetBrains/qodana-action from 4.2.2 to 5.0.2
dependabot[bot] Mar 25, 2022
f2e64d0
Bump actions/checkout from 2.4.0 to 3
dependabot[bot] Mar 26, 2022
1b3d8de
README: update Twitter badge
hsz Apr 17, 2023
4eae9f6
Add `QODANA_TOKEN`
tiulpin Jul 17, 2023
25af9a5
:recycle: Move `gradle-plugin` to the subdirectory
tiulpin Sep 7, 2023
b82452c
➡️ Merge `gradle-qodana-plugin`
tiulpin Sep 7, 2023
688d25f
:zap: Use CLI in Qodana for Gradle plugin
tiulpin Sep 12, 2023
f6cc8e5
:bricks: Bring Gradle plugin to the root directory
tiulpin Sep 12, 2023
3ff0000
:test_tube: Fix Qodana analysis test
tiulpin Sep 12, 2023
a261ecc
:arrow_up: Bump Gradle and dependencies
tiulpin Sep 12, 2023
4a4bbe8
:bricks: Fix CircleCI jobs
tiulpin Sep 12, 2023
4b24f7b
:bricks: Granulate CI pipeline
tiulpin Sep 13, 2023
a2840bf
:test_tube: Fix Gradle tests
tiulpin Sep 13, 2023
a43ce6e
:bug: Fix Gradle task for Windows
tiulpin Sep 13, 2023
0e18053
:bricks: Update CI configs
tiulpin Sep 13, 2023
03eea71
:bricks: Fix Azure pipelines definition
tiulpin Sep 13, 2023
81ae967
:test_tube: Disable Gradle native test for darwin
tiulpin Sep 13, 2023
f6511e5
:bricks: Update azure-pipelines.yml
tiulpin Sep 17, 2023
e51739c
:bricks: Update azure-pipelines.yml
tiulpin Sep 18, 2023
0545d7b
:bricks: Update CircleCI test-deploy.yml
tiulpin Sep 18, 2023
e99f0e8
:arrow_up: Bump docker/login-action from 2 to 3
dependabot[bot] Sep 18, 2023
5797673
:arrow_up: Bump actions/checkout from 3 to 4
dependabot[bot] Sep 11, 2023
0af7d44
:arrow_up: Bump typescript from 5.1.6 to 5.2.2
dependabot[bot] Sep 11, 2023
6bc15ce
:bricks: Update qodana.yaml
tiulpin Sep 18, 2023
adba85f
:arrow_up: Bump @types/node from 20.5.9 to 20.6.2
dependabot[bot] Sep 18, 2023
58ab4c6
:arrow_up: Bump eslint-plugin-github from 4.9.2 to 4.10.0
dependabot[bot] Sep 18, 2023
8994d79
:arrow_up: Bump @actions/artifact from 1.1.1 to 1.1.2
dependabot[bot] Sep 18, 2023
5e2fe7b
:arrow_up: Bump @actions/cache from 3.2.1 to 3.2.2
dependabot[bot] Sep 18, 2023
9759edd
:bug: Fix save_cache key value
TonyG9 Sep 18, 2023
f179147
Merge branch 'gradle'
tiulpin Sep 18, 2023
b3a5d46
:bug: Repack action distribution
tiulpin Sep 18, 2023
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
16 changes: 10 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2.1
setup: true
orbs:
orb-tools: circleci/orb-tools@11.1
orb-tools: circleci/orb-tools@12.0
shellcheck: circleci/[email protected]

filters: &filters
Expand All @@ -13,25 +13,29 @@ workflows:
jobs:
- orb-tools/lint:
filters: *filters
source_dir: orb
- orb-tools/pack:
filters: *filters
source_dir: orb
- orb-tools/review:
exclude: RC009
exclude: RC009,RC010
filters: *filters
source_dir: orb
- shellcheck/check:
exclude: SC2148,SC2038,SC2086,SC2002,SC2016
filters: *filters
- orb-tools/publish:
orb-name: jetbrains/qodana
vcs-type: << pipeline.project.type >>
orb_name: jetbrains/qodana
vcs_type: << pipeline.project.type >>
requires:
[orb-tools/lint, orb-tools/review, orb-tools/pack, shellcheck/check]
# Use a context to hold your publishing token.
context: orb-publishing
filters: *filters
# Triggers the next workflow in the Orb Development Kit.
- orb-tools/continue:
pipeline-number: << pipeline.number >>
vcs-type: << pipeline.project.type >>
orb_name: jetbrains/qodana
pipeline_number: << pipeline.number >>
vcs_type: << pipeline.project.type >>
requires: [orb-tools/publish]
filters: *filters
11 changes: 6 additions & 5 deletions .circleci/test-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2.1
orbs:
qodana: jetbrains/qodana@dev:<<pipeline.git.revision>>
orb-tools: circleci/orb-tools@11.1
orb-tools: circleci/orb-tools@12.0

filters: &filters
tags:
Expand All @@ -14,19 +14,20 @@ jobs:
steps:
- checkout
- qodana/scan:
args: "--print-problems --log-level debug -l jetbrains/qodana-js:latest"
args: "--print-problems --log-level debug --linter jetbrains/qodana-jvm-community:latest --property idea.headless.enable.statistics=false"

workflows:
test-deploy:
jobs:
# Make sure to include "filters: *filters" in every test job you want to run as part of your deployment.
- orb-tools/pack:
filters: *filters
source_dir: orb
- code-quality
- orb-tools/publish:
orb-name: jetbrains/qodana
vcs-type: << pipeline.project.type >>
pub-type: production
orb_name: jetbrains/qodana
vcs_type: << pipeline.project.type >>
pub_type: production
requires:
- orb-tools/pack
- code-quality
Expand Down
5 changes: 5 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,8 @@ updates:
directory: /
schedule:
interval: weekly

- package-ecosystem: gradle
directory: gradle
schedule:
interval: weekly
38 changes: 38 additions & 0 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: qodana
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
- 'releases/*'

jobs:
scan:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
checks: write
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
fetch-depth: 0 # a full history is required for pull request analysis
- uses: docker/login-action@v2
with:
registry: registry.jetbrains.team
username: e433d83e-ec9b-4023-98f0-7f181b32c0da
password: ${{ secrets.SPACE_PASSWORD }}
- run: |
npm ci
npm run test
mkdir -p .qodana/code-coverage
mv scan/coverage/lcov.info .qodana/code-coverage
rm -rf scan/coverage
- uses: ./
with:
args: --print-problems,--log-level,debug
pr-mode: true
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
72 changes: 72 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: 'gradle'
on:
workflow_dispatch:
pull_request:
paths-ignore:
- 'orb/**'
- 'scan/**'
- 'vsts/**'
- 'common/**'
- 'action.yaml'
- 'package.json'
- 'package-lock.json'
- 'tsconfig.json'
- 'tsconfig.base.json'
- '.github/workflows/node.yml'
push:
branches:
- main
- 'releases/*'
paths-ignore:
- 'orb/**'
- 'scan/**'
- 'vsts/**'
- 'common/**'
- 'action.yaml'
- 'package.json'
- 'package-lock.json'
- 'tsconfig.json'
- 'tsconfig.base.json'
- '.github/workflows/node.yml'
jobs:
gradleValidation:
name: gradle-wrapper
runs-on: ubuntu-latest
steps:
- name: Fetch Sources
uses: actions/checkout@v3
- name: Gradle Wrapper Validation
uses: gradle/[email protected]

gradle-test:
name: gradle-test
needs: gradleValidation
runs-on: ${{ matrix.os }}
strategy:
matrix:
gradleVersion:
- 6.8
- 6.9.2
- 7.6.2
- 8.3
os:
- windows-latest
- ubuntu-latest
- macos-latest
steps:
- name: Fetch sources
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 11
cache: gradle
- name: Run linters and test
run: ./gradlew test -PtestGradleVersion="${{ matrix.gradleVersion }}"
- name: Collect test results
if: ${{ failure() }}
uses: actions/upload-artifact@v3
with:
name: test-results-${{ matrix.gradleVersion }}-${{ runner.os }}
path: ${{ github.workspace }}/build/reports/tests
87 changes: 28 additions & 59 deletions .github/workflows/ci.yml → .github/workflows/node.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,36 @@
name: 'CI'
name: 'node'
on:
workflow_dispatch:
pull_request:
paths-ignore:
- 'orb/**'
- 'gradle/**'
- 'src/**'
- 'build.gradle.kts'
- 'settings.gradle.kts'
- 'gradle.properties'
- 'gradlew'
- 'gradlew.bat'
- '.github/workflows/gradle.yml'
push:
branches:
- main
- 'releases/*'
paths:
- '.github/workflows/ci.yml'
- 'scan/*'
- 'vsts/*'
- 'common/*'
- 'package.json'
- 'package-lock.json'
- 'tsconfig.base.json'
- 'tsconfig.json'
paths-ignore:
- 'orb/**'
- 'gradle/**'
- 'src/**'
- 'build.gradle.kts'
- 'settings.gradle.kts'
- 'gradle.properties'
- 'gradlew'
- 'gradlew.bat'
- '.github/workflows/gradle.yml'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set Node.js 16.x
uses: actions/[email protected]
with:
Expand Down Expand Up @@ -63,7 +74,7 @@ jobs:
exit 1
fi
id: diffvsts
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: ${{ failure() && steps.diffvsts.conclusion == 'failure' }}
with:
name: dist
Expand All @@ -81,51 +92,9 @@ jobs:
- windows-latest
needs: [ lint ]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: npm ci && npm run build

qodana:
runs-on: ubuntu-latest
permissions:
checks: write
pull-requests: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: docker/login-action@v2
with:
registry: registry.jetbrains.team
username: e433d83e-ec9b-4023-98f0-7f181b32c0da
password: ${{ secrets.SPACE_PASSWORD }}
- run: |
npm ci
npm run test
mkdir -p .qodana/coverage
mv scan/coverage/lcov.info .qodana/coverage
rm -rf scan/coverage
- uses: ./
with:
args: --print-problems,--log-level,debug
pr-mode: false
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}

qodana-pr: # pr mode enabled and no cloud token
runs-on: ubuntu-latest
permissions:
checks: write
pull-requests: write
steps:
- uses: actions/checkout@v3
- uses: ./
with:
args: --print-problems,--log-level,debug,-l,jetbrains/qodana-js:2023.2-eap
pr-mode: true
use-annotations: false
cache-default-branch-only: true
post-pr-comment: false

test-native:
runs-on: '${{ matrix.os }}'
strategy:
Expand All @@ -136,7 +105,7 @@ jobs:
- windows-latest
needs: [ lint ]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./
with:
args: --ide,QDJS
Expand All @@ -148,9 +117,9 @@ jobs:

azure-dev-release:
runs-on: ubuntu-latest
needs: [ lint, build, qodana ]
needs: [ lint, build ]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v2
id: filter
with:
Expand All @@ -177,7 +146,7 @@ jobs:
AZURE_TOKEN: ${{ secrets.AZURE_TOKEN }}
- name: Upload vsix
if: steps.filter.outputs.azure-dev == 'true'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: qodana-dev.vsix
path: vsts/qodana-dev.vsix
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
github:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: |
Expand All @@ -21,7 +21,7 @@ jobs:
azure:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set Node.js 12.x
uses: actions/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Update version branch
Expand Down
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,8 @@ Thumbs.db
scan/__tests__/runner/*
lib/**/*

vsts/QodanaScan/.taskkey
vsts/QodanaScan/.taskkey

.idea/
.gradle/
build/
Loading
Loading