292 Commits

Author SHA1 Message Date
Andreas Dangel
3f697aff35 [ant] Formatter: avoid reflective access to determine console encoding
- for java 17+, there is public API to get the console encoding
  -> no problem
- for older java versions, try to use system property
  sun.jnu.encoding if it exists
- only then use the fall-backs with illegal reflective access
  to private fields/methods on java.io.Console
- Also avoid using reflection utils from apache commons, instead
  use reflection directly. The illegal access warnings are then
  properly reported against our class
  net.sourceforge.pmd.ant.Formatter.

Fixes #1860
2024-10-25 18:33:36 +02:00
Andreas Dangel
10681cd6a8 [java] Remove version 21-preview 2024-08-01 10:28:29 +02:00
Andreas Dangel
568314bb89 [java] Add new language version 23 and 23-preview 2024-08-01 10:15:09 +02:00
Andreas Dangel
8c7a5d0664 [cli] Fix pmd.bat for Windows when starting designer with JAVAFX_HOME
Fixes #5120
2024-07-19 10:17:27 +02:00
Andreas Dangel
ab82f28cf1 Fix integration test 2024-05-03 10:46:33 +02:00
Andreas Dangel
5fbf7a26f1 [xml] fix integration test for pom rule 2024-04-02 19:47:24 +02:00
Andreas Dangel
6c0571cf1b [cli] Fix double quoting in pmd.bat
Quoting happens now when we start java
2024-03-29 11:03:16 +01:00
han.li
427d0951c2 fix the error caused by space in JDK path 2024-03-27 17:48:43 +08:00
Andreas Dangel
73952508cc [dist] Make mvnw executable in source dist zip
Fixes #4867
2024-03-21 11:12:16 +01:00
Andreas Dangel
cddadf5532 Fix integration test (new apex version 60) 2024-03-14 18:30:58 +01:00
Andreas Dangel
079a13ec4b Merge branch 'master' into cli-banner-display 2024-03-05 19:40:48 +01:00
Andreas Dangel
b64489a515 Merge branch 'master' into issue-4830-consolidate-packages 2024-03-04 19:21:16 +01:00
Andreas Dangel
93bf4d59cd Merge branch 'master' into issue-4794-java-22 2024-03-04 18:28:35 +01:00
Andreas Dangel
aa672e9d0e [cli] Remove unnecessary logging 2024-02-29 20:49:33 +01:00
Andreas Dangel
1aa6112aae [velocity] Rename package and language id from vm to velocity
Also change prefix from Vm to Vtl
2024-02-23 17:46:32 +01:00
Andreas Dangel
d21e5c95d0 [visualforce] Rename package and language id from vf to visualforce 2024-02-23 17:46:31 +01:00
Andreas Dangel
194f759533 [dist] Move test classes into correct package 2024-02-23 17:46:30 +01:00
Andreas Dangel
3b5149eb86 [dist] Remove now unnecessary exclude for apex-jorje 2024-02-22 18:48:06 +01:00
Andreas Dangel
474274e129 [dist] Remove unnecessary exclusion for pmd-cli:sh:completion
Note: java and javascript are needed for tests in cli

