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