-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
68 lines (59 loc) · 2.11 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.7.20"
id("com.gradle.plugin-publish") version "1.1.0"
`kotlin-dsl` // gradle kotlin dsl, syntax allows gradle to manage version for compatibility
signing // gradle signing plugin
groovy // for testing with Spock
}
repositories {
google()
gradlePluginPortal()
}
dependencies {
implementation("com.android.tools.build:gradle:7.4.0")
implementation("org.redundent:kotlin-xml-builder:1.8.0") // todo: 1.9.0
implementation("com.squareup:kotlinpoet:1.12.0") { // todo: 1.17.0
exclude(module = "kotlin-reflect")
}
testImplementation(gradleTestKit())
testImplementation(platform("org.spockframework:spock-bom:2.3-groovy-3.0"))
testImplementation("org.spockframework:spock-core")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions.apiVersion = "1.7"
kotlinOptions.jvmTarget = "11" // todo: test java 8 for broader backwards compatibility
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
group = "com.mermake"
version = "0.1.1"
gradlePlugin {
plugins {
register("localeResourceGeneratorPlugin") {
id = "com.mermake.locale-resource-generator"
displayName = "Locale Resource Generator"
implementationClass = "com.mermake.locale_resource_generator.LocaleResourceGeneratorPlugin"
description =
"Automatically generates locale_config.xml for per-app language support on Android 13 and higher. " +
"Also generates map of supported locales/languages for use in a runtime language picker."
}
}
}
pluginBundle {
website = "https://adamormsby.com"
vcsUrl = "https://github.com/aormsby/android-locale-resource-generator"
tags = listOf(
"android",
"android plugin",
"android 13",
"tiramisu",
"localization",
"internationalization",
"locale config",
"language support",
"automation"
)
}