Refs #4594
2024-02-22 13:00:04 +01:00
Andreas Dangel
decb759a8f [dist] Make SBOM optional in assembly descriptor
fix dist sbom
2024-02-22 12:59:56 +01:00
Andreas Dangel
2a53ebaa55 [java] Remove java language version 20-preview 2024-02-15 09:50:06 +01:00
Andreas Dangel
73dbd56ec4 [java] Add new java language versions 22 and 22-preview 2024-02-15 09:50:01 +01:00
kenji
10ae2fae96 Add swift 5.9 support 2023-12-01 15:48:31 +01:00
Andreas Dangel
20a7f612d8 Merge pull request #4594 from Monits:runtime-completion
[cli] Change completion generation to runtime #4594
2023-10-20 12:46:35 +02:00
Juan Martín Sotuyo Dodero
2fa80cbc34 Merge branch 'pr-4640' 2023-10-19 20:44:11 -03:00
Juan Martín Sotuyo Dodero
0e94fe55d1 Fix issue for conf dir too 2023-10-19 20:43:17 -03:00
Juan Martín Sotuyo Dodero
2e4e1275d4 Merge branch 'master' into runtime-completion 2023-10-19 20:32:19 -03:00
Andreas Dangel
357548cdad Merge pull request #4638 from adangel:issue-4583-jdk-21
[java] Support JDK 21 (LTS) #4638
2023-09-28 11:58:51 +02:00
Andreas Dangel
15ea5f0c00 Merge branch 'master' into issue-4583-jdk-21 2023-09-28 10:04:42 +02:00
Andreas Dangel
4d185d5a76 Merge branch 'master' into pr-4605 2023-09-28 09:26:01 +02:00
Andreas Dangel
c2710c9a91 Fix pmd-dist tests 2023-08-10 15:36:28 +02:00
Shai Bennathan
56ae02ad35 Update pmd-dist/src/main/resources/scripts/pmd
Co-authored-by: Juan Martín Sotuyo Dodero <juansotuyo@gmail.com>
2023-08-07 15:32:11 +03:00
Shai Bennathan
295ee304a4 Issue: Launch failure via bin/bash
Currently if run.sh is launched via 'bin/bash run.sh', when run.sh is not in the local directory (i.e., accessed via path env var) it thinks it runs in the local directory.
This change makes sure that all cases are covered.
Tested on local Ubuntu 22.04.
2023-08-07 12:51:09 +03:00
Andreas Dangel
aeb1504079 [apex] Update jorje to latest version from 2023-06-05
Fixes #3973
2023-06-24 22:46:16 +02:00
Juan Martín Sotuyo Dodero
5a55af46d3 Change completion generation to runtime
- We no longer ship a pre-built completion script
 - A hidden subcommand is available to generate it dynamically based on
   actually available languages.
 - We update docs everywhere accordingly.
2023-06-08 00:28:58 -03:00
Clément Fournier
bd42296c0c Fix distribution IT 2023-05-29 15:25:41 +02:00
Clément Fournier
bf647357c6 Merge branch 'pmd7-textfile-display-name' into clem.pmd7-refactor-cpd 2023-05-28 13:42:49 +02:00
Andreas Dangel
ce6a3e25a1 Merge branch 'master' into fix-assembly-finalName 2023-05-28 09:02:21 +02:00
Clément Fournier
f2cd5abbab Merge branch 'master' into clem.pmd7-refactor-cpd 2023-05-26 12:21:08 +02:00
Andreas Dangel
11c06fdb03 Merge branch 'master' into pr-4431 2023-05-19 09:00:56 +02:00
Clément Fournier
b89970d5fe Merge branch 'pmd7-textfile-display-name' into clem.pmd7-refactor-cpd 2023-04-29 19:20:38 +02:00
Clément Fournier
640ad6cf1d Merge branch 'master' into pr/4403 2023-04-29 00:32:14 +02:00
Clément Fournier
5c5f94e4a6 Merge branch 'master' into pr/4402 2023-04-29 00:09:16 +02:00
Andreas Dangel
dffab8e4fb Fix comment [skip ci] 2023-04-20 21:02:36 +02:00
Andreas Dangel
3cf0ba2b3f [dist] Fix pmd.bat script
Fixes #4482
2023-04-20 20:56:39 +02:00
Andreas Dangel
07758415c0 Merge branch 'master' into pr-4485 2023-04-20 17:07:16 +02:00
Andreas Dangel
dec7c7dabc [dist] Add integration test for ast-dump 2023-04-20 17:02:50 +02:00
Juan Martín Sotuyo Dodero
08d362aa66 Merge pull request #4462 from adangel/create-sbom
Provide Software Bill of Materials (SBOM)
2023-04-19 00:08:00 -03:00
Andreas Dangel
ba6d3894a5 Update assembly descriptor XSD 2023-04-06 12:54:55 +02:00
Andreas Dangel
ae0bf240d7 Provide Software Bill of Materials (SBOM)
- Add cyclonedx plugin to generate SBOM (Software Bill of Materials)
- The SBOM is attached and deployed into maven central
- The SBOM is also included in the binary distribution of PMD

See https://github.com/CycloneDX/cyclonedx-maven-plugin
2023-04-06 12:49:37 +02:00