Skip to content

Commit 5208318

Browse files
committed
Fix dependency resolution during gradle project configuration
1 parent 50e758c commit 5208318

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

compiler/psi/build.gradle.kts

+7-1
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,10 @@ sourceSets {
3939
ant.importBuild("buildLexer.xml")
4040

4141
ant.properties["builddir"] = buildDir.absolutePath
42-
ant.properties["flex.classpath"] = jflexPath.asPath
42+
43+
tasks.findByName("lexer")!!.apply {
44+
doFirst {
45+
ant.properties["flex.classpath"] = jflexPath.asPath
46+
}
47+
}
48+

include/kotlin-compiler/build.gradle.kts

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ dependencies {
3434
val jar: Jar by tasks
3535
jar.apply {
3636
dependsOn(fatJarContents)
37-
from(compile.filter { it.extension == "jar" }.map { zipTree(it) })
38-
from(fatJarContents.map { zipTree(it) })
39-
from(fatJarContentsStripServices.map { zipTree(it) }) { exclude("META-INF/services/**") }
40-
from(fatJarContentsStripMetadata.map { zipTree(it) }) { exclude("META-INF/jb/** META-INF/LICENSE") }
37+
from { compile.filter { it.extension == "jar" }.map { zipTree(it) } }
38+
from { fatJarContents.map { zipTree(it) } }
39+
from { fatJarContentsStripServices.map { zipTree(it).matching { exclude("META-INF/services/**") } } }
40+
from { fatJarContentsStripMetadata.map { zipTree(it).matching { exclude("META-INF/jb/** META-INF/LICENSE") } } }
4141

4242
manifest.attributes["Class-Path"] = compilerManifestClassPath
4343
manifest.attributes["Main-Class"] = "org.jetbrains.kotlin.cli.jvm.K2JVMCompiler"

0 commit comments

Comments
 (0)