- Intellij IDEA
- Kotlin v 1.8.0
- Create Task and Register to build.gradle.kts like below
- Sample Task Name : runMainKotlin
- Detail Click Here
tasks.register ("runMainKotlin", JavaExec::class.java) {
description = "Compile and Run Main Kotlin"
classpath = sourceSets["main"].runtimeClasspath
// note the addition of "Kt" on the end of the class name.
// package name
mainClass.set("io.github.amirisback.MainKt")
}
- Call the function that has been created in the build.gradle.kts file
- Sample Function : runMainKotlin
- Detail Click Here
# Run main using gradle
- name: Run Main
run: ./gradlew runMainKotlin
- Open Github Action On Github
Very open to anyone, I'll write your name under this, please contribute by sending an email to me
- Mail To [email protected]
- Subject : Github _ [Github-Username-Account] _ [Language] _ [Repository-Name]
- Example : Github_amirisback_kotlin_admob-helper-implementation
Name Of Contribute
- Muhammad Faisal Amir
- Waiting List
- Waiting List
Waiting for your contribute
- Please enjoy and don't forget fork and give a star
- Don't Forget Follow My Github Account