-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
67 lines (58 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
61
62
63
64
65
66
67
plugins {
id 'groovy'
id 'org.jetbrains.kotlin.jvm' version '1.7.0'
id "java-gradle-plugin"
id "com.gradle.plugin-publish" version '0.21.0'
id 'maven-publish'
}
group 'com.appunite.placeholdersvalidator'
version '1.0.2'
repositories {
jcenter()
}
dependencies {
implementation localGroovy()
implementation gradleApi()
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
testImplementation "org.jetbrains.kotlin:kotlin-test-junit:1.7.0"
testImplementation group: 'junit', name: 'junit', version: '4.12'
}
gradlePlugin {
plugins {
placeholdersValidator {
id = 'com.appunite.placeholdersvalidator'
implementationClass = 'com.appunite.placeholdersvalidator.PlaceholdersValidatorPlugin'
}
}
}
pluginBundle {
description = 'Gradle plugin which validates placeholders from translated strings.xml files by comparing them with main strings.xml file.'
website = 'https://github.com/appunite/android-placeholders-validator'
vcsUrl = 'https://github.com/appunite/android-placeholders-validator'
tags = ['android', 'strings', 'translations', 'resources', 'localization', 'placeholders', 'validation']
plugins {
placeholdersValidator {
displayName = 'Placeholders Validator'
}
}
}
// 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 = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
// Workaround for https://github.com/gradle/gradle/issues/17236
tasks.withType(Copy).all {
duplicatesStrategy 'exclude'
}