-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
92 lines (79 loc) · 1.83 KB
/
Copy pathbuild.gradle
File metadata and controls
92 lines (79 loc) · 1.83 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
plugins {
id 'scala'
id "com.palantir.docker" version "0.36.0"
id 'io.github.cosmicsilence.scalafix' version '0.2.4'
}
configurations {
all*.exclude group: 'org.bytedeco', module: 'javacpp-presets'
}
apply from: "$projectDir/gradle/dependencies.gradle"
repositories {
mavenCentral()
}
dependencies {
implementation(
[ libs.scala
, libs.scalaReflect
, libs.scalaParser
, libs.scalaXML
, libs.scalaCollectionsCompat
, libs.pekko_actor
, libs.pekko_cluster
, libs.pekko_http
, libs.pekko_http_xml
, libs.pekko_slf4j
, libs.pekko_stream
, libs.pekko_stream_json
, libs.pekko_connectors_s3
, libs.slf4j
, libs.logback_classic
, libs.logback_core
, libs.pprint
, libs.apache_commons_io
, libs.awsSdkServicesSts
, libs.sprayJSON
]
)
scalafix "org.scala-lang:scala-rewrites_2.13:+"
}
tasks.withType(ScalaCompile) {
}
sourceSets {
main {
scala.srcDir "source/scala"
compileClasspath += files("source/scala", "build/classes/macros")
resources.srcDirs = files("source/resources")
}
}
compileScala {
}
tasks.withType(ScalaCompile).configureEach {
scalaCompileOptions.additionalParameters = ['-Wunused']
}
jar {
manifest {
attributes(
[ "Implementation-Title" : "mbta-vehicle-positions"
, "Implementation-Version" : "2.0"
, "Implementation-Vendor" : "github://Deepgrant"
]
)
}
}
task printClasspath {
doLast {
configurations.runtimeClasspath.each { println it }
}
}
task run(type: JavaExec, dependsOn: classes) {
main = 'mbta.actor.MBTAMain'
classpath sourceSets.main.runtimeClasspath
classpath configurations.runtimeClasspath
}
docker {
name "mbta-vehicle-positions:2.0"
dockerfile file('Dockerfile')
files tasks.jar, 'docker-run.sh'
copySpec.from(configurations.runtimeClasspath)
pull true
}