1
1
plugins {
2
2
id ' groovy'
3
- id ' org.jetbrains.kotlin.jvm' version ' 1.7.0 '
3
+ id ' org.jetbrains.kotlin.jvm' version ' 2.0.21 '
4
4
id " java-gradle-plugin"
5
- id " com.gradle.plugin-publish" version ' 0.21 .0'
5
+ id " com.gradle.plugin-publish" version ' 1.3 .0'
6
6
id ' maven-publish'
7
7
}
8
8
9
9
group ' com.appunite.placeholdersvalidator'
10
- version ' 1.0.2 '
10
+ version ' 1.0.3 '
11
11
12
12
repositories {
13
13
jcenter()
@@ -17,28 +17,21 @@ dependencies {
17
17
implementation localGroovy()
18
18
implementation gradleApi()
19
19
implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk8"
20
- testImplementation " org.jetbrains.kotlin:kotlin-test-junit:1.7.0 "
20
+ testImplementation " org.jetbrains.kotlin:kotlin-test-junit:2.0.21 "
21
21
testImplementation group : ' junit' , name : ' junit' , version : ' 4.12'
22
22
}
23
23
24
24
gradlePlugin {
25
- plugins {
26
- placeholdersValidator {
27
- id = ' com.appunite.placeholdersvalidator'
28
- implementationClass = ' com.appunite.placeholdersvalidator.PlaceholdersValidatorPlugin'
29
- }
30
- }
31
- }
32
-
33
- pluginBundle {
34
- description = ' Gradle plugin which validates placeholders from translated strings.xml files by comparing them with main strings.xml file.'
35
25
website = ' https://github.com/appunite/android-placeholders-validator'
36
26
vcsUrl = ' https://github.com/appunite/android-placeholders-validator'
37
- tags = [' android' , ' strings' , ' translations' , ' resources' , ' localization' , ' placeholders' , ' validation' ]
38
27
39
28
plugins {
40
29
placeholdersValidator {
30
+ id = ' com.appunite.placeholdersvalidator'
41
31
displayName = ' Placeholders Validator'
32
+ description = ' Gradle plugin which validates placeholders from translated strings.xml files by comparing them with main strings.xml file.'
33
+ implementationClass = ' com.appunite.placeholdersvalidator.PlaceholdersValidatorPlugin'
34
+ tags = [' android' , ' strings' , ' translations' , ' resources' , ' localization' , ' placeholders' , ' validation' ]
42
35
}
43
36
}
44
37
}
@@ -55,13 +48,13 @@ publishing {
55
48
}
56
49
57
50
compileKotlin {
58
- kotlinOptions. jvmTarget = " 1.8 "
51
+ kotlinOptions. jvmTarget = JavaVersion . VERSION_21
59
52
}
60
53
compileTestKotlin {
61
- kotlinOptions. jvmTarget = " 1.8 "
54
+ kotlinOptions. jvmTarget = JavaVersion . VERSION_21
62
55
}
63
56
64
57
// Workaround for https://github.com/gradle/gradle/issues/17236
65
- tasks. withType(Copy ). all {
66
- duplicatesStrategy ' exclude '
58
+ tasks. withType(Copy ). configureEach {
59
+ duplicatesStrategy = DuplicatesStrategy . EXCLUDE
67
60
}
0 commit comments