Added examples
This commit is contained in:
parent
8cb6ac4c0b
commit
3517acf544
10 changed files with 139 additions and 33 deletions
31
examples/build.gradle.kts
Normal file
31
examples/build.gradle.kts
Normal file
|
@ -0,0 +1,31 @@
|
|||
plugins {
|
||||
id("org.jetbrains.kotlin.jvm") version "1.5.0"
|
||||
id("com.github.ben-manes.versions") version "0.38.0"
|
||||
application
|
||||
}
|
||||
|
||||
// ./gradlew run
|
||||
// ./gradlew runJava"
|
||||
|
||||
defaultTasks(ApplicationPlugin.TASK_RUN_NAME)
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("net.thauvin.erik:cryptoprice:0.9.0-SNAPSHOT")
|
||||
}
|
||||
|
||||
application {
|
||||
mainClassName = "com.example.CryptoPriceExampleKt"
|
||||
}
|
||||
|
||||
tasks {
|
||||
register<JavaExec>("runJava") {
|
||||
group = "application"
|
||||
main = "com.example.CryptoPriceSample"
|
||||
classpath = sourceSets["main"].runtimeClasspath
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue