From 812b774aa5a2bce63ed8659e10e66d667c2ba213 Mon Sep 17 00:00:00 2001 From: Mattias Reichel Date: Mon, 9 Dec 2024 12:03:43 +0100 Subject: [PATCH] fix: add `gradle-tooling-api` to shell script classpath Related to gh-13760 --- gradle/assemble.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle/assemble.gradle b/gradle/assemble.gradle index e5d2466b9b3..a97ba16567a 100644 --- a/gradle/assemble.gradle +++ b/gradle/assemble.gradle @@ -135,11 +135,11 @@ class GrailsCreateStartScripts extends CreateStartScripts { generator.classpath = projectArtifacts + getClasspath().resolvedConfiguration.resolvedArtifacts.collect { artifact -> def dependency = artifact.moduleVersion.id String installedFile = "lib/$dependency.group/$dependency.name/jars/$artifact.file.name" - if(dependency.group == 'org.grails' && !project.file(installedFile).exists()) { + if (dependency.group == 'org.grails' && !project.file(installedFile).exists()) { installedFile = "dist/$artifact.file.name" } installedFile - } + } + "lib/org.gradle/gradle-tooling-api/jars/gradle-tooling-api-${project.findProperty('gradleToolingApiVersion')}.jar".toString() // This is compileOnly, so it needs to be added manually generator.scriptRelPath = "bin/${unixScript.name}" generator.generateUnixScript(unixScript) generator.generateWindowsScript(windowsScript)