Commit Graph

5479 Commits

Author SHA1 Message Date
MikeKulasinski-visa bc2b396ecd kotlin.native.cocoapods.targets can be a custom list of architectures (#3861)
Co-authored-by: Mike Kulasinski <mike.kulasinski@payworks.com>
Co-authored-by: Ilya Matveev <ilya.matveev@jetbrains.com>
2020-11-04 18:21:12 +07:00
Bingran 88bbeea7f6 Fix deprecated gradle api usage in artifact transform
Previously, when adding --warning-mode=fail to KaptIncrementalIT,
it would fail when testing with advance gradle version because
deprecated configurations in build files of test projects and
gradle api usage in artifact transform.

With this PR, we have two "StructureTransformAction'. The one with
latest gradle api is for use at most cases, the legacy one is for use
when gradle version is less or equal than 5.3 because the new gradle api
is introduced in 5.4.

This change also adds some test fixtures and updates deprecated
configurations to support testing artifact transform.

Test: KaptIncrementalIT
2020-11-03 13:50:16 +03:00
Alexander Likhachev 56f7e34e3e [Gradle, K/N] Revert change of AbstractKotlinNativeCompile supertype
It was changed in order to support build cache for K/N tasks but as we doesn't support cache for CInteropProcess task at the moment, there is no overlapping outputs issue
#KT-43080 Fixed
2020-11-02 20:42:46 +03:00
Ilya Kirillov 8eefcbb1d4 Wizard: update compose templates
#KT-43032 fixed
2020-10-31 16:57:05 +03:00
Ilya Kirillov 21928d8f51 Wizard: do not allow creating compose projects with gradle groovy
#KT-42983 fixed
2020-10-31 16:57:05 +03:00
Hung Nguyen 6d29bb5814 Fix configuration cache issue in AbstractKotlinTarget
AbstractKotlinTarget#buildAdhocComponentsFromKotlinVariants passes a
non-serializable local object to a lambda, which will fail during
serialization when configuration caching is enabled.

To fix that, this commit passes only the relevant parts of the object
to the lambda.

Bug: https://youtrack.jetbrains.com/issue/KT-43054
Test: Manually verified on
      https://android.googlesource.com/platform/tools/metalava/+/refs/heads/master/
      where the issue was detected (I haven't been able to create a mininal
      reproducible project)
2020-10-30 13:44:49 +00:00
Ciaran Treanor 2b03c10941 Correct small grammatical error in KDocs
Updated KDoc generator template to address all instances of
a grammatical error ("less" -> "fewer").
Also committed newly generate _Collections.kt, _Sequences.kt,
and _Strings.kt.
2020-10-30 01:47:06 +03:00
Sergey Igushkin 53004f97b1 Store processed metadata artifacts in .gradle/ rather than build/
This allows the files to survive Gradle's `clean` task that deletes the
`build/` directory with all its contents, which leads to the IDE losing
dependencies until next re-import.

The `.gradle` directory is chosen because Gradle creates it in every
project and it is normally included in .gitignore (or otherwise ignored
in VCS).

Related to issue #KT-39568
2020-10-29 15:59:23 +03:00
Ilya Gorbunov fe098ec821 Revise functions in PathReadWrite
- Adjust implementations to avoid excessive vararg copies
- Remove options from forEachLine, it doesn't make much sense and
isn't consistent with the other read* functions.
- Revise inlineness of functions in PathReadWrite
- Compact implementations of those that are remained inline.
- Clarify docs of functions for reading the entire file

#KT-19192
2020-10-28 07:36:19 +03:00
Ilya Gorbunov a43cc0d1f9 Implement additional Path extensions
#KT-19192
2020-10-28 07:36:16 +03:00
Yan Zhulanow 008da87160 Minor: Update Android Extensions deprecation message in relevant test 2020-10-28 00:43:20 +09:00
Yaroslav Chernyshev 3386b93009 [Gradle, Cocoapods] Added useLibraries() to allow static library pods
#KT-42531 fixed
2020-10-27 17:57:53 +03:00
Ilya Goncharov e6edb62911 [Gradle, JS] Fix for IDEA import with dukat binaries
^KT-42954 fixed
2020-10-27 14:21:34 +03:00
Yan Zhulanow 994cb6f28e Update deprecation message for the Android Extensions plugin 2020-10-27 18:08:39 +09:00
nataliya.valtman e1a380ec95 KT-34862 use relative path for incremental build cache 2020-10-27 10:45:06 +03:00
Ivan Gavrilovic 2c5c15f503 Clean-up outputs on non-incremental run
Always clean all outputs on non-incremental run of the
Kotlin compile task.
#KT-38692 Fixed
2020-10-27 09:44:06 +03:00
Ilya Muradyan cb020fb9f4 Change repository adding logic
Now if the repo being added already exists, it is moved to the
end of the list, effectively lowering its priority.

Original issue: https://github.com/Kotlin/kotlin-jupyter/issues/107
2020-10-23 13:31:38 +03:00
Alexander Likhachev 999627952a [Gradle, K/N] Add proper assumptions for Mac only integration tests 2020-10-23 05:41:08 +03:00
Alexander Likhachev ac7b7abcc0 [Gradle, JS] Fix K/JS project build with configuration cache (part 3)
Now configuration cache enabled builds with JS tasks does not fails but prints warning and skips execution on subsequent builds.
Relates to KT-42494
2020-10-23 05:41:07 +03:00
Ilya Goncharov efee322830 [Gradle, JS] Update Dukat on 0.5.8-rc.3 2020-10-20 16:12:38 +03:00
Konstantin Tskhovrebov ea34a588f3 Update KMM project wizard. 2020-10-20 12:03:17 +03:00
Ilya Goncharov 0367dec035 [Gradle, JS] Dukat change default mode onto source
- Binary only for legacy

^KT-42339 fixed
2020-10-19 16:14:27 +03:00
Alexander Udalov 48cd86b717 Add JVM target bytecode version 15
#KT-41916 Fixed
2020-10-19 14:47:21 +02:00
Alexander.Likhachev d6e0d2a55b [Gradle, JS] Fix K/JS project build with configuration cache (part 2)
It is still does not support configuration cache but these changes allows build to pass with warnings
#KT-42494 Fixed
2020-10-16 16:15:05 +03:00
Ilya Goncharov 1bc52c195c [Gradle, JS] Uninternal _target in js extension 2020-10-16 14:51:35 +03:00
Alexander.Likhachev 0b6959ee3d [Gradle, K/N] Deprecate K/N compile classpath prop in favor of libraries 2020-10-16 13:48:07 +03:00
Alexander.Likhachev f4da283ffb [Gradle, K/N] Move build cache tests into appropriate class 2020-10-16 13:48:07 +03:00
Alexander.Likhachev a0f4898009 [Gradle, K/N] Make compile and link tasks cacheable
Currently build cache isn't supported for frameworks as symlinks in build output is used. Symlinks are transformed into regular files by Gradle build cache and that breaks incremental build. Cinterop process task is not cacheable at the moment as it depends on OS-environment
#KT-39564 Fixed
2020-10-16 13:48:07 +03:00
Alexander Udalov 4c09906235 Build: add kotlin.build.useIRForLibraries to enable JVM IR for libraries separately
The next step for JVM IR adoption in our project is going to be enabling
`kotlin.build.useIR`, but keeping `kotlin.build.useIRForLibraries`
disabled until we fix all remaining ABI incompatibility issues for
library code.
2020-10-16 12:13:05 +02:00
Ilya Kirillov 8dd80fe3c9 Wizard: fix maven testdata 2020-10-15 21:47:42 +03:00
Ilya Kirillov 394245ba4c Wizard: do not run compose tests for Groovy dsl 2020-10-15 21:47:39 +03:00
Ilya Kirillov ec1528e742 Wizard: use custom Kotlin version for compose project 2020-10-15 21:47:38 +03:00
Ilya Kirillov b0bb03d761 Wizard: return junit back to android target 2020-10-15 21:47:36 +03:00
Ilya Kirillov 42914b4046 Wizard: add resolutionStrategy for mpp library template 2020-10-15 21:47:32 +03:00
Ilya Kirillov f5d638eb8f Wizard: do not create empty local.properties file 2020-10-15 21:47:30 +03:00
Ilya Kirillov aeff3c2682 Wizard: regenerate tests 2020-10-15 21:47:28 +03:00
Ilya Kirillov b7017c233e Wizard: use different Kotlin version for compose templates 2020-10-15 21:47:25 +03:00
Ilya Kirillov 1cc007fcbf Wizard: introduce Compose MPP template 2020-10-15 21:47:23 +03:00
Ilya Kirillov 7422690ea1 Wizard: fix InvalidModuleDependencyError error message 2020-10-15 21:47:19 +03:00
Ilya Kirillov db069c3264 Wizard: add compose desktop template 2020-10-15 21:47:08 +03:00
Ilya Kirillov d547cb9ee6 Wizard: introduce mobile mpp module template & allow module templates for mpp modules 2020-10-15 21:47:04 +03:00
Ilya Kirillov ac6b9e4aa0 Wizard: add android extensions plugin only by flag 2020-10-15 21:47:02 +03:00
Ilya Kirillov ed924a1c99 Wizard: change custom maven repositories rendering 2020-10-15 21:47:00 +03:00
Ilya Kirillov 31dac65a39 Wizard: remove extra line break in build files 2020-10-15 21:46:57 +03:00
Ilya Kirillov 9948c265df Wizard: add setting to hide version & groupId in gradle 2020-10-15 21:46:56 +03:00
Ilya Kirillov d3e99bd7a7 Wizard: simplify custom maven repository syntax for Gradle 2020-10-15 21:46:55 +03:00
Ilya Kirillov 3ef12e32ee Wizard: update libraries versions 2020-10-15 21:46:51 +03:00
Ilya Kirillov fa8951c19e Wizard: move common repositories to the allprojects section 2020-10-15 21:46:49 +03:00
Ilya Kirillov e824199169 Wizard: remove resolutionStrategy from settings.gradle 2020-10-15 21:46:48 +03:00
Ilya Kirillov 8b89eb5dc8 Wizard: clean activity_main.xml & AndroidManifest.xml files 2020-10-15 21:46:41 +03:00