Commit Graph

913 Commits

Author SHA1 Message Date
Sergey Rostov b7e1cd7489 gradle.kts: solve the linked gradle builds hell 2020-05-07 21:48:47 +03:00
Sergey Rostov 6213c6187d gradle.kts, imported gradle build root: fix equality 2020-05-07 21:48:46 +03:00
Sergey Rostov eb672c02fa ScriptConfigurationManager: rebuild cache synchronously from default loader 2020-05-07 21:48:46 +03:00
Sergey Rostov e6528a26e9 gradle.kts: cache definitions 2020-05-07 21:48:46 +03:00
Sergey Rostov 4de1381649 gradle.kts: remove useless gradle build root kinds 2020-05-07 21:48:46 +03:00
Sergey Rostov 6ad0ed7f40 CompositeScriptConfigurationManager: unified caching 2020-05-07 21:48:46 +03:00
Sergey Rostov 368e6f93df GradleScriptConfigurationLoader: KDocs 2020-05-07 21:48:46 +03:00
Anton Yalyshev 37e676a4a6 Bump Gradle (6.3) and Android-build-tools (3.6.3) versions in new project wizards 2020-05-07 14:19:03 +03:00
Natalia Selezneva d716c47f17 Gradle Project importing: move ModelBuilders and ModelProviders to kotlin-gradle-tooling
^KT-36673 Fixed
2020-04-30 13:41:13 +03:00
Andrey Uskov 89777f8bf3 Move GradleQuickFixTest checks in EDT Thread 2020-04-28 11:53:30 +03:00
Andrey Uskov aa6801569a Fix compilation of ExternalSystem tests in legacy branches 2020-04-28 11:53:28 +03:00
Dmitriy Dolovov 151890dde5 Add test for overloading expect MemberDescriptors discrimination
Issue #KT-38298
2020-04-28 13:16:23 +07:00
Andrey Uskov b51649dcc6 Fix tests compilation in 201 2020-04-27 10:00:32 +03:00
Andrey Uskov 27384d29d4 Move inspection checks in EDT thread 2020-04-27 00:21:17 +03:00
Andrey Uskov d2a10cbb2d Merge changes in ExternalSystemTestCase into KotlinGradleTests 2020-04-27 00:21:12 +03:00
Vladimir Dolzhenko 8979b98fc0 Dropping components cleanup
#KT-38407 Fixed
2020-04-24 09:39:49 +00:00
Natalia Selezneva 7f8b3b6a79 Minor: rename function 2020-04-23 20:14:03 +03:00
Natalia Selezneva 574f57e604 Minor: extract class to separate file 2020-04-23 20:14:02 +03:00
Natalia Selezneva 25dc8b7766 Minor: rename files 2020-04-23 20:14:02 +03:00
Natalia Selezneva 294df3a7e9 201: Implement floating notification update 2020-04-23 20:14:02 +03:00
Natalia Selezneva 2fba813a53 Rework the notification for scripts out of project
Add an option to link external gradle project
remove an option to load configuration manually because it cannot be implemented properly: script configurations for those scripts shouldn't be loaded during import for Gradle 6.0

^KT-37178 Fixed
2020-04-23 20:14:02 +03:00
Natalia Selezneva 85141b753b Show notification that gradle project is needed to be imported to get code insight for kotlin scripts 2020-04-23 20:14:01 +03:00
Natalia Selezneva 69d86a2972 Fix getting default sdk for scripts after refactoring 2020-04-23 20:14:01 +03:00
Sergey Rostov 73760effee Refactor GradleScriptingSupport to support multiple gradle projects linked to one idea project
For each externalGradleProject separate GradleScriptingSupport is created.
This allows to save script configurations by gradle projects

