-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
76 lines (63 loc) · 1.2 KB
/
build.gradle
File metadata and controls
76 lines (63 loc) · 1.2 KB
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
apply plugin: 'java'
apply plugin: 'maven'
sourceCompatibility = 1.6
group = 'com.gimmie'
version = '1.0.3'
configurations {
releaseMaven
}
repositories {
mavenCentral()
}
dependencies {
compile 'org.json:json:20140107'
compile 'org.scribe:scribe:1.3+'
compile 'org.apache.httpcomponents:httpclient:4.3+'
compile 'org.apache.httpcomponents:httpcore:4.3+'
releaseMaven "org.apache.maven.wagon:wagon-ssh:2.2"
}
sourceSets {
main {
java {
srcDir 'src'
}
resources {
srcDir 'resources'
}
}
test {
java {
srcDir 'test'
}
resources {
srcDir 'test/resources'
}
}
}
task release (dependsOn: 'build') << {
copy {
from configurations.compile.files
into "$buildDir/releases"
}
copy {
from "$buildDir/libs"
into "$buildDir/releases"
}
}
task sourcesJar (type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
defaultTasks "release"
artifacts {
archives sourcesJar
archives jar
}
uploadArchives {
repositories.mavenDeployer {
configuration = configurations.releaseMaven
repository(url: releaseUrl) {
authentication userName: username, password: password
}
}
}