Skip to content

Commit

Permalink
fix: add gradle-tooling-api to shell script classpath
Browse files Browse the repository at this point in the history
Related to gh-13760
  • Loading branch information
matrei committed Dec 12, 2024
1 parent a884079 commit 812b774
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gradle/assemble.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 812b774

Please sign in to comment.