-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
153 lines (135 loc) · 4.21 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
/*
* Copyright 2013 Domingo Suarez Torres
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
apply plugin: 'groovy'
apply plugin: 'project-report'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin: 'jacoco'
apply plugin: 'sonar-runner'
version = '0.3.0-SNAPSHOT'
group = 'sindica.to'
// Use Java 7 by default
project.sourceCompatibility = 1.7
project.targetCompatibility = 1.7
tasks.withType(Compile) {
options.encoding = 'UTF-8'
}
task wrapper(type: Wrapper) {
gradleVersion = '1.10'
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
// Set our project variables
project.ext {
dropwizardVersion = '0.7.0-rc1'
springVersion = '4.0.0.RELEASE'
}
configurations {
deployerJars
published.extendsFrom archives, meta
}
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
compile "org.springframework:spring-web:${springVersion}"
compile("io.dropwizard:dropwizard-core:${dropwizardVersion}")
testCompile 'org.codehaus.groovy:groovy-all:2.2.1'
testCompile 'junit:junit:4.11'
testCompile 'org.spockframework:spock-core:0.7-groovy-2.0'
deployerJars 'org.apache.maven.wagon:wagon-http-lightweight:2.4'
}
jacocoTestReport {
reports {
html.enabled = true
xml.enabled = true
csv.enabled = true
}
}
sonarRunner {
sonarProperties {
property 'sonar.language', 'java'
property "sonar.host.url", "http://sonar.sindica.to/"
property "sonar.jdbc.url", "jdbc:mysql://localhost/sonar?useUnicode=yes&characterEncoding=UTF-8"
property "sonar.jdbc.driverClassName", "com.mysql.jdbc.Driver"
property "sonar.jdbc.username", "sonar"
property "sonar.jdbc.password", "sonar"
property "sonar.build-stability.url", "Hudson:http://jenkins.sindica.to/job/DropwizardSpring_master_build/"
property "sonar.scm.url", "scm:git:ssh://[email protected]:SindicatoSource/dropwizard-spring.git"
property "sonar.projectKey", "sindica.to:dropwizard-spring"
property "sonar.projectName", "Spring Framework for Dropwizard"
property "sonar.projectVersion", project.version
}
}
artifacts {
archives sourcesJar
}
uploadArchives {
repositories.mavenDeployer {
repository(url: 'http://repo.sindica.to/nexus/content/repositories/public-milestones/') {
authentication(userName: "", password: "")
}
pom.project {
name 'dropwizard-spring'
packaging 'jar'
description 'Spring Framework for Dropwizard'
url 'http://sindicatosource.github.io/dropwizard-spring'
organization {
name 'Sindicato Source'
url 'http://sindica.to'
}
developers {
developer {
id 'domix'
name 'Domingo Suarez Torres'
email '[email protected]'
organization 'Sindicato Source'
organizationUrl 'http://sindica.to'
/*roles {
rol 'developer'
}*/
}
}
issueManagement {
system 'GITHUB'
url 'https://github.com/SindicatoSource/dropwizard-spring/issues'
}
ciManagement {
system 'Jenkins'
url 'http://jenkins.sindica.to/job/DropwizardSpring_master_build/'
}
scm {
connection 'scm:git:[email protected]:SindicatoSource/dropwizard-spring.git'
developerConnection 'scm:git:[email protected]:SindicatoSource/dropwizard-spring.git'
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
}
}
}
task release(dependsOn: [check, uploadArchives],
group: "Release artifact",
description: "Generates and uploads a final release to Sindicato Source Maven Repo")