-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
93 lines (74 loc) · 2.09 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
plugins {
id "com.github.maiflai.scalatest" version "0.6-5-g9065d91"
}
apply plugin: "scala"
apply plugin: "eclipse"
apply plugin: "maven"
apply plugin: "signing"
apply from: "gradle/credentials.gradle"
group = "com.github.vergenzt"
version = "0.1.4"
repositories {
mavenCentral()
}
dependencies {
compile "org.scala-lang:scala-library:2.11.5"
compile "org.scala-lang.modules:scala-xml_2.11:1.0.3"
compile "org.scalaj:scalaj-http_2.11:1.1.4"
compile "com.github.nscala-time:nscala-time_2.11:1.8.0"
testCompile "org.scalatest:scalatest_2.11:2.2.4"
testCompile "org.mockito:mockito-core:1.10.19"
testCompile "com.squareup.okhttp:mockwebserver:2.3.0"
// for scalatest gradle plugin
testRuntime "org.pegdown:pegdown:1.1.0"
}
task sourcesJar(type: Jar) {
classifier = "sources"
from sourceSets.main.allSource
}
task scaladocJar(type: Jar, dependsOn: scaladoc) {
classifier = "javadoc"
from scaladoc.destinationDir
}
artifacts {
archives jar
archives sourcesJar
archives scaladocJar
}
signing {
sign configurations.archives
}
uploadArchives {
repositories.mavenDeployer {
beforeDeployment { deployment -> signing.signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: "", password: "") // set in credentials.gradle
}
pom.project {
name "rtm-scala_2.11"
packaging "jar"
description "rtm-scala is a Scala wrapper for the Remember the Milk API."
url "https://github.com/vergenzt/rtm-scala"
scm {
url "scm:git@github.com:vergenzt/rtm-scala.git"
connection "scm:git@github.com:vergenzt/rtm-scala.git"
developerConnection "scm:git@github.com:vergenzt/rtm-scala.git"
}
licenses {
license {
name "MIT License"
url "http://opensource.org/licenses/MIT"
distribution "repo"
}
}
developers {
developer {
id "vergenzt"
name "Tim Vergenz"
email "vergenzt@gmail.com"
url "https://github.com/vergenzt"
}
}
}
}
}