-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
142 lines (124 loc) · 4.75 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
fun properties(key: String) = providers.gradleProperty(key).get()
plugins {
id("java") // Java support
kotlin("jvm") version "2.0.20"
}
group = "com.simiacryptus"
version = properties("pluginVersion")
repositories {
mavenCentral()
maven(url = "https://www.jetbrains.com/intellij-repository/releases")
maven(url = "https://packages.jetbrains.team/maven/p/ij/intellij-dependencies")
maven(url = "https://packages.jetbrains.team/maven/p/iuia/qa-automation-maven")
}
val slf4j_version = "2.0.16"
val remoterobot_version = "0.11.23"
val jackson_version = "2.17.2"
val logback_version = "1.5.13"
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3")
implementation(group = "com.simiacryptus", name = "jo-penai", version = "1.1.13")
implementation("software.amazon.awssdk:bedrock:2.25.7")
implementation("software.amazon.awssdk:bedrockruntime:2.25.7")
implementation(group = "org.apache.httpcomponents.client5", name = "httpclient5", version = "5.3.1") {
exclude(group = "org.slf4j", module = "slf4j-api")
}
implementation("org.jsoup:jsoup:1.18.1")
implementation("ch.randelshofer:org.monte.media.screenrecorder:17.1")
implementation("ch.randelshofer:org.monte.media:17.1")
implementation("ch.randelshofer:org.monte.media.swing:17.1")
implementation("org.seleniumhq.selenium:selenium-java:4.27.0") {
exclude(group = "com.intellij.remoterobot", module = "remote-robot")
}
implementation("io.github.bonigarcia:webdrivermanager:5.9.2")
implementation(group = "com.intellij.remoterobot", name = "remote-fixtures", version = remoterobot_version)
implementation(group = "com.intellij.remoterobot", name = "remote-robot", version = remoterobot_version)
implementation(group = "ch.qos.logback", name = "logback-classic", version = logback_version)
implementation(group = "ch.qos.logback", name = "logback-core", version = logback_version)
implementation(group = "org.slf4j", name = "slf4j-api", version = slf4j_version)
implementation(group = "com.fasterxml.jackson.core", name = "jackson-databind", version = jackson_version)
implementation(group = "com.fasterxml.jackson.core", name = "jackson-annotations", version = jackson_version)
implementation(group = "com.fasterxml.jackson.module", name = "jackson-module-kotlin", version = jackson_version)
implementation(group = "com.squareup.okhttp3", name = "okhttp", version = "4.12.0")
implementation(platform("org.junit:junit-bom:5.10.1"))
implementation("org.junit.jupiter:junit-jupiter")
implementation("org.junit.jupiter:junit-jupiter-api:5.7.0")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.7.0")
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = "17"
freeCompilerArgs = listOf("-Xjsr305=strict")
}
}
tasks.test {
useJUnitPlatform()
}
sourceSets {
main {
kotlin {
srcDirs("src/main/kotlin")
}
}
}
java {
sourceSets {
main {
java {
srcDirs("src/main/java")
}
}
test {
java {
srcDirs("src/test/java")
}
}
}
}
tasks {
compileKotlin {
destinationDirectory.set(compileJava.get().destinationDirectory)
doLast {
val servicesDir = File(destinationDirectory.get().asFile, "META-INF/services")
servicesDir.mkdirs()
File(servicesDir, "org.monte.media.av.MovieWriterSpi").apply {
writeText(listOf(
"org.monte.media.avi.AVIWriterSpi",
"org.monte.media.quicktime.QuickTimeWriterSpi"
).joinToString("") { "$it\n"})
}
File(servicesDir, "org.monte.media.av.CodecSpi").apply {
writeText(listOf(
"org.monte.media.avi.codec.audio.AVIPCMAudioCodecSpi",
"org.monte.media.av.codec.video.TechSmithCodecSpi"
).joinToString("") { "$it\n"})
}
}
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from(sourceSets.main.get().output)
}
test {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
classpath = sourceSets.test.get().runtimeClasspath
}
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
compilerOptions {
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17)
javaParameters.set(true)
}
}
wrapper {
gradleVersion = properties("gradleVersion")
}
}