This repository has been archived by the owner on Oct 19, 2022. It is now read-only.
/
build.gradle
89 lines (76 loc) · 1.86 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
81
82
83
84
85
86
87
88
89
plugins {
id "com.jfrog.bintray" version "1.7.2"
}
apply plugin: 'java-gradle-plugin'
apply plugin: 'jacoco'
apply plugin: 'maven-publish'
group = 'de.ito.gradle.plugin'
version = '0.1.0'
repositories {
jcenter()
}
dependencies {
compile 'org.apache.commons:commons-lang3:3.4'
testCompile 'org.mockito:mockito-core:1.+'
testCompile 'junit:junit:4.12'
}
gradlePlugin {
plugins {
androidStringExtractor {
id = 'android-string-extractor'
implementationClass =
'de.ito.gradle.plugin.androidstringextractor.AndroidStringExtractorPlugin'
}
}
}
jacoco {
toolVersion '0.7.7.201606060606'
}
jacocoTestReport {
reports {
html.enabled true
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar, javadocJar
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
groupId project.group
artifactId 'android-string-extractor'
version project.version
}
}
}
bintray {
user = project.hasProperty('bintray_user') ? project.bintray_user : ''
key = project.hasProperty('bintray_key') ? project.bintray_key : ''
publications = ['mavenJava']
dryRun = false
publish = false
pkg {
repo = 'maven'
name = 'de.ito.gradle.plugin:android-string-extractor'
desc = 'Gradle plugin which automatically extracts hardcoded strings from Android layouts.'
licenses = ['MIT']
vcsUrl = 'https://github.com/it-objects/android-string-extractor-plugin.git'
labels = ['Android', 'Gradle', 'plugin', 'string', 'extraction']
publicDownloadNumbers = false
version {
name = project.version
desc = ''
}
}
}