Functioning hello world and build system
This commit is contained in:
parent
ff79c2525a
commit
cdb4d0fdac
6 changed files with 39 additions and 44 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -9,6 +9,7 @@ build/
|
|||
.idea/jarRepositories.xml
|
||||
.idea/compiler.xml
|
||||
.idea/libraries/
|
||||
.idea/sonarlint/
|
||||
*.iws
|
||||
*.iml
|
||||
*.ipr
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
|
||||
@
|
||||
build.gradle.kts,d/b/dbcff70658daf80b53ce624f6adcaa529df5ed8d
|
||||
7
|
||||
TODO.md,b/5/b5b096f958319b1c7782c800c78c4c358a58d709
|
||||
w
|
||||
G.idea/sonarlint/issuestore/d/b/dbcff70658daf80b53ce624f6adcaa529df5ed8d,5/9/597ee72a8e9f089a0f26608d0d77229bc4510a37
|
||||
7
|
||||
gradlew,5/b/5bbfa66edb4db3c7c33c5181f43510990d3307f9
|
||||
;
|
||||
gradlew.bat,2/a/2a45a911a8f1836b0b6c5b758962572012d8f8c3
|
||||
X
|
||||
(gradle/wrapper/gradle-wrapper.properties,f/b/fbe448ebfc3eb2d4e308f6b8b043666f5b57235e
|
||||
C
|
||||
settings.gradle.kts,7/4/749edfcc96398253e5b3416184e95c46621da850
|
||||
:
|
||||
|
||||
.gitignore,a/5/a5cc2925ca8258af241be7e5b0381edf30266302
|
||||
<EFBFBD>
|
||||
Q.idea/sonarlint/securityhotspotstore/d/b/dbcff70658daf80b53ce624f6adcaa529df5ed8d,e/c/ec4317fc3093e8c354ef226260d7fd566c3957fb
|
||||
A
|
||||
gradle.properties,2/a/2afbb999f001938c88fa43fc2ef52abf0f8213e4
|
|
@ -1,22 +0,0 @@
|
|||
|
||||
@
|
||||
build.gradle.kts,d/b/dbcff70658daf80b53ce624f6adcaa529df5ed8d
|
||||
7
|
||||
TODO.md,b/5/b5b096f958319b1c7782c800c78c4c358a58d709
|
||||
w
|
||||
G.idea/sonarlint/issuestore/d/b/dbcff70658daf80b53ce624f6adcaa529df5ed8d,5/9/597ee72a8e9f089a0f26608d0d77229bc4510a37
|
||||
7
|
||||
gradlew,5/b/5bbfa66edb4db3c7c33c5181f43510990d3307f9
|
||||
;
|
||||
gradlew.bat,2/a/2a45a911a8f1836b0b6c5b758962572012d8f8c3
|
||||
X
|
||||
(gradle/wrapper/gradle-wrapper.properties,f/b/fbe448ebfc3eb2d4e308f6b8b043666f5b57235e
|
||||
C
|
||||
settings.gradle.kts,7/4/749edfcc96398253e5b3416184e95c46621da850
|
||||
:
|
||||
|
||||
.gitignore,a/5/a5cc2925ca8258af241be7e5b0381edf30266302
|
||||
<EFBFBD>
|
||||
Q.idea/sonarlint/securityhotspotstore/d/b/dbcff70658daf80b53ce624f6adcaa529df5ed8d,e/c/ec4317fc3093e8c354ef226260d7fd566c3957fb
|
||||
A
|
||||
gradle.properties,2/a/2afbb999f001938c88fa43fc2ef52abf0f8213e4
|
|
@ -1,5 +1,9 @@
|
|||
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||||
import groovy.xml.dom.DOMCategory.attributes
|
||||
|
||||
plugins {
|
||||
kotlin("jvm") version "1.9.22"
|
||||
id("com.github.johnrengelman.shadow") version "8.1.1"
|
||||
}
|
||||
|
||||
group = "org.bm00"
|
||||
|
@ -11,11 +15,37 @@ repositories {
|
|||
|
||||
dependencies {
|
||||
testImplementation("org.jetbrains.kotlin:kotlin-test")
|
||||
|
||||
implementation("com.gitlab.klamonte:jexer:1.6.0")
|
||||
|
||||
implementation("dev.dirs:directories:26")
|
||||
}
|
||||
|
||||
tasks.test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
tasks {
|
||||
build {
|
||||
dependsOn(shadowJar)
|
||||
}
|
||||
}
|
||||
|
||||
tasks {
|
||||
named<ShadowJar>("shadowJar") {
|
||||
mergeServiceFiles()
|
||||
manifest {
|
||||
attributes(mapOf("Main-Class" to "org.bm00.data-accessor.MainKt"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
val jar by tasks.getting(Jar::class) {
|
||||
manifest {
|
||||
attributes["Main-Class"] = "org.bm00.data-accessor.MainKt"
|
||||
}
|
||||
}
|
||||
|
||||
kotlin {
|
||||
jvmToolchain(19)
|
||||
}
|
8
src/main/kotlin/org/bm00/data-accessor/main.kt
Normal file
8
src/main/kotlin/org/bm00/data-accessor/main.kt
Normal file
|
@ -0,0 +1,8 @@
|
|||
package org.bm00.`data-accessor`
|
||||
|
||||
import java.util.*
|
||||
|
||||
@Throws(Exception::class)
|
||||
fun main(args: Array<String>) {
|
||||
Runtime.getRuntime().exec("touch /home/limepot/Desktop/hello.world")
|
||||
}
|
Loading…
Reference in a new issue