Skip to content

Commit 3780e07

Browse files
committed
Changed aether resolution type to RUNTIME (relates to #220 and #212)
1 parent fa77e90 commit 3780e07

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/kotlin/kscript/app/DependencyUtil.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import org.sonatype.aether.artifact.Artifact
66
import org.sonatype.aether.repository.RemoteRepository
77
import org.sonatype.aether.util.artifact.DefaultArtifact
88
import org.sonatype.aether.util.artifact.JavaScopes.COMPILE
9+
import org.sonatype.aether.util.artifact.JavaScopes.RUNTIME
910
import java.io.File
1011

1112

@@ -74,7 +75,7 @@ fun resolveDependenciesViaAether(depIds: List<String>, customRepos: List<MavenRe
7475
return depIds.flatMap {
7576
if (loggingEnabled) System.err.print("[kscript] Resolving $it...")
7677

77-
val artifacts = aether.resolve(depIdToArtifact(it), COMPILE)
78+
val artifacts = aether.resolve(depIdToArtifact(it), RUNTIME)
7879

7980
if (loggingEnabled) System.err.println("Done")
8081

0 commit comments

Comments
 (0)