Skip to content

@file:DependsOn complains that error: unresolved reference: DependsOn #107

@kenyee

Description

@kenyee

Using kscript 2.4.1 on OSX installed via homebrew...I get this error:

/var/folders/k_/f8z08xqj4pg2gqddw4hl0qfm99s3w1/T/tmp3195497048532925592.tmp/scriptlet.765e9358e964903f.kts:1:7: error: unresolved reference: DependsOn
@file:DependsOn("com.squareup.moshi:moshi:1.5.0", "com.squareup.moshi:moshi-adapters:1.5.0", "com.squareup.moshi:moshi-kotlin:1.5.0")

Top of that kscript file is pretty trivial:

#!/usr/bin/env kscript
@file:DependsOn("com.squareup.moshi:moshi:1.5.0", "com.squareup.moshi:moshi-adapters:1.5.0", "com.squareup.moshi:moshi-kotlin:1.5.0")
@file:Include("VolunteerDataModels.kt")
@file:Include("VolunteerDataUtils.kt")
// note: the @file notation for the above doesn't seem to work yet :-P

But works fine when using the old notation:

#!/usr/bin/env kscript
//DEPS com.squareup.moshi:moshi:1.5.0,com.squareup.moshi:moshi-adapters:1.5.0,com.squareup.moshi:moshi-kotlin:1.5.0
//INCLUDE VolunteerDataModels.kt
//INCLUDE VolunteerDataUtils.kt
// note: the @file notation for the above doesn't seem to work yet :-P

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions