-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
125 lines (109 loc) · 3.89 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
println """\
Welcome to Gradle $gradle.gradleVersion - http://www.gradle.org
Gradle home is set to: $gradle.gradleHomeDir
Gradle user directory is set to: $gradle.gradleUserHomeDir
Base directory: $projectDir
Running script ${relativePath(buildFile)}
"""
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin: ws.antonov.gradle.plugins.protobuf.ProtobufPlugin
apply plugin: de.huxhorn.gradle.pgp.PgpPlugin
version = '0.2'
group = 'ws.antonov.config'
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'de.huxhorn.gradle:de.huxhorn.gradle.pgp-plugin:0.0.3'
classpath 'ws.antonov.gradle.plugins:gradle-plugin-protobuf:0.4'
}
def githubBase = 'https://github.com/valkolovos/gradle_cobertura/raw/master/ivy'
apply from: "${githubBase}/gradle_cobertura/gradle_cobertura/1.0-rc4/coberturainit.gradle"
}
// local 'lib' directory should have protobuf-format-java-1.2.jar and protobuf-java-2.3.0.jar
repositories {
mavenCentral()
//flatDir name: 'localRepository', dirs: 'lib'
}
configurations {
compile.transitive = true
testCompile {
transitive = true
extendsFrom compile
}
}
dependencies {
compile group: 'javax.servlet', name: 'servlet-api', version: '2.5'
compile group: 'com.google.protobuf', name: 'protobuf-java', version: '2.4.1'
compile group: 'com.googlecode.protobuf-java-format', name: 'protobuf-java-format', version: '1.2'
compile group: 'org.springframework', name: 'spring-core', version: '3.0.2.RELEASE'
compile group: 'org.springframework', name: 'spring-asm', version: '3.0.2.RELEASE'
compile group: 'cglib', name: 'cglib-nodep', version: '2.2.2'
compile group: 'org.springframework', name: 'spring-webmvc', version: '3.0.2.RELEASE'
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.6.1'
//compile group: 'org.apache.mina', name: 'mina-core', version: '2.0.0-M4'
compile group: 'commons-httpclient', name: 'commons-httpclient', version: '3.1'
testCompile "junit:junit:3.8.2"
testCompile group: "org.springframework", name: "spring-test", version: "3.0.2.RELEASE"
}
pgp {
secretKeyRingFile = new File("${System.properties['user.home']}/.gnupg/secring.gpg")
// keyId: specify with -PpgpKeyId=
// password: specify with -PpgpPassword=
}
task sourcesJar(type: Jar, dependsOn:classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn:javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
task listCompileJars << {
configurations.compile.each { File file -> println file.name }
}
task listTestJars << {
configurations.testCompile.each { File file -> println file.name }
}
task wrapper(type: Wrapper) {
gradleVersion = '0.9.2'
}
artifacts {
archives sourcesJar
archives javadocJar
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: "http://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: System.getProperty('nexusUser'), password: System.getProperty('nexusPassword'))
}
pom.project {
name project.name
description "Configuration abstraction framework using Google Protocol Buffers, Spring and varous formatters"
url "https://github.com/aantono/config-protobuf-spring-java"
licenses {
license {
name "Apache License, Version 2.0"
url "http://www.opensource.org/licenses/Apache-2.0"
}
}
developers {
developer {
id "aantono"
name "Alex Antonov"
email "[email protected]"
}
}
scm {
connection "scm:git:git://github.com/aantono/config-protobuf-spring-java.git"
developerConnection "scm:git:[email protected]:aantono/config-protobuf-spring-java.git"
url "https://github.com/aantono/config-protobuf-spring-java"
}
}
}
}
}