Ilya Chernikov
d9760f00f6
Move context classpath utils from script-util to scripting-jvm
...
since it is the right place to have it in the new structure.
Solves the problem that script-util classes not found then script
definition with context classpath is loaded by the scripting compiler
plugin, since script-util is not packed into embeddable plugin.
The old context utils are deprecated and in fact wrap the new utils.
#KT-26828 fixed (in fact - partially, see another related commit)
2018-09-15 15:43:53 +02:00
Alexey Sedunov
7b3973db52
MPP: Enable Android-specific content root logic for Android Studio
...
#KT-26813 Fixed
2018-09-14 21:27:10 +03:00
Mikhail Glukhikh
382379d785
MPP wizard: remove kotlin-stdlib-native & kotlin-test-native deps
...
Related to KT-25952
2018-09-14 18:58:50 +03:00
Pavel V. Talanov
cbe3c69457
Gradle method/class configurations: support only jvm modules
...
Fixes a problem where invalid run configuration could be created
for common module when 'Gradle Test Runner' option is selected
2018-09-14 17:36:29 +02:00
Alexey Sedunov
619e2bc0db
MPP: Allow 'implements' relation only within the same Gradle project
...
Also allow COMMON modules on the "implementer" side
2018-09-14 17:33:59 +03:00
Dmitry Petrov
88fb76bffc
Fix annotations loading for inline class constructors
2018-09-14 16:09:41 +03:00
Alexey Sedunov
d5b3dc8a2a
MPP: Exclude non-COMMON modules from 'implemented' list
2018-09-14 15:56:04 +03:00
Alexey Sedunov
5a64067601
MPP: Update gradle plugin version in new MPP tests
2018-09-14 14:51:02 +03:00
Alexey Sedunov
14d8425e27
MPP: Fix import of dependencies on Android modules
2018-09-14 14:51:01 +03:00
Alexey Sedunov
1de0dbd67d
MPP: Configure Kotlin facets for Android modules
...
#KT-26770 Fixed
2018-09-14 14:51:01 +03:00
Alexey Sedunov
9253f88220
MPP: Exclude COMMON modules from implementation list
2018-09-14 14:51:01 +03:00
Alexey Sedunov
4970e90412
MPP: Add commonMain as a part of inter-project dependency
...
#KT-26383 Fixed
2018-09-14 14:51:01 +03:00
Alexey Sedunov
469b11e0aa
MPP: Drop duplicating library produced by file collection dependency
...
#KT-26675 Fixed
2018-09-14 14:51:01 +03:00
Alexey Sedunov
5ac64bcc1d
MPP: Match project dependencies by target elements task
2018-09-14 14:51:00 +03:00
Alexey Sedunov
a417630c24
MPP: Force COMMON platform for commonMain/commonTest source sets
...
Follow-up for 172/AS3.1 bunches
2018-09-14 14:51:00 +03:00
Alexander Udalov
5dc563a9af
Split deprecationUtil.kt to several files, move to subpackage
...
Also move interface Deprecation to subpackage "deprecation"
2018-09-14 14:43:23 +03:00
Nikolay Krasko
c268dcecd2
Better parsing for external library name (KT-26794)
...
- Migration notification fixed
- Make fix for replacing old coroutines libraries applicable
#KT-26794
2018-09-14 10:52:57 +03:00
Dmitriy Dolovov
0c94aefb87
Move NativeIdePlatformKind to idea-jps-common
...
Issue #KT-26714 Fixed
2018-09-13 20:30:34 +03:00
NikitaKatkov
d2536f207c
183: CoroutineNonBlockingContextChecker for warning on blocking calls in coroutines (KT-15525)
2018-09-13 19:36:51 +03:00
Mikhail Glukhikh
76d1d6ff12
Allow to move suspend lambda out of parentheses
...
#KT-26674 Fixed
#KT-26676 Fixed
2018-09-13 16:38:29 +03:00
Natalia Selezneva
4b138ae2b8
Do not use async script dependencies resolver in tests
2018-09-13 14:50:22 +03:00
Nikolay Krasko
8be1929634
Title and description unification for coroutines migration inspection (KT-26472)
2018-09-13 11:26:59 +03:00
Nikolay Krasko
9bfbe8a90a
Enable Maven fix for coroutines in migration (KT-26472)
...
#KT-26472 Fixed
2018-09-13 11:26:57 +03:00
Nikolay Krasko
504c9c02d7
Remove detection of new projects from the list of modules
2018-09-13 11:26:55 +03:00
Nikolay Krasko
a58f7b5599
Remove unneeded bunch file
2018-09-13 11:26:53 +03:00
Mikhail Glukhikh
941e5ae1b2
Introduce MPP wizard for shared (JVM / JS / iOS) libraries
...
This implements second part of KT-25952
2018-09-13 10:52:46 +03:00
Mikhail Glukhikh
84587eb0f9
Kotlin JVM/JS multiplatform builder: change description
2018-09-13 10:52:23 +03:00
Mikhail Glukhikh
6c49c1eabd
NativeIdePlatformKind: remove redundant
2018-09-13 09:09:46 +03:00
Mikhail Glukhikh
e7a6ce3626
NativeIdePlatformKind: remove unused
2018-09-13 09:09:44 +03:00
Mikhail Glukhikh
df0d91ef9e
Style fix: KotlinNativeModuleConfigurator
2018-09-13 09:09:43 +03:00
Ilya Gorbunov
3cc606577c
Add annotations-13.0 in classpath of those tests where the annotations from stdlib were used
2018-09-13 02:41:19 +03:00
Denis Zharkov
e213dc261e
Fix bunch files for test RunConfigurationTest
2018-09-12 19:48:03 +03:00
Alexander Podkhalyuzin
85ba637796
Light classes should reuse language versions settings during generation
...
#KT-26732 Fixed
2018-09-12 16:02:07 +03:00
Dmitry Petrov
792c5f8b3f
Generate metadata and annotations for hidden constructor
...
Reflection expects to see a callable method for a hidden constructor,
thus, it should be a synthetic accessor.
JVM method signature in metadata should point to the synthetic accessor.
Annotations for hidden constructor should be written on the synthetic
accessor.
2018-09-12 15:33:11 +03:00
Ilmir Usmanov
3e3ffd14a9
Exclude kotlin.coroutines.intrinsics and kotlin.coroutines.jvm.internal
...
from default imports.
2018-09-12 15:22:51 +03:00
Denis Zharkov
8365836753
Fix as33-bunch for KotlinRunConfigurationProducer.kt after 38be1f6947
2018-09-12 14:03:07 +03:00
Denis Zharkov
9bc5b753aa
Fix 181-bunch for KotlinRunConfigurationProducer.kt after 38be1f6947
2018-09-12 11:47:33 +03:00
Denis Zharkov
aa74511378
Fix UnusedSymbolInspection for parameterless and suspend main functions
...
#KT-26574 Fixed
2018-09-12 09:49:25 +03:00
Denis Zharkov
1cc0c12f87
Add language feature for extended main convention
...
- suspend
- parameterless
#KT-17679 Fixed
#KT-26574 Fixed
2018-09-12 09:49:25 +03:00
Denis Zharkov
f79fbe778f
Minor. Extract KtElement::isMainFunction in the IDE context
2018-09-12 09:49:25 +03:00
Denis Zharkov
38be1f6947
Minor. Parametrize MainFunctionDetector with LanguageVersionSettings
2018-09-12 09:49:25 +03:00
Denis Zharkov
2c920b732c
Support main entry-point without arguments in frontend
...
#KT-26574 In Progress
2018-09-12 09:48:13 +03:00
Denis Zharkov
3cf1c56794
Minor. Get rid of static public parts in MainFunctionDetector
...
In further commits, MainFunctionDetector::isMain will use
getFunctionDescriptor property
2018-09-12 09:48:13 +03:00
Denis Zharkov
c3f6ba3302
Support suspend fun main in JVM
...
#KT-17679 Fixed
2018-09-12 09:48:13 +03:00
Ilya Gorbunov
a18770fbbb
Remove projectDist dependency helper usages
...
Use default configuration dependencies instead of projectDist ones.
2018-09-12 06:05:05 +03:00
Pavel V. Talanov
ef915096a5
Common tests are discoverable via platform modules test classpath
...
Introduce KotlinGradleOrderEnumerationHandler
and patch KotlinAndroidGradleOrderEnumerationHandler:
- If 'Android Support' plugin is off KAndroidGradleOEH will not be available and KGOEH will be used
- Make KAndroidGOEH implement a different EP so it replaces KGOEH when it is available
2018-09-12 04:13:32 +02:00
Pavel V. Talanov
4b0bc4a438
Try to distinguish between test/production compilations
2018-09-12 04:13:32 +02:00
Pavel V. Talanov
ee1ec22e4c
Implement MultipleRunLocationsProvider EP
...
Provide run locations corresponding to platform modules when invoked from common code
2018-09-12 04:13:32 +02:00
Pavel V. Talanov
3da9d79fc2
KtFile.getClasses() returns empty array for non-jvm files
2018-09-12 04:13:32 +02:00
Pavel V. Talanov
3a2d25a422
Js run configuration producers: get module from ConfigurationContext
...
Delegate mpp concerns to MultipleRunLocationsProvider EP
Restore old behaviour via bunch files
2018-09-12 04:13:31 +02:00