Sergey Igushkin
ea458e6848
Add some API interfaces for Gradle PM20 entities in the API module
2021-04-23 00:42:37 +03:00
Sergey Igushkin
a52c6858a9
Minor fixes in exposed configurations
2021-04-23 00:42:37 +03:00
Sergey Igushkin
134fb7741e
Fix getChosenVariant implementation for project(...) dependencies
2021-04-23 00:42:36 +03:00
Sergey Igushkin
ec3fa2610e
Support basic publishing with maven-publish in the PM20 plugin
2021-04-23 00:42:36 +03:00
Sergey Igushkin
0bf408e147
(minor) Add isAllowCommonizer stub to the PM2.0 project extension
...
This prevents the IDE from failures during Gradle project sync
2021-04-23 00:42:35 +03:00
Sergey Igushkin
4e0485c523
Expose compiled metadata for project deps, set capabilities on elements
2021-04-23 00:42:35 +03:00
Sergey Igushkin
147fd22cfb
(minor) Fix static init issue with Gradle multi-threaded resolve
2021-04-23 00:42:35 +03:00
Sergey Igushkin
f1f97b4104
Support published MPP consumption with PM2.0 projects
2021-04-23 00:42:34 +03:00
Sergey Igushkin
70b88ada93
Gradle plugin prototype that uses the project model 2.0
2021-04-23 00:42:34 +03:00
Sergey Igushkin
d66f95b80e
Resolve dependencies as graph, support multiple modules in a project
2021-04-22 23:42:06 +03:00
Sergey Igushkin
f1fb438d00
Refactor: make fragments resolver consistent with variant resolver
2021-04-22 23:42:05 +03:00
Sergey Igushkin
7103aa3100
ModuleOrigin -> ModuleIdentifier
2021-04-22 23:42:04 +03:00
Sergey Igushkin
66b8a444c2
Add a basic markdown doc explaining dependency resolution.
2021-04-22 23:42:02 +03:00
Sergey Igushkin
6aee396e4b
Build PM2.0 in o.j.k.multiplatform (+ dependency resolution API)
2021-04-22 23:42:01 +03:00
Sergey Igushkin
994f940a31
Dependency resolution API in PM2.0
2021-04-22 23:42:00 +03:00
Sergey Igushkin
f189ebc983
Project Model 2.0 initial commit: core entities
2021-04-22 23:41:59 +03:00
Konstantin Tskhovrebov
6db3960d56
Add integration tests for "assembleAppleFrameworkForXcode" and "embedAndSignAppleFrameworkForXcode" tasks.
2021-04-22 20:33:20 +03:00
Konstantin Tskhovrebov
c2cdf9c796
Register "assembleAppleFrameworkForXcode" and "embedAndSignAppleFrameworkForXcode" tasks when gradle is run from Xcode.
...
#KT-27240
2021-04-22 20:33:20 +03:00
Alexander Udalov
99e022d023
IR: minor, remove duplicate visibility field
2021-04-22 17:42:18 +02:00
Dmitriy Novozhilov
d4162f876f
[FIR] Fix some warnings
2021-04-22 14:32:06 +03:00
Dmitriy Novozhilov
234ab3b35d
[FIR] Fix all illegal usages of declarationSiteSession in compiler
...
There are still some usages in IDE which should be investigated
2021-04-22 14:32:04 +03:00
Dmitriy Novozhilov
f98f41bbc3
[FIR] Rename session to declarationSiteSession in declaration builders
2021-04-22 14:32:03 +03:00
Dmitriy Novozhilov
c3b1be1a39
[FIR] Rename FirDeclaration.session to declarationSiteSession
2021-04-22 14:32:02 +03:00
Dmitriy Novozhilov
46f5c2073d
[FIR] Make most of declarations a sealed classes/interfaces
2021-04-22 14:32:00 +03:00
Dmitriy Novozhilov
7f7373dad2
[FIR] Support sealed classes and interfaces in FIR tree generator
2021-04-22 14:31:59 +03:00
Dmitriy Novozhilov
951daeea3a
[FIR] Add typealias to AbstractFirBasedSymbol<*> in FirDiagnosticsList
2021-04-22 14:31:58 +03:00
Vasily Levchenko
1ae41443a2
[kotlin-native][build] clean task fix
2021-04-22 11:16:55 +00:00
Jinseong Jeon
24d792fb49
FIR checker: warn useless elvis
2021-04-22 13:10:54 +03:00
Alexander Udalov
b2005302dc
JVM, JVM IR: erase generic SAM supertypes
...
Also, do not try to use invokedynamic on SAM calls with intersection
types, because intersection type is not allowed as an immediate type
projection of a supertype, and constructing a fake override in
LambdaMetafactoryArgumentsBuilder led to an exception. This fixes the
problem which was worked around earlier in e6c089ef , effectively
reverting that commit.
The main motivation for this change is that LambdaMetafactory also
doesn't generate generic signature for SAM wrapper classes at runtime.
Since these classes are synthetic, nobody should rely on the fact that
they have generic supertypes, which was observable only via Java
reflection.
#KT-46149 Fixed
#KT-46238 Fixed
2021-04-22 10:53:15 +02:00
Andrey Zinovyev
1093bffc62
[KAPT] Cache annotation processors' classloaders
...
Adds experimental feature to cache annotation processors' classloaders
It should increase speed of KAPT for consecutive runs
Works for gradle only (it stores cl in gradle daemon)
#KT-28901 Fixed
2021-04-22 11:51:14 +03:00
Mikhail Glukhikh
e6b9935df9
FIR: drop source-based check from InferenceUtils
2021-04-22 10:26:47 +03:00
sebastian.sellmair
75d9cd3814
[Minor] KotlinLibraryResolverImpl: Improve readability in resolveDependencies
2021-04-21 20:05:57 +00:00
sebastian.sellmair
3c4d0a1814
CInteropCommonizerTask: Mark dependency on commonized native distribution as @Classpath
2021-04-21 20:05:56 +00:00
sebastian.sellmair
f4617b2c03
Do not forward external dependencies on c-interop commonization.
...
^KT-46109
^KT-46107 Fixed
2021-04-21 20:05:56 +00:00
sebastian.sellmair
22ea5c7de4
Demote fatal error to warning on unresolved libraries mentioned in Klib's manifest 'depends' for metadata compilation
...
^KT-46107
2021-04-21 20:05:55 +00:00
sebastian.sellmair
95a1a4e66a
CommonizerHierarchicalIT: Implement test commonizeHierarchicallyMultiModule
...
^KT-46107
2021-04-21 20:05:54 +00:00
sebastian.sellmair
5fb30b05ff
Implement CommonizerIT.test KT-46234 intermediate source set with only one native target to cover KT-46234
...
^KT-46234
2021-04-21 20:05:06 +00:00
Ilya Kirillov
e2786197ff
FIR IDE: support reporting of FirLightSourceElement based diagnostics
2021-04-21 22:22:32 +03:00
Ilya Kirillov
47e8b2f9dc
FIR IDE: remove copy-pasted code from DeclarationCopyBuilder
2021-04-21 21:17:00 +03:00
Ilya Kirillov
a76c5d66eb
FIR: introduce FirDeclarationBuilder as a base class for all FIR declaration builders
2021-04-21 21:16:58 +03:00
Ilya Kirillov
da6c5e13d5
FIR IDE: add completion support to classes and to type aliases
2021-04-21 21:16:56 +03:00
Ilya Kirillov
a5c33c8d42
FIR IDE: simplify completion context retrieving
2021-04-21 21:16:55 +03:00
Mikhail Zarechenskiy
f8efe3b5df
Make function open to overrie it IDE specific part
...
Namely, this function is overrided in 211 & 212 platforms, see ScriptDefinitionsManager
2021-04-21 20:00:22 +03:00
Dmitry Petrov
5324cbe729
Minor: update tests
2021-04-21 19:10:32 +03:00
Steven Schäfer
8c9ad81c76
Psi2Ir: Fold constants when generating IR
...
This is necessary to avoid stack overflow errors on large constant
expressions.
2021-04-21 19:10:31 +03:00
Steven Schäfer
e87d816994
Psi2Ir: Remove unused code
2021-04-21 19:10:31 +03:00
Steven Schäfer
d3d4e94cd6
JVM: Fix constant folding for unsigned values
2021-04-21 19:10:31 +03:00
Dmitry Petrov
732405895f
Add tests for KT-45308
2021-04-21 17:36:12 +03:00
Dmitry Petrov
f228c3bb04
Add tests for KT-45236
2021-04-21 17:24:41 +03:00
Yahor Berdnikau
4f352950d9
Include Dukat generated sources into generic 'sourcesJar' output.
...
Gradle 7 complains that "sourcesJar" task uses inputs from Dukat
generate task outputs directory, but this tasks does not have explicit
dependency.
^KT-46006 Fixed
2021-04-21 16:48:16 +03:00