Add kotlinp, a tool to print Kotlin metadata in class/module files

At the moment, it's not published anywhere, but that may change soon

 #KT-23198
This commit is contained in:
Alexander Udalov
2018-03-09 14:40:47 +01:00
parent e4062f6447
commit 4b284a4890
34 changed files with 1687 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
description = "kotlinp"
plugins {
kotlin("jvm")
}
val shadows by configurations.creating
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")
testCompile(commonDep("junit:junit"))
testCompile(projectTests(":generators:test-generator"))
}
sourceSets {
"main" { projectDefault() }
"test" { projectDefault() }
}
projectTest {
workingDir = rootDir
}
val generateTests by generator("org.jetbrains.kotlin.kotlinp.test.GenerateKotlinpTestsKt")
val shadowJar by task<ShadowJar> {
classifier = "shadow"
version = null
configurations = listOf(shadows)
from(the<JavaPluginConvention>().sourceSets.getByName("main").output)
manifest {
attributes["Main-Class"] = "org.jetbrains.kotlin.kotlinp.Main"
}
}