-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
69 lines (60 loc) · 1.91 KB
/
build.gradle
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
group 'org.openapi.client.kotlin.openai'
version '4.0.0' // since GPT-4 is available
buildscript {
ext.kotlin_version = '1.8.10'
ext.kotlin_coroutine_version = '1.6.4'
// ext.kotlintest_junit4_version = '3.4.2'
ext.retrofitVersion = '2.9.0'
ext.moshi_version = '1.14.0'
ext.okhttp4_version = '4.10.0'
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'kotlin'
apply plugin: 'idea'
apply plugin: 'maven-publish'
repositories {
mavenLocal()
mavenCentral()
}
java.sourceCompatibility = JavaVersion.VERSION_17
java.targetCompatibility = JavaVersion.VERSION_17
// kotlin target to 17
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
jvmTarget = "17"
}
}
test {
useJUnitPlatform()
}
idea {
module {
sourceDirs += file('src/main/kotlin')
testSourceDirs += file('src/test/kotlin')
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlin_coroutine_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation "com.squareup.moshi:moshi-kotlin:$moshi_version"
implementation "com.squareup.moshi:moshi-adapters:$moshi_version"
implementation "com.squareup.okhttp3:logging-interceptor:$okhttp4_version"
implementation "com.squareup.retrofit2:retrofit:$retrofitVersion"
implementation "com.squareup.retrofit2:converter-moshi:$retrofitVersion"
implementation "com.squareup.retrofit2:converter-scalars:$retrofitVersion"
// testImplementation "io.kotlintest:kotlintest-runner-junit5:$kotlintest_junit4_version"
}