-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbuild.gradle
More file actions
173 lines (151 loc) · 5.45 KB
/
build.gradle
File metadata and controls
173 lines (151 loc) · 5.45 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
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
plugins {
id "com.jfrog.bintray" version "1.8.0"
id "cz.alenkacz.gradle.scalafmt" version "1.6.0"
id "org.scoverage" version "2.3.0"
}
apply plugin: 'scala'
apply plugin: 'idea'
apply plugin: 'maven'
apply plugin: 'application'
apply plugin: 'org.scoverage'
mainClassName = "com.adobe.api.platform.runtime.mesos.sample.SampleHAFramework"
repositories {
mavenCentral()
}
ext {
scalaVersion = "2.12"
akkaVersion = "2.5.3"
akkaHttpVersion = "10.0.6"
}
dependencies {
compile "org.scala-lang:scala-library:${gradle.scala.version}"
//akka
compile "com.typesafe.akka:akka-actor_${scalaVersion}:${akkaVersion}"
compile "com.typesafe.akka:akka-stream_${scalaVersion}:${akkaVersion}"
//akka-cluster
compile "com.typesafe.akka:akka-remote_${scalaVersion}:${akkaVersion}"
compile "com.typesafe.akka:akka-cluster_${scalaVersion}:${akkaVersion}"
compile "com.typesafe.akka:akka-cluster-metrics_${scalaVersion}:${akkaVersion}"
compile "com.typesafe.akka:akka-cluster-tools_${scalaVersion}:${akkaVersion}"
compile "com.typesafe.akka:akka-distributed-data_${scalaVersion}:${akkaVersion}"
//akka-http
compile "com.typesafe.akka:akka-http_${scalaVersion}:${akkaHttpVersion}"
//akka-management + akka-discovery
compile "com.lightbend.akka.management:akka-management-cluster-bootstrap_${scalaVersion}:1.0.5"
compile "com.lightbend.akka.discovery:akka-discovery-marathon-api_${scalaVersion}:1.0.5"
//for mesos
compile "org.apache.mesos:mesos:1.2.3"
//for recordIO
compile "com.lightbend.akka:akka-stream-alpakka-simple-codecs_${scalaVersion}:0.9"
//for JSON printing of protobuf
compile "com.google.protobuf:protobuf-java-util:3.6.1"
//pureconfig for...config
compile("com.github.pureconfig:pureconfig_2.12:0.11.1") {
exclude group: "org.scala-lang", module: "scala-compiler"
exclude group: "org.scala-lang", module: "scala-reflect"
}
testCompile 'org.scalatest:scalatest_2.12:3.0.1'
testCompile "com.typesafe.akka:akka-testkit_${scalaVersion}:${akkaVersion}"
testCompile 'junit:junit:4.11'
scoverage gradle.scoverage.deps
}
group = 'com.adobe.api.platform.runtime'
version = "${version}"
tasks.withType(Test) {
systemProperties(System.getProperties())
testLogging {
events "passed", "skipped", "failed"
showStandardStreams = true
exceptionFormat = 'full'
}
outputs.upToDateWhen { false } // force tests to run every time
}
scoverage {
excludedPackages = [ 'com.adobe.api.platform.runtime.mesos.sample.*' ]
}
allprojects {
repositories {
jcenter()
}
apply plugin: 'maven'
apply plugin: 'maven-publish'
}
bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
publications = ['MyPublication']
pkg {
repo = 'maven'
name = 'mesos-actor'
desc = 'An Akka based actor for creating Apache Mesos frameworks.'
userOrg = 'adobe-apiplatform'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/adobe-apiplatform/mesos-actor.git'
issueTrackerUrl = 'https://github.com/adobe-apiplatform/mesos-actor/issues'
websiteUrl = 'https://github.com/adobe-apiplatform/mesos-actor'
githubRepo = 'adobe-apiplatform/mesos-actor' //Optional Github repository
githubReleaseNotesFile = 'Readme.md' //Optional Github readme file
version {
name = project.version
desc = 'Actor library for Apache Mesos'
released = new Date()
vcsTag = project.version
gpg {
sign = true //Determines whether to GPG sign the files. The default is false
//passphrase = System.getenv('BINTRAY_GPG_PASSPHRASE') //Optional. The passphrase for GPG signing'
}
}
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
// Create the pom configuration:
def pomConfig = {
licenses {
license {
name "The Apache Software License, Version 2.0"
url "http://www.apache.org/licenses/LICENSE-2.0.txt"
distribution "repo"
}
}
developers {
developer {
id "adobeio"
name "Adobe IO"
email "adobeio@adobe.com"
}
}
scm {
url "https://github.com/adobe-apiplatform/mesos-actor"
}
}
// Create the publication with the pom configuration:
publishing {
publications {
MyPublication(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
groupId 'com.adobe.api.platform.runtime'
artifactId 'mesos-actor'
version project.version
pom.withXml {
def root = asNode()
root.appendNode('description', 'An Akka based actor for creating Apache Mesos frameworks.')
root.appendNode('name', 'Adobe API Platform Actor for Apache Mesos')
root.appendNode('url', 'https://github.com/adobe-apiplatform/mesos-actor')
root.children().last() + pomConfig
}
}
}
}