File tree Expand file tree Collapse file tree 4 files changed +30
-17
lines changed
Expand file tree Collapse file tree 4 files changed +30
-17
lines changed Original file line number Diff line number Diff line change 1- name : CI
2-
3- env :
4- # The name of the main module repository
5- main_project_module : app
6-
1+ name : Main CI
72on :
83 # Triggers the workflow on push or pull request events but only for default and protected branches
9- push :
10- branches : [ master ]
11- pull_request :
12- branches : [ master ]
134
145 workflow_dispatch :
156 # The workflow will be dispatched to the default queue
4637
4738 # Run Build Project
4839 - name : Build gradle project
49- run : ./gradlew build
40+ run : ./gradlew build
41+
42+ # # Run Build API
43+ # - name: Run Main
44+ # run: ./gradlew run-build-api
45+ #
46+ # - name: Sync Repository
47+ # run: |
48+ # git config user.name 'amirisback'
49+ # git config user.email '[email protected] '50+ # git pull
51+ # git commit -am "Update Server API"
52+ # git push
Original file line number Diff line number Diff line change 11plugins {
2- kotlin(" jvm" ) version " 2.0.0 "
2+ kotlin(" jvm" ) version " 2.0.21 "
33}
44
55group = " io.github.amirisback"
@@ -16,6 +16,15 @@ dependencies {
1616tasks.test {
1717 useJUnitPlatform()
1818}
19+
1920kotlin {
20- jvmToolchain(21 )
21+ jvmToolchain(17 )
22+ }
23+
24+ tasks.register (" runMainKotlin" , JavaExec ::class .java) {
25+ description = " Compile and Run Main Kotlin"
26+ classpath = sourceSets[" main" ].runtimeClasspath
27+ // note the addition of "Kt" on the end of the class name.
28+
29+ mainClass.set(" io.github.amirisback.MainKt" )
2130}
Original file line number Diff line number Diff line change 1- # Sat Nov 09 16:41:10 WIB 2024
21distributionBase =GRADLE_USER_HOME
32distributionPath =wrapper/dists
4- distributionUrl =https\://services.gradle.org/distributions/gradle-8.5-bin.zip
3+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.9-bin.zip
4+ networkTimeout =10000
5+ validateDistributionUrl =true
56zipStoreBase =GRADLE_USER_HOME
6- zipStorePath =wrapper/dists
7+ zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ fun main() {
66 val name = " Kotlin"
77 // TIP Press <shortcut actionId="ShowIntentionActions"/> with your caret at the highlighted text
88 // to see how IntelliJ IDEA suggests fixing it.
9- println (" Hello, " + name + " !" )
9+ println (" Hello, $ name !" )
1010
1111 for (i in 1 .. 5 ) {
1212 // TIP Press <shortcut actionId="Debug"/> to start debugging your code. We have set one <icon src="AllIcons.Debugger.Db_set_breakpoint"/> breakpoint
You can’t perform that action at this time.
0 commit comments