-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
126 lines (109 loc) · 3.05 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.adaptc.gradle:nexus-workflow:0.7'
}
}
apply plugin:'idea'
apply plugin:com.adaptc.gradle.nexusworkflow.NexusWorkflowPlugin
subprojects { proj ->
group = "com.adaptc.gradle"
apply plugin:'java'
apply plugin:'groovy'
apply plugin:'maven'
apply plugin:'signing'
apply plugin:'eclipse'
apply plugin:'idea'
configurations {
deployerJars
}
configurations.all {
// check for updates every build
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
repositories {
mavenCentral()
}
dependencies {
deployerJars "org.apache.maven.wagon:wagon-http:1.0-beta-2"
testCompile ("org.spockframework:spock-core:0.7-groovy-2.0") {
exclude module:"groovy-all"
}
compile gradleApi()
compile localGroovy()
}
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
jar {
manifest.mainAttributes(
"Built-By": System.properties['user.name'],
"Created-By": System.properties['java.vm.version'] + " (" + System.properties['java.vm.vendor'] + ")",
"Implementation-Title": "Adaptive Computing Gradle Plugins - " + proj.archivesBaseName,
"Implementation-Version": proj.version,
"Implementation-Vendor": 'adaptivecomputing.com')
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn:javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives jar
archives sourcesJar
archives javadocJar
}
signing {
required { !proj.version.contains("-SNAPSHOT") }
sign configurations.archives
}
uploadArchives {
repositories.mavenDeployer {
beforeDeployment { deployment -> signing.signPom(deployment) }
configuration = configurations.deployerJars
repository(url:rootProject."oss-releases.url") {
authentication(userName:rootProject."oss-releases.username", password:rootProject."oss-releases.password")
}
snapshotRepository(url:rootProject."oss-snapshots.url") {
authentication(userName:rootProject."oss-snapshots.username", password:rootProject."oss-snapshots.password")
}
pom {
project {
name proj.projectName
description proj.projectDescription
licenses {
license {
name "The Apache Software License, Version 2.0"
url "http://www.apache.org/licenses/LICENSE-2.0.txt"
distribution "repo"
}
}
url "http://github.com/adaptivecomputing/plugins-gradle"
scm {
connection "scm:git:https://github.com/adaptivecomputing/plugins-gradle.git"
developerConnection "scm:git:https://github.com/adaptivecomputing/plugins-gradle.git"
url "http://github.com/adaptivecomputing/plugins-gradle"
}
developers {
developer {
id "bsaville"
name "Brian Saville"
email "[email protected]"
organization = "Adaptive Computing, Inc."
organizationUrl "http://adaptivecomputing.com"
timezone "-7"
}
}
}
}
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.3'
jarFile = 'wrapper/wrapper.jar'
}