Fix dependency resolution during gradle project configuration
This commit is contained in:
@@ -39,4 +39,10 @@ sourceSets {
|
||||
ant.importBuild("buildLexer.xml")
|
||||
|
||||
ant.properties["builddir"] = buildDir.absolutePath
|
||||
ant.properties["flex.classpath"] = jflexPath.asPath
|
||||
|
||||
tasks.findByName("lexer")!!.apply {
|
||||
doFirst {
|
||||
ant.properties["flex.classpath"] = jflexPath.asPath
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -34,10 +34,10 @@ dependencies {
|
||||
val jar: Jar by tasks
|
||||
jar.apply {
|
||||
dependsOn(fatJarContents)
|
||||
from(compile.filter { it.extension == "jar" }.map { zipTree(it) })
|
||||
from(fatJarContents.map { zipTree(it) })
|
||||
from(fatJarContentsStripServices.map { zipTree(it) }) { exclude("META-INF/services/**") }
|
||||
from(fatJarContentsStripMetadata.map { zipTree(it) }) { exclude("META-INF/jb/** META-INF/LICENSE") }
|
||||
from { compile.filter { it.extension == "jar" }.map { zipTree(it) } }
|
||||
from { fatJarContents.map { zipTree(it) } }
|
||||
from { fatJarContentsStripServices.map { zipTree(it).matching { exclude("META-INF/services/**") } } }
|
||||
from { fatJarContentsStripMetadata.map { zipTree(it).matching { exclude("META-INF/jb/** META-INF/LICENSE") } } }
|
||||
|
||||
manifest.attributes["Class-Path"] = compilerManifestClassPath
|
||||
manifest.attributes["Main-Class"] = "org.jetbrains.kotlin.cli.jvm.K2JVMCompiler"
|
||||
|
||||
Reference in New Issue
Block a user