Commit Graph

6511 Commits

Author SHA1 Message Date
Alexander.Glukhov
70b74d183d [gradle][IDEA-363327][IJ-CR-149446] update Gradle compatibility matrix for Gradle 8.11
(cherry picked from commit 64689fbd4785e044283d8645949df17e09f84993)

GitOrigin-RevId: 4d8b46440821cea3f141f47889726e7be078d1ee
2024-11-25 16:17:39 +00:00
Nikita Biriukov
037abd6dd4 [gradle][groovy] IDEA-361255 disable the inspection for groovy files that are not Gradle scripts
There was a warning:
"Only method calls to 'id' and 'alias' are available in 'plugins' block"
in .groovy files with a content like:
```
plugins {
    apply 'df' named 'ffd'
}
```


(cherry picked from commit 4d22b23e04432d3b882b330eacee7beb2740c95d)

IJ-MR-149922

GitOrigin-RevId: 54ff53d34d60c5fc3b20331bd5a3fd29f518c27c
2024-11-22 15:40:23 +00:00
Alexander.Glukhov
836e5e4435 Revert "[gradle][IDEA-359475] prevent cache misses in the Gradle Model Cache using an OS dependent hash for the root build path"
This reverts commit a5736802b7402a51f8e166f790207ff1d1bef4e5.


(cherry picked from commit d8ca055de298c70eec1ce09a00f08200e2abc308)

IJ-CR-146796

GitOrigin-RevId: 3d2f2b2ecf884f905d6a5aaf4571460b92f27fce
2024-11-11 17:10:20 +00:00
Alexander.Glukhov
b36a722801 [api-compatibility][gradle] expose fields used in third party plugins as @Internal API to prevent breaking changes
(cherry picked from commit 44df8376e102d6f10c08b89b785b1c5dd132e97c)

IJ-CR-148093

GitOrigin-RevId: 9eaf2032780caad141400adabac2106664047686
2024-10-30 16:09:38 +00:00
Frederik Haselmeier
6df603988a [kotlin] Limit new Gradle Kotlin templates to only be generated with Gradle 8.2+
^KTIJ-31697 fixed


(cherry picked from commit fe6493d804e6abed224e899d867b1bf2877384c7)

IJ-CR-147989

GitOrigin-RevId: 30ab7a5e2e61f04c2117813a91a5e0d7426e2592
2024-10-29 14:05:42 +00:00
Vera Petrenkova
ef04ccab02 IJPL-164003 [Trust and Open Project] show "system" path and specific paths for a project in the tooltip
(cherry picked from commit fb2028deea0413251ed6c5e49e9b5fc78797e108)

IJ-CR-147809

GitOrigin-RevId: 0926a1f32208732a04d3e14abab510e560720705
2024-10-25 21:33:11 +00:00
Alexander.Glukhov
24571534e9 [gradle][IDEA-359475] prevent cache misses in the Gradle Model Cache using an OS dependent hash for the root build path
The old behavior relies on a straightforward hashCode of the path. On Windows, two identical paths could have a different hash due to case insensitivity of the operating system. This behavior results in an inconsistent state of the Gradle Model Cache.


(cherry picked from commit a5736802b7402a51f8e166f790207ff1d1bef4e5)

IJ-CR-146796

GitOrigin-RevId: 42db23b878b4b7bc11f37e1835e0fe61c61f3803
2024-10-25 14:59:24 +00:00
Vladimir Krivosheev
996401954f IJ-CR-147193 IJPL-161796 cleanup - part 2 and fix api check
(cherry picked from commit a567b2f79121f8349f4046dc0cf140db3af527ac)

GitOrigin-RevId: 75656a4209713201dc0e49aa2462f527775f00ed
2024-10-22 07:27:04 +00:00
Nikita.Skvortsov
c3424d30d6 [gradle] Do not set maxParallelForks when not needed IDEA-360693
Do not force test to be run in a single thread unless this task is going to be debugged.


(cherry picked from commit e90d2c89d07119d4fc5c394d709ebdcace989805)

IJ-CR-146790

GitOrigin-RevId: 03e1b1b29a33e0e28086ba04053bd30d350b042a
2024-10-18 10:47:23 +00:00
Vladimir Krivosheev
837cdcffe7 IJPL-162718 fix GradleKotlinNewProjectWizardTest
GitOrigin-RevId: f0c2977b9b14906f289754c602063cc28c490a81
2024-10-14 22:49:12 +00:00
Vladimir Krivosheev
17b5c9688b IJPL-162718 wizard: non-blocking project creation
GitOrigin-RevId: 84810b3acdc12c703a255a86355d2d57c8a47913
2024-10-14 22:49:12 +00:00
Andrei Iurko
4111cfc875 [qodana] QD-9891 Add aspects with the highest certainty for inspections
GitOrigin-RevId: 8fad66714287192bd5cbc8396a3d30f1ba139302
2024-10-11 14:49:57 +00:00
Nikolay Chashnikov
e362d22296 [gradle] API cleanup: mark deprecated unused API for removal (IJPL-156972)
GitOrigin-RevId: 3cf49a4479fa539cce1605e871de3a1d07579a4a
2024-10-10 23:55:42 +00:00
Vladimir Krivosheev
387be9d569 IJ-CR-146078 extract intellij.platform.ide.ui
GitOrigin-RevId: 1d77381f1bcc811dbf644e47e70972a572c095f2
2024-10-10 23:38:08 +00:00
Sergei Vorobyov
dbbcee8b4e [Gradle|JVM] cleanup: fixed Gradle JVM download dialog title
Code review IJPF-CR-24106
Issues IDEA-356161

GitOrigin-RevId: 393dae79eb41795a812e89e5a043163b175c30ef
2024-10-10 11:28:14 +00:00
Sergei Vorobyov
0448526272 [Gradle|Sync|IsolatedProject] fix: removed unused GradleTaskIndex
Issues IDEA-35499

GitOrigin-RevId: 35949e7931841196d227c6917132e08d5a541a4e
2024-10-08 12:00:48 +00:00
Nikita.Skvortsov
6aa96a5553 [gradle] fix code style IDEA-327336
(cherry picked from commit 06b300ed852a07abaca8a99674a5f3d557c77d8f)

IJ-MR-145885

GitOrigin-RevId: 9c50a51a310476cb9f4ef581883d35f52708a680
2024-10-02 15:12:35 +00:00
Nikita.Skvortsov
4b170ac9d6 [gradle] fix compilation errors IDEA-327336
(cherry picked from commit 37a06fb73270a4a2b2279a1b4d554e5c009e59ed)

IJ-MR-145885

GitOrigin-RevId: 32a745726febcb93efcc04a3b322b9b707c8ef94
2024-10-02 15:12:35 +00:00
Nikita.Skvortsov
18bccbf4a5 [gradle] convert java to kotlin IDEA-327336
(cherry picked from commit 5e125040ddc8ac3b5621fc259c0f7058ef085580)

IJ-MR-145885

GitOrigin-RevId: 3c4e0b6bf31b61157f925216d4d0cae66ecd0772
2024-10-02 15:12:35 +00:00
Nikita.Skvortsov
6f90dee9ad Rename .java to .kt
IDEA-327336


(cherry picked from commit c5bbaa71ee888162f1414d24259914333fb89387)

IJ-MR-145885

GitOrigin-RevId: 68ec479bffe872dec83bf988641af1bad00b14e4
2024-10-02 15:12:34 +00:00
Nikita.Skvortsov
c404780336 [gradle] fix deprecated properties access WIP IDEA-327336
(cherry picked from commit 67b6f1e8f8d655548ad10bfb6732a40cd59c0787)

IJ-MR-145885

GitOrigin-RevId: 4a2b36b958116e89e69384774e24e53aa03a5fb8
2024-10-02 15:12:34 +00:00
Nikita.Skvortsov
316ae72401 [gradle] fix ant properties accessor WIP IDEA-327336
(cherry picked from commit 5a3ab0f4c28f7bfbc365439525cce2a7598a0872)

IJ-MR-145885

GitOrigin-RevId: a396e12f75d40bf32fde375a91b6fcb7a132c8fb
2024-10-02 15:12:34 +00:00
Nikita.Skvortsov
ae7425add9 [gradle] fix compilation and warnings WIP IDEA-327336
(cherry picked from commit f922af34bc5d47b4a0979672d234a8e46a7aee9b)

