[Git][java-team/kotlin][master] 5 commits: Fixed the compatibility of the Gradle plugin with Gradle 4.9
Emmanuel Bourg (@ebourg)
gitlab at salsa.debian.org
Thu Oct 29 08:38:00 GMT 2026
Emmanuel Bourg pushed to branch master at Debian Java Maintainers / kotlin
Commits:
25dbe8ab by Emmanuel Bourg at 2026-10-28T15:25:15+01:00
Fixed the compatibility of the Gradle plugin with Gradle 4.9
- - - - -
85e4e131 by Emmanuel Bourg at 2026-10-28T16:48:07+01:00
Build with Gradle 4.8
- - - - -
fd0f6372 by Emmanuel Bourg at 2026-10-28T16:53:42+01:00
Explicit build dependency on libgradle-kotlin-dsl-java (>= 0.17.5-3~)
- - - - -
73ae46d4 by Emmanuel Bourg at 2026-10-28T21:32:43+01:00
Install the Gradle plugin markers
- - - - -
56c86586 by Emmanuel Bourg at 2026-10-29T01:06:20+01:00
Upload to unstable
- - - - -
7 changed files:
- debian/changelog
- debian/clean
- debian/control
- debian/kotlin.poms.in
- debian/patches/057-libraries-kotlin-gradle-plugin-resolve-various-issues.patch
- + debian/plugin-marker.pom.in
- debian/rules
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,13 @@
+kotlin (1.3.31+ds1-8) unstable; urgency=medium
+
+ * Team upload.
+ * Fixed the compatibility of the Gradle plugin with Gradle 4.9
+ * Build with Gradle 4.8
+ * Explicit build dependency on libgradle-kotlin-dsl-java (>= 0.17.5-3~)
+ * Install the Gradle plugin markers
+
+ -- Emmanuel Bourg <ebourg at apache.org> Thu, 29 Oct 2026 01:06:09 +0100
+
kotlin (1.3.31+ds1-7) unstable; urgency=medium
* Team upload.
=====================================
debian/clean
=====================================
@@ -5,6 +5,7 @@ buildSrc/prepare-deps/intellij-sdk/repo/
debian/.mh/
debian/maven-repo/
debian/maven-repo-cache/
+debian/markers/
debian/stamp-poms-patched
dist/
.gradle/
=====================================
debian/control
=====================================
@@ -10,12 +10,13 @@ Build-Depends:
ant,
debhelper-compat (=13),
default-jdk (>= 2:1.23),
- gradle (>= 4.7~),
+ gradle (>= 4.8~),
gradle-debian-helper (>= 2.4~),
jflex,
kotlin (>= 1.3.31+ds1-4~),
libasm-java (>= 9.6~),
libgradle-android-plugin-java,
+ libgradle-kotlin-dsl-java (>= 0.17.5-3~),
libguava-java,
libintellij-core-java (>= 183.5153.4-7~),
libintellij-extensions-java (>= 183.5153.4-7~),
=====================================
debian/kotlin.poms.in
=====================================
@@ -113,3 +113,15 @@
libraries/pom.xml
libraries/tools/kotlin-maven-plugin/pom.xml --artifact=libraries/tools/kotlin-maven-plugin/target/kotlin-maven-plugin-__VERSION__.jar --java-lib
libraries/tools/kotlin-osgi-bundle/pom.xml --artifact=libraries/tools/kotlin-osgi-bundle/target/kotlin-osgi-bundle-__VERSION__.jar --java-lib
+debian/markers/org.jetbrains.kotlin.android.gradle.plugin.pom
+debian/markers/org.jetbrains.kotlin.android.extensions.gradle.plugin.pom
+debian/markers/org.jetbrains.kotlin.jvm.gradle.plugin.pom
+debian/markers/org.jetbrains.kotlin.kapt.gradle.plugin.pom
+debian/markers/org.jetbrains.kotlin.multiplatform.gradle.plugin.pom
+debian/markers/org.jetbrains.kotlin.native.cocoapods.gradle.plugin.pom
+debian/markers/org.jetbrains.kotlin.platform.android.gradle.plugin.pom
+debian/markers/org.jetbrains.kotlin.platform.common.gradle.plugin.pom
+debian/markers/org.jetbrains.kotlin.platform.js.gradle.plugin.pom
+debian/markers/org.jetbrains.kotlin.platform.jvm.gradle.plugin.pom
+debian/markers/org.jetbrains.kotlin.plugin.scripting.gradle.plugin.pom
+debian/markers/org.jetbrains.kotlin.plugin.sam.with.receiver.gradle.plugin.pom
=====================================
debian/patches/057-libraries-kotlin-gradle-plugin-resolve-various-issues.patch
=====================================
@@ -406,26 +406,6 @@ same various files are backported in gradle (v4.4.1-12).
- KaptVariant(variantData)
-}
\ No newline at end of file
---- a/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/KotlinSoftwareComponent.kt
-+++ b/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/KotlinSoftwareComponent.kt
-@@ -114,5 +114,5 @@
-
- override fun getCapabilities(): Set<Capability> = emptySet()
-
-- override fun getGlobalExcludes(): Set<ExcludeRule> = emptySet()
-+// override fun getGlobalExcludes(): Set<ExcludeRule> = emptySet()
- }
---- a/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/kotlinVariants.kt
-+++ b/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/kotlinVariants.kt
-@@ -124,7 +124,7 @@
- ) : KotlinUsageContext by parentUsageContext {
- override fun getDependencies() = parentUsageContext.dependencies + additionalDependencies
-
-- override fun getGlobalExcludes(): Set<ExcludeRule> = emptySet()
-+ fun getGlobalExcludes(): Set<ExcludeRule> = emptySet()
- }
- }
-
--- a/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/scripting/internal/ScriptingGradleSubplugin.kt
+++ b/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/scripting/internal/ScriptingGradleSubplugin.kt
@@ -65,7 +65,7 @@
@@ -512,3 +492,16 @@ same various files are backported in gradle (v4.4.1-12).
}
}
+--- a/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/tasks/TasksProvider.kt
++++ b/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/tasks/TasksProvider.kt
+@@ -23,7 +23,9 @@
+ import org.jetbrains.kotlin.gradle.plugin.mpp.defaultSourceSetName
+ import org.jetbrains.kotlin.gradle.plugin.sources.applyLanguageSettingsToKotlinTask
+
+-internal val useLazyTaskConfiguration = org.jetbrains.kotlin.gradle.utils.isGradleVersionAtLeast(4, 9)
++// The calls to the lazy task API are rewritten to compile with an older Gradle,
++// so the eager code paths are used whatever the Gradle version
++internal val useLazyTaskConfiguration = false
+
+ /**
+ * Registers the task with name @param name and type @param type and initialization script @param body
=====================================
debian/plugin-marker.pom.in
=====================================
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>__ID__</groupId>
+ <artifactId>__ID__.gradle.plugin</artifactId>
+ <version>__VERSION__</version>
+ <packaging>pom</packaging>
+ <dependencies>
+ <dependency>
+ <groupId>org.jetbrains.kotlin</groupId>
+ <artifactId>__ARTIFACT__</artifactId>
+ <version>__VERSION__</version>
+ </dependency>
+ </dependencies>
+</project>
=====================================
debian/rules
=====================================
@@ -7,6 +7,13 @@ KOTLIN_VERSION_TO_BUILD := $(firstword $(subst +, ,$(DEB_VERSION)))
KOTLIN_VERSION_INSTALLED := $(shell dpkg-query --showformat='$${Version}\n' -W kotlin)
KOTLIN_VERSION_TO_USE := $(firstword $(subst +, ,$(KOTLIN_VERSION_INSTALLED)))
COMMON_GRADLE_OPTIONS := -Dkotlin.compiler.execution.strategy=in-process
+
+# The Gradle plugin markers (plugin id:artifact), upstream generates them with
+# the java-gradle-plugin plugin which the Debian build doesn't use
+PLUGIN_MARKERS := $(addsuffix :kotlin-gradle-plugin,$(addprefix org.jetbrains.kotlin.,\
+ android android.extensions jvm kapt multiplatform native.cocoapods \
+ platform.android platform.common platform.js platform.jvm plugin.scripting)) \
+ org.jetbrains.kotlin.plugin.sam.with.receiver:kotlin-sam-with-receiver
#COMMON_GRADLE_OPTIONS := -Dkotlin.compiler.execution.strategy=in-process \
# "-Dorg.gradle.jvmargs=-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005 \
# -Xbootclasspath/a:/usr/share/java/gradle-helper-hook.jar:/usr/share/java/maven-repo-helper.jar"
@@ -28,8 +35,13 @@ export JDK_16=$(BASELINE_JAVA_HOME)
.PHONY: build
build: _build
-debian/kotlin.poms: debian/kotlin.poms.in
+debian/kotlin.poms: debian/kotlin.poms.in debian/plugin-marker.pom.in
sed -e "s|__VERSION__|$(KOTLIN_VERSION_TO_BUILD)|g" < $< > $@
+ mkdir -p debian/markers
+ for marker in $(PLUGIN_MARKERS); do \
+ sed -e "s|__ID__|$${marker%%:*}|g" -e "s|__ARTIFACT__|$${marker#*:}|g" -e "s|__VERSION__|$(KOTLIN_VERSION_TO_BUILD)|g" \
+ < debian/plugin-marker.pom.in > debian/markers/$${marker%%:*}.gradle.plugin.pom; \
+ done
override_dh_auto_build: debian/kotlin.poms
# Build Kotlin
View it on GitLab: https://salsa.debian.org/java-team/kotlin/-/compare/0a2ae27668e6f9305106176abb23c7f014a1ac39...56c86586f422cf30801a76a7cfc2c02b88446d21
--
View it on GitLab: https://salsa.debian.org/java-team/kotlin/-/compare/0a2ae27668e6f9305106176abb23c7f014a1ac39...56c86586f422cf30801a76a7cfc2c02b88446d21
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20261029/d2dc877f/attachment.htm>
More information about the pkg-java-commits
mailing list