Imran/Malic
10/01/2019, 9:38 AMXavier F. Gouchet
10/01/2019, 9:40 AMImran/Malic
10/01/2019, 9:45 AMjar {
// Embed compiler plugin in jar
from configurations.named("compileClasspath").get().find { it.name.startsWith("compiler-plugin") }
manifest {
attributes["Specification-Title"] = project.name
attributes["Specification-Version"] = project.version
attributes["Implementation-Title"] = pluginId
attributes["Implementation-Version"] = project.version
}
}
Now how can I add that jar to the modules dependency programmaticallyMalvin Sutanto
10/03/2019, 1:32 AMproject.dependencies {
add("configurationName", files("path/to.jar"))
}
Imran/Malic
10/03/2019, 1:54 PMcompileKotlin
Malvin Sutanto
10/04/2019, 1:38 AMfreeCompilerArgs
?
I think you can try:
project.tasks.withType(KotlinCompile::class).configureEach {
kotlinOptions {
freeCompilerArgs = listOf()
}
}
Imran/Malic
10/04/2019, 5:04 AMSource entry is not a Kotlin file
, but if I write the same line in the build gradle it passes fine as expectedImran/Malic
10/04/2019, 5:04 AMImran/Malic
10/04/2019, 1:29 PM