Vyacheslav Karpukhin
5530080a7d
KMA-271 Android dependencies are not imported with AGP 7
2021-09-28 10:51:28 +00:00
Dmitriy Novozhilov
4f7103b2a1
Add ApiVersion for 1.7
2021-09-28 10:16:51 +03:00
Ilya Gorbunov
af5ec9d289
Fix a typo in Typography object constants KT-46243
2021-09-27 14:55:19 +00:00
Yahor Berdnikau
ac164c2bff
Fix 'verbose' argument was not excluded from task inputs.
...
^KT-48134 Fixed
2021-09-27 13:48:12 +00:00
Ilya Matveev
3d9966818d
[Gradle] Add tests for K/N binary options
2021-09-27 11:53:12 +00:00
Ilya Matveev
cbe5dc40ef
[Gradle] Improve UP-TO-DATE checks for K/N binary options
2021-09-27 11:53:11 +00:00
Ilya Matveev
6ad9af972e
[Gradle] Move K/N binary options retrieving to PropertiesProvider
2021-09-27 11:53:11 +00:00
sebastian.sellmair
7f67ce96a0
[Gradle, MPP] CInteropProcess: Relax up-to-date condition to "outputFile.exists"
...
^KT-48882 Verification Pending
2021-09-27 11:17:20 +00:00
sebastian.sellmair
dcd19f41b9
[Gradle, MPP] Only warn on failed cinterop generation during idea sync
...
^KT-48882 Verification Pending
2021-09-27 11:17:20 +00:00
sebastian.sellmair
52c6713fff
[Gradle] Implement CInteropIdeaSyncIT to cover ^KT-48882
2021-09-27 11:17:19 +00:00
Yahor Berdnikau
8b594e295c
Don't validate JVM target on empty Java sources.
...
When toolchain is not configured, Kotlin sets by default JVM target to
"1.8". Compiling Kotlin project on JDK 9+ produces JVM target mismatch
warning even if Java sources are empty.
Skip the jvm validation check if associated Java task sources are empty.
^KT-48745 Fixed
2021-09-27 08:31:00 +00:00
Sergey Bogolepov
708931b404
[K/N][Gradle] Use build service to read konan.properties
...
Also pass additionalCacheFlags when compiling compiler caches.
2021-09-27 11:21:25 +03:00
Vyacheslav Gerasimov
c6c993aa19
Fix deprecated Gradle VersionNumber warning
...
Required for Gradle 7+ #KTI-559
2021-09-26 23:36:40 +03:00
Vyacheslav Gerasimov
edea9b0db3
Suppress deprecated ConfigureUtil in mppPresetFunctionsCodegen.kt
...
Required for Gradle 7+ #KTI-559
2021-09-26 23:36:40 +03:00
Vyacheslav Gerasimov
8b5db6473b
Fix deprecated ConfigureUtil usages in KGP
...
Required for Gradle 7+ #KTI-559
2021-09-26 23:36:40 +03:00
Yahor Berdnikau
c1ba586c96
Replace removed Gradle methods with reflection call.
...
This is required to update Kotlin repo to Gradle 7.1.
2021-09-26 23:36:40 +03:00
Vyacheslav Gerasimov
f91d6958a8
Build: Rework runtimeJar helper and drop redundant configuration
...
#KTI-559
2021-09-26 20:10:29 +03:00
Vyacheslav Gerasimov
ab146bd6d4
Build: Fix deprecated Gradle configurations usages
...
for migration to Gradle 7+ #KTI-559
2021-09-26 18:28:44 +03:00
sebastian.sellmair
c51d37d65d
[Gradle] [MPP] CInteropPropagatedDependencies: Consider associate compilations
...
^KT-48856 Verification Pending
2021-09-24 13:13:01 +00:00
sebastian.sellmair
e7d8804bdf
[Gradle] [MPP] Implement integration test to cover ^KT-48856
2021-09-24 13:13:00 +00:00
sebastian.sellmair
440856f593
[Gradle] [MPP] Add TODO comment for post-commit review ^KT-48885
...
^KT-46273
2021-09-23 18:48:52 +00:00
sebastian.sellmair
70fde9700f
[Gradle] [MPP] Add further explicit check for orphan source sets
...
^KT-46273 Verification Pending
2021-09-23 18:48:52 +00:00
sebastian.sellmair
da361a030e
[Gradle] [MPP] Fix 'getDependenciesTransformation' for ^KT-46273
...
This setup requires a 'jvm like' target and an orphan source set, which
depends on 'commonTest'. This orphan will not participate in any
compilation and therefore will not have any platform.
The code expected at least one test task for this source set
and therefore at least one test framework.
^KT-46273 Verification Pending
2021-09-23 18:48:51 +00:00
Hung Nguyen
aea693e309
KT-45777: Ignore faulty groovy-2.5.11 jar
...
Test: The following should pass
- Step 1: ./gradlew publish
- Step 2: ./gradlew publish compileTestKotlin -Pbootstrap.local=true
-Pbootstrap.local.path=/path/to/kotlin/build/repo
-Pkotlin.incremental.useClasspathSnapshot=true
2021-09-23 12:51:06 +03:00
Hung Nguyen
a6d0fcc676
KT-45777: Support compile avoidance
...
Test: Updated existing incremental compilation integration tests
2021-09-23 12:51:03 +03:00
Hung Nguyen
f400305cc6
KT-45777: Handle problematic classes when taking snapshots
...
There are certain classes that we are not yet able to take snapshots of,
either because the class is faulty, or there is a bug in our code.
For these classes, we will use a special snapshot and fall back to the
existing approach to compute classpath changes.
In the short run, we will update this list of cases as they arise. In
the long run, we will:
- Fix all cases that are caused by bugs in our code.
- Decide what to with the faulty jars in general and remove the list.
Test: The following should pass
- Step 1: ./gradlew publish
- Step 2: ./gradlew publish -Pbootstrap.local=true
-Pbootstrap.local.path=/path/to/kotlin/build/repo
-Pkotlin.incremental.useClasspathSnapshot=true
2021-09-23 12:47:51 +03:00
Abduqodiri Qurbonzoda
eccd035881
Upgrade kotlinx-html-js version to 0.6.12 in gradle plugin tests because of #KT-24782
2021-09-22 12:56:12 +00:00
Alexander Dudinsky
c2715d26f1
Fix `NewMultiplatformIT' tests
2021-09-22 00:56:40 +03:00
Abduqodiri Qurbonzoda
9a5a3bfdfb
Advance kotlin.browser and kotlin.dom packages deprecation level to ERROR #KT-39330
2021-09-20 12:28:07 +00:00
Dmitriy Novozhilov
0923d39215
[Build] Setup useFirForLibraries flag
2021-09-20 14:18:18 +03:00
Svyatoslav Scherbina
b656d67bd4
[Gradle, Native, IT] Workaround NativeEmbeddableCompilerJarIT on Apple silicon
...
The tests fail on Apple silicon because Gradle plugin doesn't provide
run tasks for macosArm64 (KT-48649).
Workaround this by making the tests execute link task instead of run.
2021-09-20 08:36:25 +00:00
Alexander Dudinsky
064cffc89c
Move mavenLocal() to the first place
2021-09-20 08:36:25 +00:00
Alexander Dudinsky
7db1b6fe01
Fix some tests in Gradle Integration Tests Native Mac Arm64
2021-09-20 08:36:25 +00:00
Alexander Dudinsky
c4a9d7b74d
Fix Gradle Integration Tests Native Mac x64
2021-09-20 08:36:24 +00:00
Alexander Dudinsky
85f985b9d1
Fix test name for multiModulesHmpp project
...
^KT-48696 Fixed
2021-09-20 11:28:08 +03:00
Alexander Dudinsky
165b80cf02
New test for multiModulesHmpp project
...
^KT-48696
2021-09-20 08:22:50 +00:00
Abduqodiri Qurbonzoda
bde055fe5c
Advance deprecation level of Float/DoubleArray contains, indexOf, lastIndexOf to ERROR #KT-28753
2021-09-16 19:38:40 +03:00
Abduqodiri Qurbonzoda
7e1cd757fb
Advance max/min(By/With) deprecation level to HIDDEN #KT-38854
2021-09-16 19:38:35 +03:00
Alexander Likhachev
453d263393
[Gradle, JVM] Add test that JVM target is untouched with no toolchain
2021-09-16 13:26:13 +00:00
Alexander Likhachev
aa52a60f45
[Gradle, JVM] Validate JVM targets even if compiler isn't called
...
Previously the validation was inconsistent allowing non-incremental builds without Kotlin sources to pass successfully with JVM target misconfiguraiton but fail incremental builds
#KT-48408 Fixed
2021-09-16 13:26:13 +00:00
Alexander Likhachev
2a77da4caa
[Gradle, JVM] Add test for KT-48408
2021-09-16 13:26:12 +00:00
Yahor Berdnikau
03db8e9c43
Fix 'kotlinOptions.jdkHome' deprecation message typo.
...
Use proper DSL example how-to set toolchain.
^KT-48768 Fixed
2021-09-16 11:51:32 +02:00
Abduqodiri Qurbonzoda
f1befc0108
Format Other_Uppercase/Other_Lowercase property as an identifier in docs
2021-09-15 17:31:52 +03:00
nataliya.valtman
130fd8311e
KT-48620: add readable output size metric into build scan
2021-09-14 17:56:11 +03:00
nataliya.valtman
b603f99863
KT-48620: Fix host name exception
2021-09-14 12:10:39 +03:00
Hung Nguyen
97e9e4efe7
KT-45777: Address review comments - use InputChanges instead of ChangedFiles
2021-09-14 12:10:39 +03:00
Hung Nguyen
9b71bd5bb4
KT-45777: Address review comments - update tests
2021-09-14 12:10:39 +03:00
Hung Nguyen
a48bf63630
KT-45777: Compute classpath changes for incremental Kotlin compile
...
Test: Updated unit tests + incremental compilation integration tests
2021-09-14 12:10:38 +03:00
Hung Nguyen
e3d7b7a30e
KT-45777: Refactor incremental compilation integration tests
...
to organize tested scenarios better and make it easier to see the
effects of the next change when the classpath snapshot feature is
enabled.
2021-09-14 12:10:38 +03:00
Yigit Boyar
95f990adab
Support line location information in KAPT for top level declarations
...
This CL fixes a bug in KAPT's MAP_DIAGNOSTIC_LOCATIONS flag where the
location mapping for top level elements didn't work.
I also needed to changes the Kapt3IntegrationTest to copy input files,
otherwise, it cannot map file paths since the mock project has no root
location.
Cleanup tmp folders in KAPT tests, update Kapt3IT test for new lines.
^KT-47934 Fixed
Test: KotlinKapt3IntegrationTests#testErrorLocationMapping
2021-09-14 10:48:37 +02:00