-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
80 lines (66 loc) · 1.8 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 {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.gradle.publish:plugin-publish-plugin:0.9.10"
}
}
apply plugin: "com.gradle.plugin-publish"
apply plugin: 'groovy'
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'distribution'
group 'com.github.likandr'
version '1.3'
sourceCompatibility = 1.8
repositories {
jcenter()
mavenCentral()
}
dependencies {
compile gradleApi()
compile localGroovy()
testCompile(group: 'org.spockframework', name: 'spock-core', version: '1.0-groovy-2.4') {
exclude group: 'org.codehaus.groovy', module: 'groovy-all'
}
testCompile group: 'junit', name: 'junit', version: '4.12'
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: uri('artifacts'))
}
}
}
pluginBundle {
website = 'https://likandr.github.io/lokalise-plugin/'
vcsUrl = 'https://github.com/Likandr/lokalise-plugin'
description = 'This is a gradle plugin for android. Refresh (upload and download) localization files using lokalise.co'
tags = ['android', 'lokalise-plugin', 'lokalise']
plugins {
LokalisePlugin {
id = 'com.likandr.lokalise'
displayName = 'Gradle lokalise-plugin'
}
}
mavenCoordinates {
groupId = "com.github.likandr"
artifactId = "lokalise-plugin"
version = "1.3"
}
}
def distributionsCopySpec = copySpec {
into("$name-$version") {
into('libs') {
from 'distribution'
include '*.jar'
}
from 'README.md'
}
}
task fatJarZip(type: Zip) { with distributionsCopySpec }
task fatJarTar(type: Tar) { with distributionsCopySpec }
uploadArchives.dependsOn(fatJarZip, fatJarTar)