Alexander Udalov
6820509f83
Regenerate gradle/project-schema.json
2017-10-18 12:48:16 +02:00
Alexander Udalov
6e410cb182
Make TypeConstructor.isFinal return false for enums
...
The reason is that before dc02b2e3ab and 8a0dcca957 ,
TypeConstructor.isFinal for some class descriptors
(DeserializedClassDescriptor, LazyJavaClassDescriptor,
MutableClassDescriptor) were implemented as `isFinalClass` (which is
`modality == FINAL && kind != ENUM_CLASS`), and all others as
`modality == FINAL` or simply true/false. This led to differences in
behavior depending on the exact instance of the class descriptor.
Now that TypeConstructor.isFinal is always `modality == FINAL`, some
tests (PseudoValueTestGenerated) fail because the finality of some type
constructors changed and these tests render final vs non-final type
constructors differently.
In this commit, TypeConstructor.isFinal is now made to behave safer,
i.e. considering enum class type constructor to be non-final (as was the
case earlier for some ClassDescriptor instances). Some diagnostics might
disappear (e.g. FINAL_UPPER_BOUND) but it doesn't look like a big deal
2017-10-18 12:45:45 +02:00
Alexander Udalov
825aff7ac6
Minor, do not produce trailing spaces in AbstractPseudoValueTest
2017-10-18 12:45:45 +02:00
Pavel V. Talanov
320c5f6f3a
Try to approximate "build.gradle.kts" script dependencies on first access
...
This is a hacky solution to prevent whole file being highlighted as unresolved while we wait for gradle response
2017-10-17 18:49:48 +03:00
Pavel V. Talanov
1cdac78b32
ScriptDependenciesCache, refactor: use delegated properties
2017-10-17 18:49:40 +03:00
Alexey Tsvetkov
896dacc835
Fix android extensions maven dependencies
...
`kotlin-android-extensions-runtime` and `kotlin-android-extensions-compiler`
had `com.google.android:android` as a provided dependency, but
during transition to Kotlin Gradle build the dependency was declared
as `runtime` instead of `compileOnly`.
2017-10-17 18:35:28 +03:00
Ilya Gorbunov
eaa3b3ccf0
Enable publishing for kotlin-annotations-android
2017-10-17 17:32:22 +03:00
Stanislav Erokhin
0a2421d453
Disable annotation processor for javac by default in whole project
2017-10-17 17:25:25 +03:00
Sergey Igushkin
d453a2fc92
Use runtimeJar configuration instead of default for plugin markers.
2017-10-17 14:37:11 +03:00
Andrey Breslav
a0da37fd41
Fix the description file
2017-10-17 12:13:22 +02:00
Anton Bannykh
f92c4b7704
Fixed indentation
2017-10-17 13:04:35 +03:00
Anton Bannykh
6d6ce7cbab
JS: publish to NPM sourcemaps and *.kjsm files
2017-10-17 13:04:35 +03:00
Nikolay Krasko
6804409fc5
Fix idea version to 2017.2.5 (172.4343.14)
2017-10-17 12:33:01 +03:00
Nikolay Krasko
0ce4873312
Extract variable for idea download
2017-10-17 12:33:01 +03:00
Nikolay Krasko
c4e3cc0705
Add read action for getting text
...
Fix "Read access is allowed... exception"
2017-10-17 12:33:01 +03:00
Nikolay Krasko
339b1a3895
Minor: cleanup
2017-10-17 12:33:01 +03:00
Nikolay Krasko
3fda173ced
TypeDeclarationProvider should return null for irrelevant symbols
...
Otherwise other providers won't be checked.
2017-10-17 12:33:01 +03:00
Alexey Sedunov
9fe0681fb6
MPP: Fix implementing module search in Gradle runner
2017-10-16 23:55:28 +03:00
Alexey Sedunov
db34bae05b
Gradle: Support 'expectedBy' configuration
2017-10-16 23:55:28 +03:00
Alexey Sedunov
a2a8335bab
Gradle: Add dependencies for indirectly implemented modules
...
#KT-16926 Fixed
2017-10-16 23:55:28 +03:00
Sergey Igushkin
0a808528b7
Fix missing ReflectUtil, call the ctor through reflection manually.
2017-10-16 21:48:38 +02:00
Sergey Igushkin
e94e62be98
Add android-extensions-compiler content to kotlin-android-extensions
2017-10-16 21:48:36 +02:00
Ilya Chernikov
431d47a605
Fix dependencies rewriting and gradle integration tests after applying rewriting
2017-10-16 21:48:36 +02:00
Ilya Chernikov
050403d15b
Use rewriteDeps task on the projects with runtime dependency on embeddable compiler...
...
which are using shaded dependencies
2017-10-16 21:48:35 +02:00
Ilya Chernikov
fb70227868
Move embeddable compiler shading logic to buildSrc, implement rewriteDeps task
...
the task takes a jar an a shading task (like the one that creates embeddable
compiler) and rewrites jar's dependencies to the shaded ones according the
the shade task.
2017-10-16 21:48:34 +02:00
Ilya Chernikov
5babf89245
Remove original jar artifact from archives when adding a new one by runtimeJar tasks
2017-10-16 21:48:33 +02:00
Yan Zhulanow
6fb1e269b4
Minor: Fix build, add missing Android library dependency JARs
2017-10-16 22:43:09 +03:00
Yan Zhulanow
43a1162b25
Evaluate: Fix for evaluating local variables captured by an inline function (KT-17514)
2017-10-16 21:25:44 +03:00
Yan Zhulanow
fed5bddde2
Android Extensions: Initial IC support (KT-14125)
2017-10-16 21:25:42 +03:00
Yan Zhulanow
1b5b9f1fbb
Kapt: Support 'correctErrorTypes' in annotations (KT-19518)
2017-10-16 21:25:41 +03:00
Yan Zhulanow
91ed130286
Add additional diagnostic for EA-107110
2017-10-16 21:25:40 +03:00
Yan Zhulanow
58571dcf1d
Fix KNPE in evaluator (EA-89384)
2017-10-16 21:25:39 +03:00
Yan Zhulanow
8c7f469030
Parcelable: Use @IgnoredOnParcel annotation instead of Transient cause it's inapplicable on properties (KT-20298)
2017-10-16 21:25:37 +03:00
Yan Zhulanow
cafd99660a
Minor: Make class abstract to get rid of the warning in tests
2017-10-16 21:25:36 +03:00
Yan Zhulanow
27d3ed76a0
Android Extensions: Support non-latin identifiers (KT-20299)
2017-10-16 21:25:34 +03:00
Yan Zhulanow
eefad896a0
Kapt: Mark 'kapt.kotlin.generated' as a source root automatically in Android projects (KT-20269)
2017-10-16 21:25:33 +03:00
Yan Zhulanow
50ab054883
Kapt: Preserve kapt plugin options if there are also options from compiler plugins (KT-20257)
2017-10-16 21:25:32 +03:00
Yan Zhulanow
d89143e641
Kapt: Report info log messages as warnings
...
Otherwise the log messages are not visible until the "--info" options is provided in Gradle.
2017-10-16 21:25:31 +03:00
Yan Zhulanow
2034b1f075
Parcelable: Provide quick fixes for custom Parceler support
2017-10-16 21:25:29 +03:00
Yan Zhulanow
a63aca08f2
Parcelable: Support custom Parcelers in compiler plugin
2017-10-16 21:25:27 +03:00
Yan Zhulanow
7dbefc1613
Remove generic bound for Parceler
2017-10-16 21:25:25 +03:00
Yan Zhulanow
a4f06c9fa8
Kapt: Do not inline R.resType.resName constants in annotations (KT-18791)
2017-10-16 21:25:24 +03:00
Mikhail Glukhikh
eba2fdfe89
Fix inline test
2017-10-16 21:06:18 +03:00
Stanislav Erokhin
fde1ac5575
Add test for ExpectedTypeFromCast feature
2017-10-16 20:10:57 +03:00
Mikhail Glukhikh
3fb0354676
Minor: add / fix comments (related to KT-20752)
2017-10-16 20:00:47 +03:00
Alexey Andreev
46526db8f0
JS: fix behaviour of char-returning functions with multiple inheritance
...
See KT-19772
2017-10-16 18:56:33 +03:00
Ilya Gorbunov
13d6e96c2f
Do not pack build.txt into jars, leave it only in artifact zip bundles
2017-10-16 18:48:09 +03:00
Ilya Gorbunov
3bea095618
Remove maven poms that are no longer submodules of the main project
2017-10-16 18:48:09 +03:00
Ilya Gorbunov
ef3b0e0ff0
Add kotlin-test parent project
2017-10-16 18:48:09 +03:00
Ilya Gorbunov
13086b4347
Exclude node_modules dir from kotlin-stdlib-js project
...
Minor: shorter IdeaModel configuration.
2017-10-16 18:48:09 +03:00