-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
60 lines (52 loc) · 1.79 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
plugins {
id 'groovy'
id 'org.jetbrains.kotlin.jvm' version '2.0.21'
id "java-gradle-plugin"
id "com.gradle.plugin-publish" version '1.3.0'
id 'maven-publish'
}
group 'com.appunite.placeholdersvalidator'
version '1.1.0'
repositories {
jcenter()
}
dependencies {
implementation localGroovy()
implementation gradleApi()
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
testImplementation "org.jetbrains.kotlin:kotlin-test-junit:2.0.21"
testImplementation group: 'junit', name: 'junit', version: '4.12'
}
gradlePlugin {
website = 'https://github.com/appunite/android-placeholders-validator'
vcsUrl = 'https://github.com/appunite/android-placeholders-validator'
plugins {
placeholdersValidator {
id = 'com.appunite.placeholdersvalidator'
displayName = 'Placeholders Validator'
description = 'Gradle plugin which validates placeholders from translated strings.xml files by comparing them with main strings.xml file.'
implementationClass = 'com.appunite.placeholdersvalidator.PlaceholdersValidatorPlugin'
tags = ['android', 'strings', 'translations', 'resources', 'localization', 'placeholders', 'validation']
}
}
}
// For publishing to maven local. Use command ./gradlew publishToMavenLocal
publishing {
publications {
pluginPublication(MavenPublication) {
from components.java
groupId project.group
version project.version
}
}
}
compileKotlin {
kotlinOptions.jvmTarget = JavaVersion.VERSION_21
}
compileTestKotlin {
kotlinOptions.jvmTarget = JavaVersion.VERSION_21
}
// Workaround for https://github.com/gradle/gradle/issues/17236
tasks.withType(Copy).configureEach {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}