Kscript doesn't work if DependsOn is not on a single line
See original GitHub issueThe following example - autoformatted by intellij does not work using kscript because the DependsOn
block is not parsed correctly.
Tested on latest commit c2d1e4707e3a2ced4418facfe4331a77dbe19e53
#!/usr/bin/env kscript
@file:DependsOn(
"com.beust:jcommander:1.71",
"org.apache.commons:commons-exec:1.3",
"com.android.tools:sdk-common:26.3.0-beta02"
)
@file:MavenRepository("google", "https://dl.google.com/dl/android/maven2")
import com.android.ide.common.vectordrawable.Svg2Vector
import com.beust.jcommander.JCommander
import com.beust.jcommander.Parameter
import org.apache.commons.exec.CommandLine
import org.apache.commons.exec.DefaultExecutor
import java.io.File
import java.io.IOException
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:7
Top Results From Across the Web
Support local jar references in @file:DependsOn #302 - GitHub
I'm struggling to understand how I'm supposed to get access to my local libraries in kscript. I have simple file : #! /usr/bin/env...
Read more >azure devops - Conditional dependson for multiple stage YAML
I have a YAML pipeline which contains some template files. Within my pipeline, there are 4 stages that run ...
Read more >kscript - Bountysource
The following example - autoformatted by intellij does not work using kscript because the DependsOn block is not parsed correctly.
Read more >kscript - JetBrains
A separate gradle/maven file even more. kotlinc means recompile, so little scriptlets run slow. How to keep track of required JVM/runtime options? More...
Read more >Unable to define "dependsOn" with stage template
/Path/To/Pipeline.yaml (Line: 17, Col: 3): Unexpected value 'dependsOn' ... Sorry the insert code function seems not working correctly.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Cool, just let me know once the PR is ready
I cloned our fork of the project and added a test with a multiline version of the dependency annotation, but the test succeeds somehow, so I’m looking into the differences between that and running it via an actual script.