forked from SpoonLabs/spoon-gradle-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
130 lines (110 loc) · 2.84 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
126
127
128
129
130
plugins {
id 'java-gradle-plugin'
id 'groovy'
}
configurations {
releaseJars
}
dependencies {
implementation 'com.android.tools.build:gradle:8.3.0'
implementation 'fr.inria.gforge.spoon:spoon-core:10.4.2'
testImplementation 'junit:junit:4.11'
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
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"
}
}
// Commenting out deployment for a bit until things get smoother.
// 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]'
}
]
// Commenting out javadoc and sources jars for a bit until things get smoother.
/*
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
}
*/
// Commenting out deployment for a bit until things get smoother.
/*
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'