-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle
125 lines (104 loc) · 2.68 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
apply plugin: 'groovy'
apply plugin: 'maven'
repositories {
mavenCentral()
maven{
url 'http://spoon.gforge.inria.fr/repositories/releases'
}
}
configurations {
releaseJars
}
dependencies {
compile gradleApi()
compile localGroovy()
compile('fr.inria.gforge.spoon:spoon-core:7.0.0')
testCompile 'junit:junit:4.11'
compile('com.android.tools.build:gradle:2.3.0')
}
jar{
from (configurations.releaseJars.collect {it.isDirectory() ? it : zipTree(it)}){
exclude 'META-INF/MANIFEST.MF'
exclude 'META-INF/*.SF'
exclude 'META-INF/*.DSA'
exclude 'META-INF/*.RSA'
}
}
test {
testLogging {
events "failed"
exceptionFormat "full"
}
}
apply from: 'nexusConfig.gradle'
ext.siteUrl = "https://github.com/SpoonLabs/spoon-gradle-plugin"
ext.commonLicense = {
name 'GNU Lesser General Public License (LGPL)'
url 'http://www.gnu.org/licenses/lgpl.html'
}
ext.devs = [
{
id 'GerardPaligot'
name 'Gerard Paligot'
email 'gerard.paligot.inria.fr'
},
{
id 'surli'
name 'Simon Urli'
email '[email protected]'
},
{
id 'monperrus'
name 'Martin Monperrus'
email '[email protected]'
},
{
id 'paillardf'
name 'Florian Paillard'
email '[email protected]'
},
{
id 'petitpre'
name 'Nicolas Petitprez'
email '[email protected]'
}
]
task javadocJar(type: Jar, dependsOn: groovydoc) {
classifier = 'javadoc'
from groovydoc.destinationDir
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.groovy.srcDirs
}
artifacts {
archives javadocJar, sourcesJar
}
uploadArchives {
repositories.mavenDeployer {
pom.project {
name 'Spoon Gradle Plugin'
artifactId 'spoon-gradle-plugin'
packaging 'jar'
description 'A gradle plugin to run spoon '
url siteUrl
scm {
connection 'scm:git:https://github.com/SpoonLabs/spoon-gradle-plugin.git'
developerConnection 'scm:git:https://github.com/SpoonLabs/spoon-gradle-plugin'
url siteUrl
}
licenses {
license commonLicense
}
organization {
name 'INRIA'
url 'http://www.inria.fr'
}
developers {
devs.collect({ developer it })
}
}
}
}
group = 'fr.inria.gforge.spoon'
version ='1.5-SNAPSHOT'