Moved from Gradle to bld
This commit is contained in:
parent
886ed86479
commit
f8cf0fd338
321 changed files with 12452 additions and 1492 deletions
|
@ -1,49 +0,0 @@
|
|||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
|
||||
plugins {
|
||||
id("application")
|
||||
id("com.github.ben-manes.versions") version "0.48.0"
|
||||
kotlin("jvm") version "1.9.10"
|
||||
}
|
||||
|
||||
// ./gradlew run --args='https://erik.thauvin.net/ https://bit.ly/2PsNMAA'
|
||||
// ./gradlew runJava --args='https://erik.thauvin.net/ https://bit.ly/2PsNMAA'
|
||||
// ./gradlew runRetrieve
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
mavenCentral()
|
||||
maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots") } // only needed for SNAPSHOT
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("net.thauvin.erik:bitly-shorten:1.0.0")
|
||||
implementation("org.json:json:20231013")
|
||||
}
|
||||
|
||||
application {
|
||||
mainClass.set("com.example.BitlyExampleKt")
|
||||
}
|
||||
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_11
|
||||
targetCompatibility = JavaVersion.VERSION_11
|
||||
}
|
||||
|
||||
tasks {
|
||||
withType<KotlinCompile>().configureEach {
|
||||
kotlinOptions.jvmTarget = java.targetCompatibility.toString()
|
||||
}
|
||||
|
||||
register("runJava", JavaExec::class) {
|
||||
group = "application"
|
||||
mainClass.set("com.example.BitlySample")
|
||||
classpath = sourceSets.main.get().runtimeClasspath
|
||||
}
|
||||
|
||||
register("runRetrieve", JavaExec::class) {
|
||||
group = "application"
|
||||
mainClass.set("com.example.BitlyRetrieveKt")
|
||||
classpath = sourceSets.main.get().runtimeClasspath
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue