-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
43 lines (36 loc) · 1.05 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
plugins {
id("application")
id("com.github.ben-manes.versions") version "0.51.0"
kotlin("jvm") version "2.0.0"
}
repositories {
mavenLocal()
mavenCentral()
maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots") } // only needed for SNAPSHOT
}
dependencies {
implementation("net.thauvin.erik:bitly-shorten:2.0.0")
implementation("org.json:json:20240303")
}
application {
mainClass.set("com.example.BitlyExampleKt")
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
kotlin {
compilerOptions.jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_11)
}
tasks {
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
}
}