Commit Graph

37 Commits

Author SHA1 Message Date
Yahor Berdnikau dc5660d98c [Gradle] Add 'validatePlugins' tasks for Gradle plugin dependencies
Gradle 8 has removed "validate-external-gradle-plugin" plugin which we
used before to run validate task inputs proper annotations.

With this change, every Gradle dependency that is not published as a
Gradle plugin but uses Gradle API types is also running
'validatedPlugins' task registered manually via a build script.

^KT-59827 Fixed
2023-07-19 13:36:03 +00:00
Yahor Berdnikau 7b665e7673 [Gradle] Move UsesKotlinJavaToolchain inheritance into api
Such way it will be visible which tasks are using this feature.

^KT-58858 In Progress
2023-07-13 19:20:19 +00:00
Anton Lakotka 2f7f69ed4f [Gradle] Remove requiresVisibilityOf API and related checks
^KT-58228 Verification Pending
2023-07-12 11:59:27 +00:00
Anton Lakotka 344dbcbd23 [Gradle] Update apiDump after removing relatedConfigurationNames
^KT-58225 Verification Pending
2023-07-06 13:23:16 +00:00
Sebastian Sellmair 772bcb283d [Gradle] Replace KotlinSourceSetTree interface with simpler class
^KT-58676 Verification Pending
2023-06-26 11:36:17 +00:00
Sebastian Sellmair 1cd8089e92 [Gradle] Move KotlinHierarchyTemplate.Templates.default into -api module
^KT-58676 Verification Pending
2023-06-26 11:36:17 +00:00
Sebastian Sellmair b2dd83515c [Gradle] Stabilise Kotlin Hierarchy Template DSL
- Remove 'Target' name from hierarchy components as in
    - KotlinTargetHierarchyBuilder -> KotlinHierarchyBuilder
    - KotlinTargetHierarchyDsl -> KotlinHierarchyDsl

- Rename KotlinTargetHierarchyDescriptor -> KotlinHierarchyTemplate
    To convey a better intuition about the 'template' vs 'layout' separation:
    A 'template' is used to 'layout' the actual 'hierarchy' on a given project.

- Move entities from .mpp.targetHierarchy to .hierarchy package
    As the .targetHierarchy package was using the 'target' term as well

- Rename SourceSetTree to KotlinSourceSetTree

- Rename SourceSetTreeClassifier to KotlinSourceSetTreeClassifier
    (Support external target APIs by introducing a V2 api version)

^KT-58676 In Progress
2023-06-26 11:36:16 +00:00
Pavel Kirpichenkov a7ff0cfc9d Remove deprecated CInteropSettings#getDependencyConfigurationName
KT-55908
2023-06-16 11:00:42 +00:00
Anton Lakotka 67a511544c [Gradle] Remove defaultConfigurationName
^KT-55201 Verification Pending
2023-05-31 15:45:25 +00:00
Sebastian Sellmair ff7e4f7986 [Gradle] Implement SourceSetTreeClassifier API
- This new API will be configurable for 'External Kotlin Targets'
- This change also moves targetHierarchy.android {} into the androidTarget
to avoid potential confusion around the KGP managed AndroidTarget vs
the Google implementation.

KT-58710
2023-05-16 13:19:42 +00:00
Yahor Berdnikau ccbca7a019 [Gradle] Move pm20 interfaces from plugin/api into plugin codebase
^KT-58619 Fixed
2023-05-10 23:27:14 +02:00
Sebastian Sellmair f98765f254 [Gradle] Remove KotlinCompilation.moduleName
^KT-58220 Verification Pending
2023-04-25 17:08:59 +00:00
Sebastian Sellmair bd0f54564d [Gradle] Move KotlinTargetHierarchy/Android configuration from KotlinAndroidTarget to KotlniTargetHierarchyDsl
^KT-58209 Verification Pending
2023-04-25 15:08:29 +00:00
Yahor Berdnikau 50f5fadfd8 Expose task input to control jvm target validation mode
^KT-56971 Fixed
2023-04-25 10:28:29 +00:00
Yahor Berdnikau f7522ec796 Better approach to handle 'moduleName' in project level DSL
Now project level DSL only configures base part of module name, which
latter is enhanced by Kotlin compilation suffix. In this case
'KotlinCompilation.moduleName' is not used.

Additionally,
'KotlinJvmTask.moduleName' usage was deprecated in favor of
'compilerOptions.moduleName'. Though warning is only produced in case
project is using 'org.jetbrains.kotlin.jvm' or
'org.jetbrains.kotlin.android' plugins.

- 'moduleName' is always required to be non-null.

^KT-57688 Fixed
2023-04-12 06:16:36 +00:00
Sebastian Sellmair c5e154a325 [Gradle] KotlinJvmCompilerOptions: Use JvmTarget.DEFAULT as default value for jvmTarget
KTIJ-24976
2023-04-06 16:03:01 +00:00
Sebastian Sellmair a7a689841f [Gradle] Convert KotlinTargetHierarchy.ModuleName to regular class (instead of data)
^KT-56654 Verification Pending
2023-04-03 11:24:19 +00:00
Sebastian Sellmair b5d188d44e [Gradle] Remove suspend functions from KotlinTargetHierarchyBuilder API
^KT-56654 Verification Pending
2023-04-03 11:24:18 +00:00
Sebastian Sellmair 028780ae97 [Gradle] Introduce HasProject and implement HasMutableExtras in public entities
^KT-34662 Verification Pending
2023-04-03 11:24:10 +00:00
Sebastian Sellmair 40603bbda7 [Gradle] Update kotlin-gradle-plugin-api.api
KT-34662
2023-04-03 11:24:08 +00:00
Alexander Udalov 37c776b233 Add JVM target bytecode version 20
#KT-57495 Fixed
2023-03-30 19:05:41 +00:00
Ivan Kylchik 6bce668cac Introduce language version 2.1 2023-03-21 20:02:42 +00:00
Ilya Goncharov 63e27a9713 [Gradle, JS] Implement own IncrementalSyncTask 2023-03-14 11:16:20 +00:00
Yahor Berdnikau 5ddd60a015 Add '-progressive' option into Gradle compiler options DSL
^KT-53923 Fixed
2023-03-07 17:32:20 +00:00
Oleg Yukhnevich dddd5a57c5 fix api dumpp 2023-03-07 13:57:35 +01:00
Yahor Berdnikau 174f39aa46 Add '-opt-in' option into Gradle compiler options DSL
^KT-53924 Fixed
2023-03-07 09:40:09 +00:00
Sebastian Sellmair 6c618ae5cc [Gradle] Add KotlinVersion.DEFAULT
KT-56210
2023-03-01 16:30:41 +00:00
Yahor Berdnikau 96316a4016 Generate KotlinNativeCompilerOptions Gradle DSL
^KT-53108 In Progress
2023-02-22 13:02:59 +00:00
Anton Lakotka 5b0a9c7a55 [Gradle] Update kotlin-gradle-plugin-api.api
^KT-55881 Verification Pending
2023-02-21 10:15:37 +00:00
Sebastian Sellmair ca859c0132 [Gradle] KotlinTargetHierarchy: Change naming from 'any' to 'with' prefix
^KT-56204 Verification Pending
2023-01-26 15:37:23 +00:00
Artem Kobzar 71486a321c [K/JS] Add support of compilation with ES-classes 2023-01-17 18:14:17 +00:00
Mikhail Glukhikh 3dc05f4ec5 Introduce language version 2.0 and associate K2 compiler with it 2023-01-16 18:12:55 +01:00
Anton Lakotka 0e3be164c7 [Gradle] Update kotlin-gradle-plugin-api after removing...
... `getRelatedConfigurationNames` override.

This property shouldn't be used in user scripts. It supposed to be
internal.
2023-01-11 12:32:58 +00:00
Sebastian Sellmair f8919533dc [Gradle] Update kotlin-gradle-plugin-api.api
KT-55218
2022-12-06 08:35:17 +00:00
Anton Lakotka f72b67a5ca [Gradle] Update kotlin-gradle-plugin-api.api
Add new field `sourcesElementsConfigurationName` to KotlinTarget

^KT-36943
2022-12-01 18:57:03 +00:00
Artem Daugel-Dauge 4f736524b2 KT-54969 Kotlin artifacts withPodspec DSL 2022-11-27 18:09:38 +00:00
Ilya Gorbunov 59131f8138 Use BCV plugin to dump and check public API of Kotlin Gradle plugin-related artifacts 2022-11-18 06:00:18 +00:00