^KT-37806 Obsolete
^KT-35151 Fixed
2020-04-23 20:14:01 +03:00
Natalia Selezneva f3687dcd00 Extract utils methods for getting gradle project settings 2020-04-23 20:14:01 +03:00
Natalia Selezneva f5f69ccc1b Fix getting gradle version for new project 2020-04-23 20:14:01 +03:00
Natalia Selezneva c52e5d180a Fix compilation for AS35 2020-04-23 20:14:00 +03:00
Natalia Selezneva 59bdf67aa2 Refactoring: extract separate manager to update script configurations of gradle scripts
The main goal is to extract logic that is related to Gradle scripts only to separate place.
Configurations for gradle scripts are updated during import simultaneously, there is no need to manage script configuration update for one file
Note that for Gradle less than 6.0 The DefaultScriptingSupport is used
2020-04-23 20:13:59 +03:00
Natalia Selezneva c6609e9a97 Temporary remove flacky assert from GradleKtsImportTest 2020-04-23 20:13:59 +03:00
Natalia Selezneva da76fff83c Remove unused parts 2020-04-23 20:13:59 +03:00
Natalia Selezneva 7ecaf35647 Fix javaHome storing KotlinDslScriptModels 2020-04-23 20:13:58 +03:00
Natalia Selezneva a35523b6d0 Implement global notification for configurations update of gradle scripts
For 193: it will be a simple notification at the bottom of the IDEA window
For 201: a floating notification in the editor is implemented near "Load Gradle Changes" icon
^KT-34443 Fixed
2020-04-23 20:13:58 +03:00
Natalia Selezneva e300b30de1 Do not use hard coded string literals in UI 2020-04-23 20:13:58 +03:00
Natalia Selezneva 1b7f72020e GradleScriptListener should be applicable for all gradle scripts
Not only for those that are in project
Otherwise changes in those unrelated to gradle project script will affect up to date of other scripts
2020-04-23 20:13:58 +03:00
Natalia Selezneva 426c0c9ff0 201: Run partial import in IDEA 2020.1 to get script configurations
It only requests for KotlinDslScriptsModel
^KT-34481 Fixed
2020-04-23 20:13:58 +03:00
Natalia Selezneva 10aeead925 Run gradle import instead of usage of scripting API during configurations update
For Gradle 6.0 or higher
^KT-34481
2020-04-23 20:13:57 +03:00
Natalia Selezneva 97e5ff858d Add ability to postpone script configuration loading
Show notification for scripts with out of date configurations

^KT-35573
2020-04-23 20:13:57 +03:00
Natalia Selezneva 7f5715f5da 201: KotlinDslScriptsModel: use ProjectModelContributor to process models
Instead of populateProjectExtraModels in Resolver
2020-04-23 20:13:57 +03:00
Vladimir Ilmov 153056b4fd (CoroutineDebugger) Added check if agent is not available in target jvm 2020-04-21 09:48:10 +02:00
Vyacheslav Gerasimov 8d06744a6a Set local build version to 1.4.255-SNAPSHOT
#KT-36128

(cherry picked from commit a8650ccfd2)
2020-04-20 18:48:00 +03:00
Dmitriy Dolovov c3e20bffd7 Fix launching Gradle import test from master
No need to depend on org.jetbrains.kotlin:kotlin-native-utils artifact.
It's already packed inside of kotlin-compiler.jar
2020-04-14 21:08:04 +07:00
Dmitriy Dolovov 757d77600a HMPP: Evaluate exact TargetPlatform for each K/N KLIB library 2020-04-14 21:07:38 +07:00
Dmitriy Dolovov 8d2e999776 HMPP: Parameterize NativePlatform with KonanTarget 2020-04-14 21:06:48 +07:00
Dmitriy Dolovov 1b281d623b HMPP: Propagate K/N flavor into each imported K/N module 2020-04-14 21:06:42 +07:00
Andrey Uskov e8a54d6c75 Fix import of MPP projects in IDEA 2020.1 2020-04-13 09:19:56 +03:00
Natalia Selezneva 57d390bab0 Introduce new external listener to avoid failing loading dependencies during new projet creation 2020-04-10 17:50:51 +03:00
Ilya Matveev 7c0ab5a58e [K/N in IDE] Display short names of platform libs 2020-04-09 13:07:42 +07:00
Konstantin Tskhovrebov e1a88de314 Add native run tasks data to KotlinTarget. 2020-04-07 16:09:02 +03:00
Nikolay Krasko b89a7325b2 Remove https://dl.bintray.com/kotlin/kotlin-eap repository from gradle tests 2020-04-03 19:31:31 +03:00
Ilya Goncharov d4ece2b23b [Gradle, JS] Fix ktor version in web mpp wizard
#KT-37980 fixed
2020-04-03 09:45:26 +03:00