forked from liferay/liferay-mobile-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
90 lines (76 loc) · 1.76 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
90
ext {
tasksGroup = 'Liferay'
}
allprojects {
repositories {
mavenLocal()
mavenCentral()
}
}
apply from: 'modules.gradle'
configure(subprojects.findAll { it.name != 'ios' }) {
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'maven'
apply plugin: 'signing'
sourceCompatibility = JavaVersion.VERSION_1_6
install {
repositories.mavenInstaller {
pom.groupId = 'com.liferay.mobile'
pom.project {
name project.description
description project.description
url 'https://www.liferay.com/community/liferay-projects/liferay-mobile-sdk/overview'
licenses {
license {
name 'LGPL 2.1'
url 'http://opensource.org/licenses/lgpl-2.1.php'
distribution 'repo'
}
}
scm {
url 'https://github.com/liferay/liferay-mobile-sdk'
connection 'scm:git:git://github.com/liferay/liferay-mobile-sdk.git'
}
developers {
developer {
id 'brunofarache'
name 'Bruno Farache'
email '[email protected]'
}
}
}
}
}
task jarSources(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task jarJavadoc(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives jarSources
archives jarJavadoc
}
signing {
sign configurations.archives
}
task publish(type: Copy, dependsOn: install) {
group = tasksGroup
description = 'Prepares artifacts for publishing to Maven Central.'
from 'build/poms'
into 'build/libs'
rename { String name ->
name.replace('pom-default.xml', "${archivesBaseName}-${version}.pom")
}
doLast {
signing.sign file("build/libs/${archivesBaseName}-${version}.pom")
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '1.11'
}