Skip to content

Commit

Permalink
Merge pull request #13919 from grails/matrei/runnable-distribution
Browse files Browse the repository at this point in the history
Add `gradle-tooling-api` to shell script classpath
  • Loading branch information
jamesfredley authored Dec 14, 2024
2 parents 30e7563 + 812b774 commit 43e9b81
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
@@ -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)

0 comments on commit 43e9b81

Please sign in to comment.