azure-gradle-plugins icon indicating copy to clipboard operation
azure-gradle-plugins copied to clipboard

Function written in kotlin not found

Open gotamafandy opened this issue 5 years ago • 0 comments

When writing function in kotlin, Azure Function entry points are always showing 0, after further checking it looks like getTargetClassUrls() only looked for compileJava tasks. Adding compileKotlin tasks will solve this issue.

Additional information if using kotlin, don't forget to change outputDir in project gradle file:

sourceSets {
	getByName("main").java.outputDir = File("$buildDir/kotlin")
}

gotamafandy avatar Jan 05 '20 10:01 gotamafandy