Alexander.Likhachev
009cda5062
[Gradle] Adjust the MPP test project for KT-34901
...
Following the resolution of KT-59595, the java plugin is no longer applied in MPP projects. However, the `java-test-fixtures` plugin is currently non-functional due to its reliance on the `java` plugin (https://github.com/gradle/gradle/blob/e95eafb8c43c5cd404bd235fa0a69c58cab6f5d6/subprojects/plugins/src/main/java/org/gradle/api/plugins/JavaTestFixturesPlugin.java#L60 ).
2023-07-12 10:20:15 +00:00
Anton Lakotka
a55b74d4e0
[Gradle] Elevate DeprecatedJvmWithJavaPresetDiagnostic to error
...
^KT-59320 Verification Pending
2023-07-12 10:19:39 +00:00
Anton Lakotka
cd5e4611eb
[Gradle] Elevate CommonMainWithDependsOnDiagnostic to error
...
^KT-59311 Verification Pending
2023-07-12 10:19:38 +00:00
Abduqodiri Qurbonzoda
7346cf4777
Introduce jdk-api-validator to ensure kotlin-reflect uses jdk6 API
...
Merge-request: KT-MR-6930
Merged-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com >
2023-07-12 05:13:08 +00:00
Artem Daugel-Dauge
2e5ae122ea
[Gradle] Forbid manual pod install invocation when Kotlin framework is not yet built
...
^KT-59263 Verification Pending
2023-07-10 18:28:59 +00:00
Alexander.Likhachev
8ae0f61028
[Gradle] Associate the textFixtures source set with main and test ones
...
#KT-34901 Fixed
2023-07-10 18:23:20 +00:00
Alexander.Likhachev
fcb7010726
[Gradle] Add integration tests for KT-34901
2023-07-10 18:23:20 +00:00
Sebastian Sellmair
817e3de8f5
[Gradle] Ensure java source sets being created eagerly for 'withJava'
...
^KT-60158 Verification Pending
2023-07-10 13:44:02 +00:00
Sebastian Sellmair
42d648f775
[Gradle] KotlinPluginLifecycle: Implement CoroutineStart and start futures 'Undispatched' by default
...
This API was inspired by kotlinx.coroutines and shall help
making Kotlin Gradle Plugins 'Future' type more applicable for situations
when the Future is used inside the Configuration Phase
^KT-60158 In Progress
2023-07-10 13:44:02 +00:00
Sebastian Sellmair
2d43476811
[Gradle] Implement test to ensure withJava creates java source sets eagerly
...
^KT-60158 In Progress
2023-07-10 13:44:02 +00:00
Artem Daugel-Dauge
ddb27f2b26
[Gradle] Use framework name instead of baseName as the attribute value
...
^KT-58316 Verification Pending
2023-07-10 12:42:53 +00:00
Artem Kobzar
7c7aa98875
[K/JS] Throw error when a module contains file with the same name and package (ignoring case)
2023-07-07 13:50:04 +00:00
Anton Prokhorov
0e6930e7ef
[Gradle] Getting a root project of root gradle after project loading
...
#KT-59863 Fixed
2023-07-07 13:43:43 +00:00
Artem Kobzar
cf949e8760
[K/JS] Support KClass<*>.createInstance reflection method ^KT-58684 Fixed
2023-07-06 18:18:14 +00:00
Artem Daugel-Dauge
9bbfdb708c
[Gradle] Log reason why podInstall task is skipped
...
^KT-60050 Verification Pending
2023-07-06 14:57:40 +00:00
Artem Daugel-Dauge
b381752074
[Gradle] Fix cocoapods' cinterops UTD
...
^KT-60112 Verification Pending
2023-07-06 13:53:52 +00:00
Anton Lakotka
344dbcbd23
[Gradle] Update apiDump after removing relatedConfigurationNames
...
^KT-58225 Verification Pending
2023-07-06 13:23:16 +00:00
Anton Lakotka
a171d0d88e
[Gradle] Fix PomDependenciesRewriter to check Android-specific configurations
...
Initially it was implemented via "relatedConfigurations", but these
relatedConfigurations didn't contain outgoing configurations for default
base compilations, but for KotlinJvmAndroid did. There is no reason to
check incoming configurations for dependency rewriter. So for
KotlinJvmAndroidCompilation it is enough to check their variant-specific
outgoing configurations.
^KT-58225 Verification Pending
2023-07-06 13:23:16 +00:00
Anton Lakotka
a5250839fa
[Gradle] Include users attributes to host-specific metadata configuration
...
^KT-60134 Verification Pending
2023-07-06 13:23:16 +00:00
Anton Lakotka
24ff1c6285
[Gradle] Fix test compilation after removing relatedConfigurations
...
^KT-58225 Verification Pending
2023-07-06 13:23:16 +00:00
Anton Lakotka
eb238c0da7
[Gradle] Remove maybeRegister in favor of getOrCreate
...
It had a little use and even this use was causing a problem. Since
inside `maybeRegister { }` this block Gradle forbids creation of
other entities. Because this block is part of "entity configuration".
So it is recommended to replace with either
* `getOrCreate("foo", invokeWhenCreated = {})`
* or just getOrCreate("foo").apply {}
2023-07-06 13:23:16 +00:00
Anton Lakotka
001bdc411d
[Gradle] Remove relatedConfigurationNames
...
It was public api which has not much use outside KGP.
Moreover, this api has a little use so it is ok list configuration names
in place.
^KT-58225 Verification Pending
2023-07-06 13:23:16 +00:00
Timofey Solonin
5026778cd1
[MPP] Inject CInteropCommonizerTask from outside instead of using a
...
future
^KT-58712
2023-07-06 10:20:04 +00:00
Yahor Berdnikau
82fa02f71e
[Gradle] Remove unused resources in Gradle integration tests
2023-07-06 07:39:18 +00:00
Timofey Solonin
2760a25e2c
[MPP] Assert that the coroutine block actually runs
...
^KT-58712
2023-07-06 05:51:21 +00:00
Timofey Solonin
5d8e23e971
[MPP] Don't enable commonization in subprojects of a project where
...
CocoaPods plugin was applied
^KT-58712
2023-07-05 11:21:47 +00:00
Dmitrii Krasnov
2f63c6e1bd
Migrated CommonizerHierarchicalIT to new test dsl (junit 5 and gradle test kit)
2023-07-05 08:06:37 +00:00
Yahor Berdnikau
7bfe59253f
[repo] Migrate 'manifestAttributes()' into buildSrc
2023-07-04 19:26:38 +00:00
Yahor Berdnikau
db1086f005
[repo] Migrate 'configureFrontendIr()' into buildSrc
2023-07-04 19:26:38 +00:00
Yahor Berdnikau
73a757c105
[repo] Migrate Groovy build scripts to use 'publish()' directly from buildSrc
2023-07-04 19:26:38 +00:00
Yahor Berdnikau
d7fc4a1d27
[repo] Migrate Groovy build scripts to use 'sourcesJar()' directly from buildSrc
2023-07-04 19:26:38 +00:00
Yahor Berdnikau
6d5f1c84a7
[repo] Migrate Groovy build scripts to use 'javadocJar()' directly from buildSrc
2023-07-04 19:26:38 +00:00
Yahor Berdnikau
5de2b5aeb4
[repo] Migrate Groovy build scripts to use 'kotlinStdlib()' directly from buildSrc
2023-07-04 19:26:38 +00:00
Sebastian Sellmair
7f3970fb0f
[Gradle] Implement KotlinJvmWithJavaAndroidCompatibilityChecker to fail when 'withJava' is used together with AGP
...
As both (AGP and 'withJava') are using project global names like
'main' and 'test' which will lead to clashes (e.g. configuration names
are the same for both)
^KT-59595 Verification Pending
2023-07-04 16:59:26 +00:00
Sebastian Sellmair
1e87ba3485
[Gradle] Do not create dummy 'compileClasspath' anymore
...
As newer AGP versions do not suffer from KT-27170 anymore and
it was causing issues for buildscripts like
```
jvm()
jvm().withJava()
```
KT-59595
2023-07-04 16:59:26 +00:00
Sebastian Sellmair
e47f4137f4
[Gradle] KotlinJvmTarget: Apply java-base plugin instead of java plugin for withJava
...
^KT-59595 Verification Pending
2023-07-04 16:59:26 +00:00
Sebastian Sellmair
c7795c7863
[Wasm] Implement WasmDependencyResolutionSmokeTest
2023-07-04 14:16:26 +00:00
Igor Yakovlev
c6fdf1b3dd
[Wasm] Add kotlin wasm gradle attribute
2023-07-04 14:16:26 +00:00
Svyatoslav Scherbina
85919c4d62
Bump Kotlin/Native version in KGP to 1.9.20-dev-5069
...
Also, adjust NativeIrLinkerIssuesIT after 5f3dad1 . See the explanation
below.
5f3dad1 makes -Xlazy-ir-for-caches disabled by default. So the compiler
now deserializes different subsets of IR and in different orders.
As a result, the error message for a test changes. Both error messages
(before and after this commit) are correct, and the selection depends
on the IR deserialization strategy.
Moreover, this commit changes the expected error message to the initial
version, used before -Xlazy-ir-for-caches was introduced.
2023-07-04 10:16:32 +00:00
Artem Daugel-Dauge
de56f788f6
[Gradle] Warn about kotlinArtifacts DSL usage
...
^KT-58029 Verification Pending
2023-07-04 08:29:39 +00:00
Yahor Berdnikau
4c95797067
[Gradle] disable toolchain auto-download in tests
...
Required JDKs should be already downloaded by Kotlin repo itself.
2023-07-04 07:38:12 +00:00
Yahor Berdnikau
5b1ffb417a
[Gradle] Update AGP versions for tests
2023-07-04 07:38:12 +00:00
Yahor Berdnikau
f4fbc2edc6
[Gradle] Update Gradle versions for tests
...
Added Gradle 8.2 release
2023-07-04 07:38:12 +00:00
Sebastian Sellmair
8d2ac41454
[Gradle] Only register CInteropMetadataDependencyTransformationTask's for shared native source sets
...
KT-58712
2023-07-03 18:42:14 +00:00
Timofey Solonin
4695d9088a
[MPP] Enable cinterop commonization if CocoaPods plugin is applied
...
^KT-58712
2023-07-03 18:42:14 +00:00
Artem Daugel-Dauge
caaade1f4f
[Gradle] Fix invalidation framework after sync while preserving 'generateDummyFramework' task semantic
...
^KT-49430 Verification Pending
2023-07-03 17:37:37 +00:00
Anton Lakotka
182c10f77d
[Gradle] Mark some tasks with @DisableCachingByDefault
...
By default, tasks should opt-in for supporting build cache through
marking class with @CacheableTask.
However, some tasks should not be cacheable by default, as for these
tasks doesn't do any heavy load. Even worse, storing and extracting
tasks results from the remote cache (for example) would take more time
than actual run on host machine.
So these tasks are marked as @DisableCachingByDefault
^KT-59307 Verification Pending
2023-07-03 15:46:34 +00:00
Timofey Solonin
e59371d291
[MPP] Add a test for configuration avoidance between CommonizeCInterop
...
and CInterop tasks
^KT-58712
2023-07-03 15:41:31 +00:00
Timofey Solonin
a1db10c5fe
[MPP] Use SetProperty in CInteropCommonizerTask for configuration avoidance
...
^KT-58712
2023-07-03 15:41:30 +00:00
Sebastian Sellmair
23174add97
[Gradle] IdeBinaryDependencyResolver: Demote unresolved dependency logging to 'info'
...
The unresolved dependency built below will be reported by the
IDE as 'UnresolvedDependencySyncIssue'
KT-59844
2023-07-03 13:04:24 +00:00