-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
65 lines (58 loc) · 1.66 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
plugins {
kotlin("jvm") version "1.8.22"
kotlin("plugin.serialization") version "1.8.22"
id("me.him188.maven-central-publish") version "1.0.0-dev-3"
}
group = "xyz.cssxsh.pixiv"
version = "1.3.1"
mavenCentralPublish {
useCentralS01()
singleDevGithubProject("cssxsh", "pixiv-client")
licenseFromGitHubProject("AGPL-3.0")
workingDir = System.getenv("PUBLICATION_TEMP")?.let { file(it).resolve(projectName) }
?: buildDir.resolve("publishing-tmp")
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
api("com.squareup:gifencoder:0.10.1")
compileOnly("org.openpnp:opencv:4.6.0-0")
compileOnly("org.seleniumhq.selenium:selenium-java:4.10.0")
testImplementation(kotlin("test"))
testImplementation("org.openpnp:opencv:4.6.0-0")
testImplementation("org.seleniumhq.selenium:selenium-java:4.10.0")
//
api(platform("io.ktor:ktor-bom:2.3.3"))
api("io.ktor:ktor-client-auth")
api("io.ktor:ktor-client-encoding")
api("io.ktor:ktor-client-okhttp")
api("io.ktor:ktor-client-content-negotiation")
api("io.ktor:ktor-serialization-kotlinx-json")
//
api(platform("com.squareup.okhttp3:okhttp-bom:4.11.0"))
api("com.squareup.okhttp3:okhttp-dnsoverhttps")
//
implementation(platform("org.slf4j:slf4j-parent:2.0.7"))
testImplementation("org.slf4j:slf4j-simple")
}
kotlin {
explicitApi()
target.compilations {
all {
kotlinOptions {
jvmTarget = "11"
}
}
}
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
tasks {
test {
useJUnitPlatform()
}
}