-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
80 lines (69 loc) · 2.43 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
68
69
70
71
72
73
74
75
76
77
78
79
80
buildscript {
ext.versions = [
java : '1.8',
junit : '4.12',
jackson : '2.10.3',
poi : '3.17',
jcifs : '1.3.17',
mockitoKotlin: "1.6.0",
assertJ : "3.15.0",
]
}
plugins {
id 'java-gradle-plugin' // Adds 'gradleApi()' and 'gradleTestKit()' dependencies.
id 'org.jetbrains.kotlin.jvm' version '1.3.70'
id 'com.gradle.plugin-publish' version '0.11.0'
}
group = 'com.github.gradle'
version = '2.0.0'
repositories {
jcenter()
}
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
if (details.requested.group == 'org.jetbrains.kotlin') {
details.useVersion '1.3.70'
details.because 'All Kotlin APIs should use the same version'
}
}
}
dependencies {
testImplementation "junit:junit:${versions.junit}"
testImplementation "com.nhaarman:mockito-kotlin-kt1.1:${versions.mockitoKotlin}"
testImplementation "org.assertj:assertj-core:${versions.assertJ}"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation "com.fasterxml.jackson.dataformat:jackson-dataformat-csv:${versions.jackson}"
implementation "com.fasterxml.jackson.dataformat:jackson-dataformat-xml:${versions.jackson}"
implementation "com.fasterxml.jackson.module:jackson-module-kotlin:${versions.jackson}"
implementation "org.apache.poi:poi-excelant:${versions.poi}"
implementation "jcifs:jcifs:${versions.jcifs}"
}
compileKotlin {
kotlinOptions.jvmTarget = versions.java
}
compileTestKotlin {
kotlinOptions.jvmTarget = versions.java
}
test {
reports {
junitXml.enabled = true
html.enabled = true
}
}
// -----------------------------------------------------------------------------------------
//
// Publish configuration.
//
// -----------------------------------------------------------------------------------------
pluginBundle {
website = 'https://github.com/denis-colliot/gradle-android-i18n'
vcsUrl = 'https://github.com/denis-colliot/gradle-android-i18n'
description = 'Gradle plugin for android generating localized resources from an external translations source.'
tags = ['android', 'i18n', 'localized', 'translations']
plugins {
androidI18nPlugin {
id = 'com.github.gradle.android-i18n'
displayName = 'Gradle android i18n plugin'
}
}
}