-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
54 lines (44 loc) · 1.11 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
apply plugin: 'java'
apply plugin: 'maven'
version = '1.0'
group = 'edu.ucar.unidata'
description = "Conway's Game of Life"
def nexusUrl = 'https://artifacts.unidata.ucar.edu/content/'
configurations {
deployerJars
}
repositories {
mavenRepo url: nexusUrl + 'groups/unidata'
mavenCentral()
}
dependencies {
compile 'net.jcip:jcip-annotations:1.0+'
testCompile 'junit:junit:4.8+'
testCompile 'org.mockito:mockito-core:1.9.0+'
deployerJars "org.apache.maven.wagon:wagon-http:2.2+"
}
test {
include 'Test*'
}
task slowTests(type: Test) {
include 'Check*'
mustRunAfter test
}
jar {
dependsOn configurations.runtime
from {configurations.runtime.collect {it.isDirectory() ? it : zipTree(it)}}
manifest {
attributes 'Main-Class': 'Controller'
}
}
uploadArchives {
repositories.mavenDeployer {
configuration = configurations.deployerJars
repository(url: nexusUrl + "repositories/unidata-releases") {
authentication(userName: nexusUsername, password: nexusPassword)
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '1.7'
}