-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
74 lines (63 loc) · 2.44 KB
/
build.gradle.kts
File metadata and controls
74 lines (63 loc) · 2.44 KB
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
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
`kotlin-dsl`
kotlin("jvm") version "2.2.0"
`java-gradle-plugin`
`maven-publish`
id("com.gradle.plugin-publish") version "1.3.0"
id("com.ncorti.ktfmt.gradle") version "0.24.0"
}
group = "io.github.philkes"
version = "1.0.4"
repositories { mavenCentral() }
dependencies {
implementation(gradleApi())
implementation(kotlin("stdlib"))
// uses commons-compress:1.12, higher version incompatible with some android projects
implementation("org.apache.logging.log4j:log4j-core:2.24.3")
implementation("com.deepl.api:deepl-java:1.10.3")
implementation("com.google.cloud:google-cloud-translate:2.77.0")
implementation("com.azure:azure-ai-translation-text:1.1.6")
implementation("com.azure:azure-core-http-okhttp:1.13.2")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.9.8")
implementation("com.openai:openai-java:4.6.1")
testImplementation(kotlin("test"))
testImplementation(gradleTestKit())
testImplementation("org.junit.jupiter:junit-jupiter-api:5.7.1")
testImplementation("io.mockk:mockk:1.13.5")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
}
tasks.test { useJUnitPlatform() }
kotlin {
jvmToolchain(8)
compilerOptions { jvmTarget.set(JvmTarget.JVM_1_8) }
}
java { withSourcesJar() }
ktfmt { kotlinLangStyle() }
gradlePlugin {
website = "https://github.com/PhilKes/auto-translation-gradle-plugin"
vcsUrl = "https://github.com/PhilKes/auto-translation-gradle-plugin"
description = "Automatically translate your strings.xml via external APIs"
plugins {
create("autoTranslateStrings") {
id = "io.github.philkes.auto-translation"
displayName = "Auto Translations"
description =
"Auto. translate your Android project (strings.xml + Fastlane) into any language using Translation providers like DeepL, Google, Azure AI, OpenAI, LibreTranslate"
tags =
listOf(
"android",
"translation",
"fastlane",
"strings.xml",
"ai",
"google",
"azure",
"deepl",
"libretranslate",
"openai",
)
implementationClass = "io.github.philkes.auto.translation.plugin.AutoTranslatePlugin"
}
}
}