From 84d96d953782fe34323b5e63e4ab723236f7ad42 Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Sun, 20 May 2018 18:37:29 +0300 Subject: [PATCH] Use asm:6.0 in kotlinp Some class files can't be read with asm:4.0. Make shadowJar when assembling the project. --- libraries/tools/kotlinp/build.gradle.kts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libraries/tools/kotlinp/build.gradle.kts b/libraries/tools/kotlinp/build.gradle.kts index e4d6c74bd1d..51e96ee2b23 100644 --- a/libraries/tools/kotlinp/build.gradle.kts +++ b/libraries/tools/kotlinp/build.gradle.kts @@ -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 { attributes["Main-Class"] = "org.jetbrains.kotlin.kotlinp.Main" } } + +tasks { + "assemble" { + dependsOn(shadowJar) + } +} \ No newline at end of file