[Gradle] Add Gradle 8.2+ plugin variant
Fixups KT-52976 as the intention was to remove conventions registration. However until this commit, `gradle81` variant was used for all the 8.1+ versions providing an implementation that registers conventions. ^KT-63499 Fixed
This commit is contained in:
committed by
Space Team
parent
965b6b544d
commit
6fbd26905a
@@ -1522,6 +1522,12 @@
|
|||||||
<sha256 value="a90fb12246e49dc1f5f165d36fefbdacb5417f878fc6a0c6e5a65916aa2dc605" origin="Generated by Gradle"/>
|
<sha256 value="a90fb12246e49dc1f5f165d36fefbdacb5417f878fc6a0c6e5a65916aa2dc605" origin="Generated by Gradle"/>
|
||||||
</artifact>
|
</artifact>
|
||||||
</component>
|
</component>
|
||||||
|
<component group="dev.gradleplugins" name="gradle-api" version="8.2">
|
||||||
|
<artifact name="gradle-api-8.2.jar">
|
||||||
|
<md5 value="3558e34f0e04095688b4462cb66ee7e2" origin="Generated by Gradle"/>
|
||||||
|
<sha256 value="ecc9aad0e1280afed3b22965292642ff640229bfd3e28f965251ba97f7bedc11" origin="Generated by Gradle"/>
|
||||||
|
</artifact>
|
||||||
|
</component>
|
||||||
<component group="dev.gradleplugins" name="gradle-api" version="8.4">
|
<component group="dev.gradleplugins" name="gradle-api" version="8.4">
|
||||||
<artifact name="gradle-api-8.4.jar">
|
<artifact name="gradle-api-8.4.jar">
|
||||||
<md5 value="a30d0712ecc5bdb2771e2e4021102636" origin="Generated by Gradle"/>
|
<md5 value="a30d0712ecc5bdb2771e2e4021102636" origin="Generated by Gradle"/>
|
||||||
|
|||||||
+5
-2
@@ -205,6 +205,7 @@ class SimpleKotlinGradleIT : KGPBaseTest() {
|
|||||||
|
|
||||||
@DisplayName("Proper Gradle plugin variant is used")
|
@DisplayName("Proper Gradle plugin variant is used")
|
||||||
@GradleTestVersions(
|
@GradleTestVersions(
|
||||||
|
maxVersion = TestVersions.Gradle.G_8_2,
|
||||||
additionalVersions = [
|
additionalVersions = [
|
||||||
TestVersions.Gradle.G_7_0,
|
TestVersions.Gradle.G_7_0,
|
||||||
TestVersions.Gradle.G_7_1,
|
TestVersions.Gradle.G_7_1,
|
||||||
@@ -213,6 +214,8 @@ class SimpleKotlinGradleIT : KGPBaseTest() {
|
|||||||
TestVersions.Gradle.G_7_5,
|
TestVersions.Gradle.G_7_5,
|
||||||
TestVersions.Gradle.G_7_6,
|
TestVersions.Gradle.G_7_6,
|
||||||
TestVersions.Gradle.G_8_0,
|
TestVersions.Gradle.G_8_0,
|
||||||
|
TestVersions.Gradle.G_8_1,
|
||||||
|
TestVersions.Gradle.G_8_2,
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
@GradleTest
|
@GradleTest
|
||||||
@@ -220,7 +223,8 @@ class SimpleKotlinGradleIT : KGPBaseTest() {
|
|||||||
project("kotlinProject", gradleVersion) {
|
project("kotlinProject", gradleVersion) {
|
||||||
build("help") {
|
build("help") {
|
||||||
val expectedVariant = when (gradleVersion) {
|
val expectedVariant = when (gradleVersion) {
|
||||||
in GradleVersion.version(TestVersions.Gradle.G_8_1)..GradleVersion.version(TestVersions.Gradle.G_8_2) -> "gradle81"
|
GradleVersion.version(TestVersions.Gradle.G_8_2) -> "gradle82"
|
||||||
|
GradleVersion.version(TestVersions.Gradle.G_8_1) -> "gradle81"
|
||||||
GradleVersion.version(TestVersions.Gradle.G_8_0) -> "gradle80"
|
GradleVersion.version(TestVersions.Gradle.G_8_0) -> "gradle80"
|
||||||
GradleVersion.version(TestVersions.Gradle.G_7_6) -> "gradle76"
|
GradleVersion.version(TestVersions.Gradle.G_7_6) -> "gradle76"
|
||||||
GradleVersion.version(TestVersions.Gradle.G_7_5) -> "gradle75"
|
GradleVersion.version(TestVersions.Gradle.G_7_5) -> "gradle75"
|
||||||
@@ -322,7 +326,6 @@ class SimpleKotlinGradleIT : KGPBaseTest() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Disabled
|
|
||||||
@DisplayName("KT-63499: source sets conventions are not registered since Gradle 8.2")
|
@DisplayName("KT-63499: source sets conventions are not registered since Gradle 8.2")
|
||||||
@GradleTestVersions(minVersion = TestVersions.Gradle.G_8_2)
|
@GradleTestVersions(minVersion = TestVersions.Gradle.G_8_2)
|
||||||
@GradleTest
|
@GradleTest
|
||||||
|
|||||||
+138
@@ -0,0 +1,138 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||||
|
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.jetbrains.kotlin.gradle.plugin
|
||||||
|
|
||||||
|
import com.android.build.gradle.BaseExtension
|
||||||
|
import org.gradle.api.Named
|
||||||
|
import org.gradle.api.NamedDomainObjectContainer
|
||||||
|
import org.gradle.api.Project
|
||||||
|
import org.gradle.api.file.SourceDirectorySet
|
||||||
|
import org.gradle.api.model.ObjectFactory
|
||||||
|
import org.gradle.tooling.provider.model.ToolingModelBuilderRegistry
|
||||||
|
import javax.inject.Inject
|
||||||
|
|
||||||
|
private const val PLUGIN_VARIANT_NAME = "gradle82"
|
||||||
|
|
||||||
|
open class KotlinPluginWrapper @Inject constructor(
|
||||||
|
registry: ToolingModelBuilderRegistry
|
||||||
|
) : AbstractKotlinPluginWrapper(registry) {
|
||||||
|
|
||||||
|
override val pluginVariant: String = PLUGIN_VARIANT_NAME
|
||||||
|
|
||||||
|
override fun apply(project: Project) {
|
||||||
|
project.registerVariantImplementations()
|
||||||
|
super.apply(project)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
open class KotlinCommonPluginWrapper @Inject constructor(
|
||||||
|
registry: ToolingModelBuilderRegistry
|
||||||
|
) : AbstractKotlinCommonPluginWrapper(registry) {
|
||||||
|
|
||||||
|
override val pluginVariant: String = PLUGIN_VARIANT_NAME
|
||||||
|
|
||||||
|
override fun apply(project: Project) {
|
||||||
|
project.registerVariantImplementations()
|
||||||
|
super.apply(project)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
open class KotlinAndroidPluginWrapper @Inject constructor(
|
||||||
|
registry: ToolingModelBuilderRegistry
|
||||||
|
) : AbstractKotlinAndroidPluginWrapper(registry) {
|
||||||
|
|
||||||
|
override val pluginVariant: String = PLUGIN_VARIANT_NAME
|
||||||
|
|
||||||
|
override fun apply(project: Project) {
|
||||||
|
project.registerVariantImplementations()
|
||||||
|
super.apply(project)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Suppress("DEPRECATION_ERROR")
|
||||||
|
open class Kotlin2JsPluginWrapper @Inject constructor(
|
||||||
|
registry: ToolingModelBuilderRegistry
|
||||||
|
) : AbstractKotlin2JsPluginWrapper(registry) {
|
||||||
|
|
||||||
|
override val pluginVariant: String = PLUGIN_VARIANT_NAME
|
||||||
|
|
||||||
|
override fun apply(project: Project) {
|
||||||
|
project.registerVariantImplementations()
|
||||||
|
super.apply(project)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
open class KotlinMultiplatformPluginWrapper : AbstractKotlinMultiplatformPluginWrapper() {
|
||||||
|
|
||||||
|
override val pluginVariant: String = PLUGIN_VARIANT_NAME
|
||||||
|
|
||||||
|
override fun apply(project: Project) {
|
||||||
|
project.registerVariantImplementations()
|
||||||
|
super.apply(project)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
open class KotlinJsPluginWrapper : AbstractKotlinJsPluginWrapper() {
|
||||||
|
|
||||||
|
override val pluginVariant: String = PLUGIN_VARIANT_NAME
|
||||||
|
|
||||||
|
override fun apply(project: Project) {
|
||||||
|
project.registerVariantImplementations()
|
||||||
|
super.apply(project)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
open class KotlinPlatformJvmPlugin : KotlinPlatformImplementationPluginBase("jvm") {
|
||||||
|
override fun apply(project: Project) {
|
||||||
|
project.applyPlugin<KotlinPluginWrapper>()
|
||||||
|
super.apply(project)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
open class KotlinPlatformJsPlugin : KotlinPlatformImplementationPluginBase("js") {
|
||||||
|
override fun apply(project: Project) {
|
||||||
|
@Suppress("DEPRECATION_ERROR")
|
||||||
|
project.applyPlugin<Kotlin2JsPluginWrapper>()
|
||||||
|
super.apply(project)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
open class KotlinPlatformAndroidPlugin : KotlinPlatformImplementationPluginBase("android") {
|
||||||
|
override fun apply(project: Project) {
|
||||||
|
project.applyPlugin<KotlinAndroidPluginWrapper>()
|
||||||
|
super.apply(project)
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun namedSourceSetsContainer(project: Project): NamedDomainObjectContainer<*> =
|
||||||
|
(project.extensions.getByName("android") as BaseExtension).sourceSets
|
||||||
|
|
||||||
|
override fun addCommonSourceSetToPlatformSourceSet(commonSourceSet: Named, platformProject: Project) {
|
||||||
|
val androidExtension = platformProject.extensions.getByName("android") as BaseExtension
|
||||||
|
val androidSourceSet = androidExtension.sourceSets.findByName(commonSourceSet.name) ?: return
|
||||||
|
val kotlinSourceSet = androidSourceSet.getExtension<SourceDirectorySet>(KOTLIN_DSL_NAME)
|
||||||
|
?: return
|
||||||
|
kotlinSourceSet.source(getKotlinSourceDirectorySetSafe(commonSourceSet)!!)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
open class KotlinPlatformCommonPlugin : KotlinPlatformPluginBase("common") {
|
||||||
|
override fun apply(project: Project) {
|
||||||
|
project.applyPlugin<KotlinCommonPluginWrapper>()
|
||||||
|
warnAboutKotlin12xMppDeprecation(project)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
open class KotlinApiPlugin : KotlinBaseApiPlugin() {
|
||||||
|
override fun apply(project: Project) {
|
||||||
|
project.registerVariantImplementations()
|
||||||
|
super.apply(project)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Suppress("UnusedReceiverParameter")
|
||||||
|
private fun Project.registerVariantImplementations() {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -305,5 +305,38 @@
|
|||||||
</exclusions>
|
</exclusions>
|
||||||
<optional>true</optional>
|
<optional>true</optional>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
<artifactId>kotlin-gradle-plugin-api</artifactId>
|
||||||
|
<version>ArtifactsTest.version</version>
|
||||||
|
<scope>compile</scope>
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-reflect</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-stdlib-jdk8</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-stdlib-jdk7</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-stdlib</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-script-runtime</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-stdlib-common</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
+33
@@ -337,5 +337,38 @@
|
|||||||
</exclusions>
|
</exclusions>
|
||||||
<optional>true</optional>
|
<optional>true</optional>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
<artifactId>kotlin-gradle-plugin-api</artifactId>
|
||||||
|
<version>ArtifactsTest.version</version>
|
||||||
|
<scope>compile</scope>
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-reflect</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-stdlib-jdk8</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-stdlib-jdk7</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-stdlib</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-script-runtime</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-stdlib-common</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
+33
@@ -337,5 +337,38 @@
|
|||||||
</exclusions>
|
</exclusions>
|
||||||
<optional>true</optional>
|
<optional>true</optional>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
<artifactId>kotlin-gradle-plugin-api</artifactId>
|
||||||
|
<version>ArtifactsTest.version</version>
|
||||||
|
<scope>compile</scope>
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-reflect</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-stdlib-jdk8</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-stdlib-jdk7</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-stdlib</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-script-runtime</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-stdlib-common</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
+33
@@ -305,5 +305,38 @@
|
|||||||
</exclusions>
|
</exclusions>
|
||||||
<optional>true</optional>
|
<optional>true</optional>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
<artifactId>kotlin-gradle-plugin-api</artifactId>
|
||||||
|
<version>ArtifactsTest.version</version>
|
||||||
|
<scope>compile</scope>
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-reflect</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-stdlib-jdk8</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-stdlib-jdk7</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-stdlib</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-script-runtime</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-stdlib-common</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
+33
@@ -337,5 +337,38 @@
|
|||||||
</exclusions>
|
</exclusions>
|
||||||
<optional>true</optional>
|
<optional>true</optional>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
<artifactId>kotlin-gradle-plugin-api</artifactId>
|
||||||
|
<version>ArtifactsTest.version</version>
|
||||||
|
<scope>compile</scope>
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-reflect</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-stdlib-jdk8</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-stdlib-jdk7</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-stdlib</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-script-runtime</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-stdlib-common</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
+33
@@ -337,5 +337,38 @@
|
|||||||
</exclusions>
|
</exclusions>
|
||||||
<optional>true</optional>
|
<optional>true</optional>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
<artifactId>kotlin-gradle-plugin-api</artifactId>
|
||||||
|
<version>ArtifactsTest.version</version>
|
||||||
|
<scope>compile</scope>
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-reflect</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-stdlib-jdk8</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-stdlib-jdk7</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-stdlib</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-script-runtime</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-stdlib-common</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
+33
@@ -337,5 +337,38 @@
|
|||||||
</exclusions>
|
</exclusions>
|
||||||
<optional>true</optional>
|
<optional>true</optional>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
<artifactId>kotlin-gradle-plugin-api</artifactId>
|
||||||
|
<version>ArtifactsTest.version</version>
|
||||||
|
<scope>compile</scope>
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-reflect</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-stdlib-jdk8</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-stdlib-jdk7</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-stdlib</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-script-runtime</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-stdlib-common</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
+33
@@ -305,5 +305,38 @@
|
|||||||
</exclusions>
|
</exclusions>
|
||||||
<optional>true</optional>
|
<optional>true</optional>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
<artifactId>kotlin-gradle-plugin-api</artifactId>
|
||||||
|
<version>ArtifactsTest.version</version>
|
||||||
|
<scope>compile</scope>
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-reflect</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-stdlib-jdk8</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-stdlib-jdk7</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-stdlib</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-script-runtime</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>kotlin-stdlib-common</artifactId>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ enum class GradlePluginVariant(
|
|||||||
GRADLE_76("gradle76", "7.6", "7.6", "https://docs.gradle.org/7.6.1/javadoc/"),
|
GRADLE_76("gradle76", "7.6", "7.6", "https://docs.gradle.org/7.6.1/javadoc/"),
|
||||||
GRADLE_80("gradle80", "8.0", "8.0", "https://docs.gradle.org/8.0.2/javadoc/"),
|
GRADLE_80("gradle80", "8.0", "8.0", "https://docs.gradle.org/8.0.2/javadoc/"),
|
||||||
GRADLE_81("gradle81", "8.1", "8.1", "https://docs.gradle.org/8.1.1/javadoc/"),
|
GRADLE_81("gradle81", "8.1", "8.1", "https://docs.gradle.org/8.1.1/javadoc/"),
|
||||||
|
GRADLE_82("gradle82", "8.2", "8.2", "https://docs.gradle.org/8.2.1/javadoc/"),
|
||||||
}
|
}
|
||||||
|
|
||||||
val commonSourceSetName = "common"
|
val commonSourceSetName = "common"
|
||||||
@@ -774,7 +775,8 @@ fun Project.configureDokkaPublication(
|
|||||||
private fun GradleExternalDocumentationLinkBuilder.addWorkaroundForElementList(pluginVariant: GradlePluginVariant) {
|
private fun GradleExternalDocumentationLinkBuilder.addWorkaroundForElementList(pluginVariant: GradlePluginVariant) {
|
||||||
if (pluginVariant == GradlePluginVariant.GRADLE_76 ||
|
if (pluginVariant == GradlePluginVariant.GRADLE_76 ||
|
||||||
pluginVariant == GradlePluginVariant.GRADLE_80 ||
|
pluginVariant == GradlePluginVariant.GRADLE_80 ||
|
||||||
pluginVariant == GradlePluginVariant.GRADLE_81
|
pluginVariant == GradlePluginVariant.GRADLE_81 ||
|
||||||
|
pluginVariant == GradlePluginVariant.GRADLE_82
|
||||||
) {
|
) {
|
||||||
packageListUrl.set(URL("${pluginVariant.gradleApiJavadocUrl}element-list"))
|
packageListUrl.set(URL("${pluginVariant.gradleApiJavadocUrl}element-list"))
|
||||||
}
|
}
|
||||||
|
|||||||
+7
@@ -110,4 +110,11 @@ if (!kotlinBuildProperties.isInJpsBuildIdeaSync) {
|
|||||||
commonSourceSet = commonSourceSet
|
commonSourceSet = commonSourceSet
|
||||||
)
|
)
|
||||||
publishShadowedJar(gradle81SourceSet, commonSourceSet)
|
publishShadowedJar(gradle81SourceSet, commonSourceSet)
|
||||||
|
|
||||||
|
// Used for Gradle 8.2+ versions
|
||||||
|
val gradle82SourceSet = createGradlePluginVariant(
|
||||||
|
GradlePluginVariant.GRADLE_82,
|
||||||
|
commonSourceSet = commonSourceSet
|
||||||
|
)
|
||||||
|
publishShadowedJar(gradle82SourceSet, commonSourceSet)
|
||||||
}
|
}
|
||||||
|
|||||||
+7
@@ -69,6 +69,13 @@ createGradlePluginVariant(
|
|||||||
isGradlePlugin = false
|
isGradlePlugin = false
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Used for Gradle 8.2+ versions
|
||||||
|
createGradlePluginVariant(
|
||||||
|
GradlePluginVariant.GRADLE_82,
|
||||||
|
commonSourceSet = commonSourceSet,
|
||||||
|
isGradlePlugin = false
|
||||||
|
)
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
register<MavenPublication>(DEFAULT_MAIN_PUBLICATION_NAME) {
|
register<MavenPublication>(DEFAULT_MAIN_PUBLICATION_NAME) {
|
||||||
|
|||||||
Reference in New Issue
Block a user