https://github.com/frogobox/run-command-windows-using-kotlin
Run Command Windows Using Kotlin
https://github.com/frogobox/run-command-windows-using-kotlin
Last synced: 10 months ago
JSON representation
Run Command Windows Using Kotlin
- Host: GitHub
- URL: https://github.com/frogobox/run-command-windows-using-kotlin
- Owner: frogobox
- Created: 2025-01-06T08:32:58.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-01-06T10:33:36.000Z (over 1 year ago)
- Last Synced: 2025-03-01T00:53:06.448Z (over 1 year ago)
- Language: Kotlin
- Size: 274 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
## Compile and Run Kotlin / Java Using Github Action
[](https://github.com/amirisback/compile-run-kotlin-java-using-github-action/actions/workflows/ci.yml)
### Tools
- Intellij IDEA
- Kotlin v 1.8.0
## Screen Shot

## How To Use
### Step 1 : Create task on build.gradle.kts
- Create Task and Register to build.gradle.kts like below
- Sample Task Name : runMainKotlin
- Detail [Click Here](https://github.com/amirisback/compile-run-kotlin-java-using-github-action/blob/master/build.gradle.kts)
```kts
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")
}
```
### Step 2 : Add to CI.yml
- Call the function that has been created in the build.gradle.kts file
- Sample Function : runMainKotlin
- Detail [Click Here](https://github.com/amirisback/compile-run-kotlin-java-using-github-action/blob/master/.github/workflows/ci.yml)
```yml
# Run main using gradle
- name: Run Main
run: ./gradlew runMainKotlin
```
### Step 3 : Run On Github Action
- Open Github Action On Github

## Colaborator
Very open to anyone, I'll write your name under this, please contribute by sending an email to me
- Mail To faisalamircs@gmail.com
- 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
## Attention !!!
- Please enjoy and don't forget fork and give a star
- Don't Forget Follow My Github Account