Commit Graph

6749 Commits

Author SHA1 Message Date
Sergey Igushkin 8676685ebc Adjust KPM publication for legacy model publication requirements 2022-02-14 15:04:58 +00:00
Sergey Igushkin 42fa23398b KPM publication setup: use lowercase artifact IDs 2022-02-14 15:04:57 +00:00
Sergey Igushkin 87c3a1b531 Prototype reverse model mapping: represent legacy-only targets in KPM 2022-02-14 15:04:57 +00:00
Sergey Igushkin 57b85e155c KPM/Gradle: don't include host-specific klibs into the common metadata 2022-02-14 15:04:56 +00:00
Sergey Igushkin c3fe4e7fb2 KPM/Gradle: disable metadata compilations for JVM & JS shared fragments 2022-02-14 15:04:56 +00:00
Sergey Igushkin dbb34a44f0 Map Kotlin/Native compilation to the supported-platform KPM variants 2022-02-14 15:04:56 +00:00
Sergey Igushkin c67f80e1f3 Map Kotlin/Native compilation to the supported-platform KPM variants 2022-02-14 15:04:55 +00:00
Sergey Igushkin 736a33b182 Fix missing K/N compilation task dependency in the compilationOoutputs 2022-02-14 15:04:55 +00:00
Sergey Igushkin 992f7bf3c1 Disable o.j.k.multiplatform publications with KPM model mapping 2022-02-14 15:04:54 +00:00
Sergey Igushkin bc65bb0775 Improve friend paths calculation in KPM: use actual resolution results
Avoid adding compilation outputs of all variants to the friend paths, as
this leads to false task dependencies, and also the real file system
paths on the classpath may not point to the compilation outputs and will
rather use the *Elements artifacts.
2022-02-14 15:04:54 +00:00
Sergey Igushkin 3f49217cc9 Prepare intermediate layer of model mapping in Kotlin compilations
Extract all logic and internal model that may be different in different
modes to a separate entity called "compilation details"
2022-02-14 15:04:54 +00:00
Sergey Igushkin 8753ea592f KPM-mapped-model: simple mapping of JVM variants 2022-02-14 15:04:53 +00:00
Sergey Igushkin bc8f795f71 Fix BasePluginConvention deprecation in KGP 2022-02-14 15:04:53 +00:00
Sergey Igushkin 2c6c2c3929 Improve registering resources tasks in compilations: support laziness 2022-02-14 15:04:52 +00:00
Sergey Igushkin 876ab4ae52 KPM minor fix registering JVM compilation classesDirs 2022-02-14 15:04:52 +00:00
Sergey Igushkin 0acf923d6a Rewrite the checks for the presence of KPM: adapt them to mapped models 2022-02-14 15:04:52 +00:00
Sergey Igushkin d495c5b604 Introduce a container for the KPM model for different kinds of projects 2022-02-14 15:04:51 +00:00
Sergey Igushkin a998e2d291 Model mapping experiment: map source sets to KPM fragments
TODO: keep type compatibility,
      inject the behavior in DefaultKotlinSourceSet
2022-02-14 15:04:51 +00:00
Yahor Berdnikau a26c7ace8b Remove accidentally left test debug parameters 2022-02-14 16:08:22 +03:00
nataliya.valtman d4d5c701fe Make statistic more readable 2022-02-11 17:23:38 +03:00
Yahor Berdnikau 322b10f1bb Fix changes in Android layout resources breaks incremental compilation
This only happens when project has 'kotlin-android-extensions' plugin
applied and 'experimental = true' flag is set. On changes in android
layout resources task was running full compilation instead running
incrementally.

^KT-51177 Fixed
2022-02-11 10:32:07 +00:00
konstantin.tskhovrebov c08d42d6bb KT-50106 Add gradle property with global K/N linker flags
Clean NativePlatformLibsIT code
2022-02-10 20:22:50 +03:00
Abduqodiri Qurbonzoda 0d46d0d69b [WASM] Sync stdlib-gen template with actual source code 2022-02-10 10:23:22 +00:00
sebastian.sellmair 0a85f0dd34 [Gradle] Implement ideaImportDependsOn API for KTIJ-20989
This will rely on a task called `prepareKotlinIdeaImport` which,
if present, will be invoked by the IDE before import.


Co-authored-by: Sergey Igushkin <Sergey.Igushkin@jetbrains.com>

Merge-request: KT-MR-5688
Merged-by: Sebastian Sellmair <Sebastian.sellmair@jetbrains.com>
2022-02-09 13:43:29 +00:00
konstantin.tskhovrebov 003cb156bf KT-50106 Add gradle property with global K/N linker flags 2022-02-09 16:23:31 +03:00
nataliya.valtman d089d27bef Add proper kotlin version into http reports 2022-02-08 16:24:15 +00:00
Hung Nguyen d018031cbf KT-45777: Clean up build cache tests for incremental compilation
- Clean up BuildCacheRelocationIT.testKotlinIncrementalCompilation
 - Delete BuildCacheIT.testKotlinCompileIncrementalBuildWithoutRelocation
   as it is already covered by the test in BuildCacheRelocationIT
 - Add BuildCacheRelocationIT.testKotlinIncrementalCompilation_withClasspathSnapshot
