Skip to content

Commit 6187591

Browse files
committed
fixed incorrect array access (relates to #155)
1 parent 10a9da1 commit 6187591

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ fun resolveDependencies(depIds: List<String>, customRepos: List<MavenRepo> = emp
4747
<groupId>${splitDepId[0]}</groupId>
4848
<artifactId>${splitDepId[1]}</artifactId>
4949
<version>${splitDepId[2]}</version>
50-
${if (splitDepId.size == 4) "<classifier>" + splitDepId[2] + "<classifier>" else ""}
50+
${if (splitDepId.size == 4) "<classifier>" + splitDepId[3] + "<classifier>" else ""}
5151
</dependency>
5252
"""
5353
}

0 commit comments

Comments
 (0)