IJ-MR-145885

GitOrigin-RevId: 38c4944869c3e9af5f8f11b67ebabc20e65bea97
2024-10-02 15:12:34 +00:00
Nikita.Skvortsov
19c727ba56 [gradle] convert groovy -> java (WIP) IDEA-327336
(cherry picked from commit 1633318fa76137248aaf619fa4abeee56ba33473)

IJ-MR-145885

GitOrigin-RevId: 7a0f09d3d88837b0023aea546ef8f81d9ee074fa
2024-10-02 15:12:34 +00:00
Nikita.Skvortsov
ff4818d949 Rename .groovy to .java
IDEA-327336


(cherry picked from commit 10d0a4c8c127f8fd1c80c277477f14e04cba304a)

IJ-MR-145885

GitOrigin-RevId: 4d244e68bc68f22150d7d3a75db1dbb12681dea1
2024-10-02 15:12:34 +00:00
Mikhail Filippov
b1f3319f6c convert GradleToolWindowTest to Kotlin
GitOrigin-RevId: 2e565495930cfc72a8f8b8918b8c74b17516b3ce
2024-10-02 13:39:22 +00:00
Roman Shevchenko
3f416e77eb Cleanup (dead code; typos; formatting)
GitOrigin-RevId: ac74148bc0b73abeed6480a4b2f2a248fd1e2e81
2024-10-02 09:28:56 +00:00
Roman Shevchenko
14fc4f43f3 [project] reviewing use of file-based filters in choosers (IJPL-150176)
... and amending/replacing them with extension-based filters where possible

GitOrigin-RevId: cf68158e0fd638d7713903b5e55cfe5a2c65a1af
2024-10-02 09:28:56 +00:00
Alexander.Glukhov
42e2e4c08a [gradle][IDEA-275594] cleanup in AuxiliaryConfigurationArtifacts
GitOrigin-RevId: 7bdc214147f769bf681770f977a3b4f9cd9e7b30
2024-10-01 11:54:59 +00:00
Alexander.Glukhov
489b41688d [tracing][IJPL-163198] introduced a single source of truth about OTLP configuration
GitOrigin-RevId: d8204fa3fcfa23583466a30417754f6e616d7d75
2024-10-01 11:54:59 +00:00
Roman Shevchenko
9b43719207 [project] reviewing use of file-based filters in choosers (IJPL-150176)
... and amending/replacing them with extension-based filters where possible

GitOrigin-RevId: 422e4f42ac96c295a707eae76ef25686753fc6ce
2024-09-30 20:14:03 +00:00
Sergei Vorobyov
e345cf6fec [Gradle|Sync|IsolatedProject] fix: moved Gradle task isJavaForkOptions property resolution to the Gradle common code.
Removed Gradle JavaTask model and module with related classes that contained only isJavaForkOptions property.

Issues IDEA-35499

GitOrigin-RevId: adcc9fc0a8c01fef019f5889578349c11f58101c
2024-09-30 18:03:05 +00:00
Alexander.Glukhov
52243e82da [gradle][IDEA-359181] updated Gradle compatibility matrix for Gradle 8.10.2
GitOrigin-RevId: e0aea0b3cba7496dbba78ecd891968fdb10289f7
2024-09-30 16:21:16 +00:00
Sergei Vorobyov
0923ad9cc6 [Gradle|Debug] cleanup: removed redundant Gradle JVM options joining function
Code review: IJ-CR-144595

GitOrigin-RevId: 86fb45c4d9d0a022bb027207bb6badfa25901bed
2024-09-30 13:54:40 +00:00
Sergei Vorobyov
cdfeb0f4f4 [Gradle|Debug] cleanup: removed redundant Gradle init script splitting
Code review: IJ-CR-144595

GitOrigin-RevId: 3dc55c3a94da59e7f40341c376d7adb765c214e8
2024-09-30 13:54:40 +00:00
Frederik Haselmeier
267b8ea65b [kotlin] Added AbstractGradleModuleBuilder method to disable settings script generation
KTIJ-31047

GitOrigin-RevId: e74d61a7dd113bf225f0df9ade691aee3781dd91
2024-09-30 11:50:37 +00:00
Frederik Haselmeier
c593d50a45 [kotlin] Added option to generate Kotlin/Gradle projects using buildSrc and convention plugins
KTIJ-31047

GitOrigin-RevId: 7eb3fca36a1dcbcca51760533c22e44da017910d
2024-09-30 11:50:37 +00:00
Sergei Vorobyov
e3da0bb5d9 [Java|Gradle|Sync] cleanup: renamed JarTaskManifestConfiguration to JavaGradleManifestModel
GitOrigin-RevId: c898c9ac1a1d7dd9e20efecb9e7908f201b6d43e
2024-09-27 18:39:57 +00:00
Sergei Vorobyov
b1d4df714d [Java|Gradle|Sync|IsolatedProject] fix: build JarTaskManifestConfiguration without using GradleTaskIndex
Issues IDEA-35499

GitOrigin-RevId: f01a1beae0e67b1c1667b5ae7d922f8b51ac6ed7
2024-09-27 18:39:57 +00:00
Sergei Vorobyov
ae516796f0 [Java|Gradle|Sync] cleanup: converted JarTaskManifestModelBuilder from Java to Kotlin
GitOrigin-RevId: 737cc90043ff23eddb60c5f1bd2abdd7eb10b03c
2024-09-27 18:39:57 +00:00
Sergei Vorobyov
c2ed237682 Rename .java to .kt
GitOrigin-RevId: 7dced39745fa45622fd53adde177b0757d4e8041
2024-09-27 18:39:57 +00:00
Sergei Vorobyov
50daf33b92 [Gradle|Sync|IsolatedProject] fix: build GradleTaskModel without using GradleTaskIndex
Issues IDEA-354993

GitOrigin-RevId: 41973e9a0b00f983b5b4bbb1535901abc8ef9e4a
2024-09-27 18:39:57 +00:00
Sergei Vorobyov
a012c775a8 [Gradle|Sync|IsolatedProject] fix: moved task model building process to the last Gradle sync phase.
The "ADDITIONAL_MODEL_PHASE" is the last Gradle sync phase.

Issues IDEA-354993

GitOrigin-RevId: b05c721c2606f28a0738fd236241ff53edfab68d
2024-09-27 18:39:57 +00:00
Sergei Vorobyov
872a035807 [Gradle|Sync|Test] fix: added directories with build.gradle for all tested Gradle projects
GitOrigin-RevId: a3b785eb3fbd0301e0f58e211691ae2113c68930
2024-09-27 18:39:57 +00:00
Sergei Vorobyov
e0511c0f50 [Gradle|Sync] cleanup: removed redundant the GradleReflectionUtil.reflectiveGetProperty util function.
GitOrigin-RevId: 7c80e996a7b72a7701310c52ddd44a869f06ac20
2024-09-27 18:39:57 +00:00
Sergei Vorobyov
abf71679c9 [Gradle|Sync] cleanup: marked artifact file and artifact name extractor function as notnull
GitOrigin-RevId: 15b3df410a797642bba2164113704d6d131e34ab
2024-09-27 18:39:57 +00:00
Sergei Vorobyov
dbea7dd8af [Gradle|Sync] cleanup: simplified and unified logic of War and Ear Gradle model builders
GitOrigin-RevId: 5e4679420d4b1a1a97b05f0afc79e4b19cedf146
2024-09-27 18:39:57 +00:00
Vladimir Krivosheev
e881a06df7 IJPL-162718 convert ProjectBuilder to kotlin
GitOrigin-RevId: c7b1ecffbaf0641b415f8697d74a692800d0bbee
2024-09-27 13:50:50 +00:00
Nikita.Skvortsov
1ad63014b2 [gradle] add assert against illegal arguments IDEA-359503
GitOrigin-RevId: 34f3f9a489f665f5ce9878c8a08bcc9a4414d99c
2024-09-25 15:31:39 +00:00
Sergei Vorobyov
ccbae49228 IDEA-356996 fix: don't execute inherited application run configuration in the delegated to Gradle execution mode
All run configurations that can be run in the Gradle delegated mode should implement GradleExecutionEnvironmentProvider. It is already implemented for Micronaut, Ktor and Spring Boot.

GitOrigin-RevId: d4262bd31745f5f908e158d22d7c4e7b0618942f
2024-09-24 17:15:34 +00:00