- Updated BuildCacheRelocationIT.testKotlinIncrementalCompilation_withClasspathSnapshot
2022-02-08 18:07:38 +03:00
sebastian.sellmair 200cc9f75f [Gradle][MPP] Disabled CInteorp warning: Show cinterops instead of compilations
KT-51176
2022-02-08 09:22:15 +01:00
sebastian.sellmair 56de13fe2f [Gradle][MPP] Show (potential) warning on disabled cinterop commonization
^KT-51176 Verification Pending
2022-02-08 09:22:15 +01:00
Ilya Goncharov 77b367fe96 rra/ilgonmic/ic-to-compiler
[JS IR] Fix compilation in tests

[JS IR] Fix test after migrating IC to compiler

[JS IR] Fix memory leak

[JS IR] Move js ic to compiler

Merge-request: KT-MR-5673
Merged-by: Ilya Goncharov <Ilya.Goncharov@jetbrains.com>
2022-02-07 11:40:16 +00:00
nataliya.valtman 56207abc27 KT-34862: Add kotlin build dir as output
build history files are non cacheable outputs
#KT-34862
2022-02-07 10:09:36 +00:00
Ilya Gorbunov 771eff503b stdlib-docs: Use local ext link to stdlib instead of default
When building kotlin.test docs, do not query kotlinlang.org
for stdlib package list, but use the one built locally beside.
This avoids build failures when the site is not available.
2022-02-05 06:21:49 +00:00
Pavel Punegov 1ce7286c86 [Gradle][K/N] Don't use Gradle daemon <= 6.9 on macOS arm64
Native Apple Silicon support was added in 6.9. Older versions suffer
from inability to set environment variables in the daemon process
2022-02-04 13:21:47 +00:00
Pavel Punegov da3f81c5da [Gradle][test] Fix test to run it on macos arm64 hosts
Ignore tests with old ktor and coroutines on this target
Add test with newer versions that support arm64
2022-02-04 13:21:47 +00:00
Pavel Punegov ecf1eef8db [Gradle][test] Run IR linker test only on macos x64
Arm64 is supported in newer versions of Ktor and coroutines that
don't reproduce linkage failure
2022-02-04 13:21:46 +00:00
Pavel Punegov da6409d0ca [Gradle][test] CocoaPods test: force gem output to stdout 2022-02-04 13:21:46 +00:00
Pavel Punegov 74ac51a4cb [Gradle][test] Ignore test that fails due to the ^KT-50925 2022-02-04 13:21:46 +00:00
Pavel Punegov a4e4ffdf29 [Gradle][native] Generate run tasks for macos_arm64
^KT-48649 Fixed
2022-02-04 13:21:45 +00:00
Pavel Punegov a8f2e9ced7 [Gradle][test] Correct iOS simulator targets for both x64 and arm64 2022-02-04 13:21:45 +00:00
Pavel Punegov 219d5e3ecf [Gradle][test] Filter out connection message from stdout 2022-02-04 13:21:44 +00:00
Pavel Punegov 9b55ec43e7 [Gradle][test] Don't use daemon when testing environment variables 2022-02-04 13:21:44 +00:00
nataliya.valtman 0382610120 Report build reports for http in separate executor 2022-02-02 19:51:18 +03:00
Yahor Berdnikau 95698b0138 Allow specifying additional JVM arguments for Kapt task
These arguments are only used when 'kapt.workers.isolation=process' mode
is used. It allows users to apply workaround for running kapt on newer
JDK version without waiting for a new Kotlin release

^KT-48450 Fixed
2022-02-01 15:00:12 +00:00
Hung Nguyen 37c6b1c2dc KT-45777: Track build time in nanoseconds instead of milliseconds
to ensure precision (otherwise, rounding errors to milliseconds may
add up and cause unexplainable gaps in the running time).

We can still use milliseconds in the final report after all the precise
sub-build-times have been aggregated.
2022-01-31 19:50:03 +03:00
Yahor Berdnikau 52a21a4e1a Remove 'noStdlib' from Gradle options
^KT-49011 Fixed
2022-01-31 17:28:13 +01:00
Yahor Berdnikau 57c342fec8 Remove 'noReflect' from Gradle options
^KT-49011 In Progress
2022-01-31 17:28:13 +01:00
Yahor Berdnikau 27e449cd56 Remove 'useIR' from Gradle options
^KT-49011 In Progress
2022-01-31 17:28:13 +01:00
Svyatoslav Scherbina 118bda675f [Gradle] Fix Native offline tests on Windows
Don't remove the temporary KONAN_DATA_DIR because it might be still in
use by the Gradle daemon process.
Create a new temporary directory instead.

The tests were introduced in 544447e...fa951f8
2022-01-31 14:42:12 +00:00
Ilya Goncharov 02d731255c [Gradle, JS] Add to test success of compilation task 2022-01-31 12:00:14 +00:00
Ilya Goncharov a83cb9740e [Gradle, JS] Correct order of libraries 2022-01-31 12:00:13 +00:00