Use asm:6.0 in kotlinp

Some class files can't be read with asm:4.0.

Make shadowJar when assembling the project.
This commit is contained in:
Ilya Gorbunov
2018-05-20 18:37:29 +03:00
parent fcf323851e
commit 84d96d9537
+7 -2
View File
@@ -12,8 +12,7 @@ shadows.extendsFrom(configurations.getByName("compile"))
dependencies {
compile(project(":kotlinx-metadata"))
compile(project(":kotlinx-metadata-jvm"))
// We use an older version of ASM on purpose, to reduce the final application size
compile("org.ow2.asm:asm:4.0")
compile("org.ow2.asm:asm:6.0")
testCompile(commonDep("junit:junit"))
testCompile(projectTests(":generators:test-generator"))
}
@@ -38,3 +37,9 @@ val shadowJar by task<ShadowJar> {
attributes["Main-Class"] = "org.jetbrains.kotlin.kotlinp.Main"
}
}
tasks {
"assemble" {
dependsOn(shadowJar)
}
}