0

I am trying to break my big build.gradle.kts file and use

apply(from=script1.gradle.kts)
apply(from=rpm.gradle.kts)

My rpm-gradle.kts looks like

import com.netflix.gradle.plugins.rpm.Rpm
val buildRpmTask2  by tasks.registering(Rpm::class) {
  os = org.redline_rpm.header.Os.LINUX
  packageName="app"
  release = "1"
  user = "root"
  packageGroup = "root"
}

However, my Intellij is not doing syntax highlighting and my gradle build is failing while complaining that RPM can not be found. Should I use BuildSrc instead ?

JPV
  • 1,079
  • 1
  • 18
  • 44
  • Did you try to enclose the scripts in quotation marks: apply(from = "script1.gradle.kts") and apply(from="rpm.gradle.kts")? – Luis Aug 18 '23 at 14:37

0 Answers0