Yan Zhulanow
6e65a4810e
Make a project-wide embeddedComponents configuration for embedding external binaries to project artifacts
2018-03-02 03:15:32 +03:00
Yan Zhulanow
34d1611ed4
Add Pill support to compiler and IDE modules
2018-03-02 03:15:17 +03:00
Yan Zhulanow
edcf0aef53
Kapt: Allow Kotlin @Repeatable annotations (KT-22451)
...
We don't generate a wrapper for repeatable annotations, and Javac complains to it.
2018-02-09 19:11:03 +03:00
Yan Zhulanow
2a3bab0a0f
Kapt: Register additional source directories without modifying the raw Gradle model
...
Unfortunately, this works only for the newer Android Studio versions, so we need to keep the old code until IDEA will migrate at least to AS 3.1.
2018-02-08 19:36:38 +03:00
Yan Zhulanow
6c4a2db34b
Kapt: Enums inside enum values should be forbidden (KT-22582)
2018-02-08 19:36:38 +03:00
Yan Zhulanow
bdd7ab3a09
Kapt: Mute Java 9 tests temporarily on Windows
2018-02-08 19:36:37 +03:00
Yan Zhulanow
1cc4744345
Kapt: Map URLs to absolute file paths properly, also add some logging
2018-02-08 19:36:37 +03:00
Yan Zhulanow
1f81c0cdfe
Kapt: Fix compilation errors when the referenced class has '$' in the beginning of its name (KT-22493)
2018-02-06 22:16:01 +03:00
Yan Zhulanow
5fc9c5671c
Kapt: Escape nested comments in doc comments (KT-22469)
2018-02-06 22:16:01 +03:00
Yan Zhulanow
abda4bfb57
Kapt: Remove comments inside enum values (KT-22350)
2018-02-06 22:16:01 +03:00
Yan Zhulanow
4e8969e1c2
Kapt: Fix array of anonymous type handling (KT-22468)
2018-02-06 22:16:00 +03:00
Yan Zhulanow
144ec9285f
Minor: Get rid of duplicating option descriptions in Kapt plugin
2018-02-06 22:16:00 +03:00
Yan Zhulanow
7c7c929b0e
Kapt: Disable location mapping by default, allow to enable it manually
2018-02-06 22:16:00 +03:00
Yan Zhulanow
5668a7af92
Kapt: Replace original Javac diagnostic messages with those with Kotlin location mapped
...
There is no Messages dialog in newer versions of IDEA/Android Studio in which the error messages were mapped before. The new Build window shows only the original locations, so now we need to replace Java file diagnostics with ones mapped to Kotlin source files.
The side effect is that diagnostics on the same locations are automatically merged.
2018-02-06 22:16:00 +03:00
Yan Zhulanow
b0e97de8a8
Kapt: Move line metadata to .kaptMetadata external files (KT-22386)
...
Placing location table inside .java file triggers annotation processor to run on each line table modification (even when the stub declarations themselves are the same). So we move it to the separate file.
2018-02-06 22:16:00 +03:00
Vyacheslav Gerasimov
ec511f7a78
Use dependsOn for dependencies on dist & ideaPlugin tasks
...
instead `shouldRunAfter`
2018-02-01 18:11:25 +03:00
Vyacheslav Gerasimov
68b5dc756c
Remove intellij-core from testRuntime if full idea is already there
...
Looks like it makes tests flacky
2018-01-30 17:06:18 +03:00
Ilya Chernikov
555e9674b2
Fix dependencies to the cross-project tasks
2018-01-30 17:06:17 +03:00
Dmitry Jemerov
e83845ea72
Build changes to support Android Studio
2018-01-30 17:06:16 +03:00
Ilya Chernikov
5dc094d290
Implement correct and fast ultimate/community sdks handling
2018-01-30 17:06:15 +03:00
Ilya Chernikov
6f1e6f1f1b
Fix tests after rebasing and messing with the dependencies
2018-01-30 17:06:15 +03:00
Ilya Chernikov
7e21573cf4
Convert the rest of the project to intellij repo prepared in buildSrc
2018-01-30 17:06:13 +03:00
Ilya Chernikov
a4f28cd94f
Make all dependencies to idea sdk intransitive
2018-01-30 17:06:11 +03:00
Ilya Chernikov
06c8cbf7d6
Convert all remaining plugin modules to intellij plugin
2018-01-30 17:06:07 +03:00
Yan Zhulanow
7b055c2172
Kapt: Prefer non-aliased imports over aliased. Make sure the imported short names are unique (KT-22083)
2018-01-25 22:03:29 +03:00
Yan Zhulanow
108e91f2a2
Kapt: Be less strict when it's impossible to add a generated Kotlin source directory for Android project (KT-22056, EA-114271)
2018-01-15 12:39:34 +09:00
Yan Zhulanow
283c762b8b
Kapt: Remove laziness from diagnosticFactory and javacMessages, use factory from supertype (KT-22189)
...
writeDiagnostic() may be invoked after the 'context' is cleared, and lazy implementations will fail.
2018-01-15 12:39:34 +09:00
Yan Zhulanow
192489ae66
Minor: Remove bulk class added by mistake
2018-01-15 12:39:33 +09:00
Yan Zhulanow
e7c1d94c0f
Minor: Fix red code in IDE
2018-01-15 12:39:30 +09:00
Yan Zhulanow
df19162c8c
Kapt: Store line information in a file doc comment, instead of annotations (KT-21936)
2018-01-15 12:39:28 +09:00
Dmitry Jemerov
e80dae1802
Update copyright in generated tests
2018-01-10 11:55:28 +01:00
Yan Zhulanow
4ec20ad595
Minor: Fix build, remove inline function usage
2017-12-15 17:39:17 +09:00
Yan Zhulanow
d58665b5a8
Kapt: Remove duplicating check, this also removes the senseless warning (KT-21425)
2017-12-15 02:35:12 +09:00
Yan Zhulanow
4c96453a4b
Kapt: Annotations on enum constants are not kept on the generated stub (KT-21433)
2017-12-15 02:35:12 +09:00
Alexey Sedunov
9ed0b49746
Gradle: Compile Gradle models/model builders under JVM 1.6
...
This prevents imports failure in projects using older versions of Gradle
#KT-21610 Fixed
2017-12-12 15:38:40 +03:00
Yan Zhulanow
0b37c9e83c
Kapt: Report about of time spent in each annotation processor in verbose mode (KT-21542)
2017-12-01 22:53:22 +09:00
Yan Zhulanow
ef6be206d0
Kapt: Clear URL cache after changing annotation processor JAR
2017-12-01 22:53:22 +09:00
Yan Zhulanow
9e43992094
Minor: Update kapt converter test for imports
2017-12-01 22:53:21 +09:00
Yan Zhulanow
3dc7502b0b
Kapt, minor: Remove kaptError with location, it doesn't do anything reasonable now anyway
2017-12-01 22:53:21 +09:00
Yan Zhulanow
a4a7db06d2
Kapt: force resolve import references in partial analysis mode (required for import conversion in correctErrorTypes)
2017-12-01 22:53:21 +09:00
Yan Zhulanow
1a3317ae2b
Kapt: Attach generated classes directory as library source (KT-19823)
...
This may seem like a magic, but actually it's deadly simple.
GradleProjectResolver.mergeLibraryAndModuleDependencyData() tries to find a better substitution for the absolute BINARY paths, but actually makes things worse in our case.
GradleProjectResolver checks if the provided path is in the Gradle project output path list, and if the answer is yes, then it replaces our path to a Gradle Project (or a module in JPS terminology) dependency.
2017-12-01 22:53:21 +09:00
Yan Zhulanow
2e17c0b7f1
Kapt: Filter out non-package all-under imports whenever possible in "correctErrorTypes" (KT-21359)
2017-12-01 22:53:21 +09:00
Yan Zhulanow
00bb38fbb1
Kapt: Support import directive with aliases in "correctErrorTypes" mode (KT-21358)
2017-12-01 22:53:21 +09:00
Yan Zhulanow
c7645bcf03
Kapt: Replace error.NonExistentClass usages to Object (as it does not break class hierarchies)
2017-12-01 22:53:21 +09:00
Yan Zhulanow
e46fe9b255
Kapt: Do not add duplicating library entries in project importing
2017-12-01 22:53:20 +09:00
Yan Zhulanow
3d1ca61f9f
Kapt: Remove artificial KaptError exception on errors from annotation processor (KT-21262)
2017-12-01 22:53:20 +09:00
Yan Zhulanow
0a0de8da29
Kapt: Fix correctErrorTypes for getters of properties defined in the primary constructor
2017-12-01 22:53:20 +09:00
Yan Zhulanow
182c2e2eeb
Kapt: Launch integration tests also under Java 9
2017-12-01 22:53:20 +09:00
Yan Zhulanow
6ccf361942
Kapt: -Xmaxerrs javac option is not propagated properly (KT-21264)
2017-12-01 22:53:20 +09:00
Yan Zhulanow
2819fc718a
Parcelable: Migrate to canonical NEW-DUP-INVOKESPECIAL form (KT-20545)
2017-12-01 22:53:20 +09:00