Check there's no direct usages of asm (org.objectweb.asm) library in project
Such usages should be replaced with asm from idea (org.jetbrains.org.objectweb.asm)
This commit is contained in:
@@ -30,6 +30,7 @@ class CodeConformanceTest : TestCase() {
|
|||||||
"android.tests.dependencies",
|
"android.tests.dependencies",
|
||||||
"core/reflection.jvm/src/kotlin/reflect/jvm/internal/pcollections",
|
"core/reflection.jvm/src/kotlin/reflect/jvm/internal/pcollections",
|
||||||
"libraries/tools/kotlin-reflect/target/copied-sources",
|
"libraries/tools/kotlin-reflect/target/copied-sources",
|
||||||
|
"libraries/tools/binary-compatibility-validator/src/main/kotlin/org.jetbrains.kotlin.tools",
|
||||||
"dependencies",
|
"dependencies",
|
||||||
"js/js.translator/qunit/qunit.js",
|
"js/js.translator/qunit/qunit.js",
|
||||||
"libraries/tools/kotlin-js-tests/src/test/web/qunit.js",
|
"libraries/tools/kotlin-js-tests/src/test/web/qunit.js",
|
||||||
@@ -96,7 +97,14 @@ class CodeConformanceTest : TestCase() {
|
|||||||
{ source ->
|
{ source ->
|
||||||
"kotlin.reflect.jvm.internal.impl" in source
|
"kotlin.reflect.jvm.internal.impl" in source
|
||||||
}
|
}
|
||||||
)
|
),
|
||||||
|
TestData(
|
||||||
|
"%d source files contain references to package org.objectweb.asm.\n" +
|
||||||
|
"Package org.jetbrains.org.objectweb.asm should be used instead to avoid troubles with different asm versions in classpath. " +
|
||||||
|
"Please consider changing the package in these files:\n%s",
|
||||||
|
{ source ->
|
||||||
|
" org.objectweb.asm" in source
|
||||||
|
})
|
||||||
)
|
)
|
||||||
|
|
||||||
for (sourceFile in FileUtil.findFilesByMask(SOURCES_FILE_PATTERN, File("."))) {
|
for (sourceFile in FileUtil.findFilesByMask(SOURCES_FILE_PATTERN, File("."))) {
|
||||||
|
|||||||
Reference in New Issue
Block a user