-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
110 lines (81 loc) · 3.58 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
import com.github.jengelman.gradle.plugins.shadow.transformers.AppendingTransformer
plugins {
id 'groovy' // groovy support
id 'java' // java support
id 'scala' // scala support
id 'com.diffplug.spotless' version '5.12.5'//code format
id "com.github.johnrengelman.shadow" version "7.0.0" // fat jar
id 'application'
}
application {
mainClassName = 'info.coverified.tagging.main.Main'
}
ext {
scalaVersion = '2.13'
scalaBinaryVersion = '2.13.6'
javaVersion = JavaVersion.VERSION_1_8
slf4jVersion = '1.7.26'
scriptsLocation = 'gradle' + File.separator + 'scripts' + File.separator //location of script plugins
}
apply from: scriptsLocation + 'spotless.gradle'
apply from: scriptsLocation + 'prepareEnv.gradle'
apply from: scriptsLocation + 'deploy.gradle'
group = 'info.coverified'
version = '0.1-SNAPSHOT'
description = 'Tagging Service'
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
configurations {
scalaCompilerPlugin
}
repositories {
mavenCentral() //searches in bintray's repository 'jCenter', which contains Maven Central
maven { url 'https://jitpack.io' }
}
dependencies {
// coverified dependencies
implementation 'com.github.coverified:graphQLConnector:b9e2889dad'
// sentry logging
implementation 'io.sentry:sentry-log4j2:5.0.1'
// CORE akka //
implementation platform("com.typesafe.akka:akka-bom_${scalaVersion}:2.6.15")
implementation "com.typesafe.akka:akka-actor-typed_${scalaVersion}"
implementation "com.typesafe.akka:akka-stream_${scalaVersion}"
testImplementation "com.typesafe.akka:akka-actor-testkit-typed_${scalaVersion}"
// cmd args parser //
implementation "com.github.scopt:scopt_${scalaVersion}:4.0.0"
// http request
implementation "org.scalaj:scalaj-http_${scalaVersion}:2.4.2"
// https://mvnrepository.com/artifact/io.circe/circe-generic
implementation group: 'io.circe', name: 'circe-generic_2.13', version: '0.13.0'
// https://mvnrepository.com/artifact/net.liftweb/lift-json
implementation group: 'net.liftweb', name: 'lift-json_2.13', version: '3.4.3'
// https://mvnrepository.com/artifact/net.ruippeixotog/scala-scraper
implementation group: 'net.ruippeixotog', name: 'scala-scraper_2.13', version: '2.2.0'
// https://mvnrepository.com/artifact/com.github.ghostdogpr/caliban
implementation group: 'com.github.ghostdogpr', name: "caliban_${scalaVersion}", version: '0.9.5'
// https://mvnrepository.com/artifact/com.github.ghostdogpr/caliban-client
implementation group: 'com.github.ghostdogpr', name: "caliban-client_${scalaVersion}", version: '0.9.5'
// https://mvnrepository.com/artifact/com.github.ghostdogpr/caliban-tools
implementation group: 'com.github.ghostdogpr', name: "caliban-tools_${scalaVersion}", version: '0.9.5'
// language detection
implementation 'com.github.pemistahl:lingua:1.1.0'
// logging
implementation "org.slf4j:slf4j-api:${slf4jVersion}" // slf4j wrapper
implementation 'com.lmax:disruptor:3.4.2' // async logging
implementation 'org.apache.logging.log4j:log4j-api:2.14.0' // log4j
implementation 'org.apache.logging.log4j:log4j-core:2.14.0' // log4j
implementation 'org.apache.logging.log4j:log4j-slf4j-impl:2.14.0' // log4j -> slf4j
implementation "com.typesafe.scala-logging:scala-logging_${scalaVersion}:3.9.2" // akka scala logging
implementation 'com.typesafe.scala-logging:scala-logging-slf4j_2.11:2.1.2'// scala logging
implementation "org.slf4j:log4j-over-slf4j:${slf4jVersion}" // slf4j -> log4j
// CORE Scala //
implementation "org.scala-lang:scala-library:${scalaBinaryVersion}"
}
shadowJar {
transform(AppendingTransformer) {
resource = 'reference.conf'
}
with jar
zip64 = true
}