-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
115 lines (91 loc) · 3.82 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
111
112
113
114
import com.github.jengelman.gradle.plugins.shadow.transformers.AppendingTransformer
plugins {
id 'groovy' // groovy support
id 'java' // java support
id 'scala' // scala support
id 'application'
id 'com.diffplug.spotless' version '5.15.1'//code format
id 'com.github.johnrengelman.shadow' version '7.0.0' // fat jar
id 'de.undercouch.download' version '4.1.1' // downloads plugin
id 'com.github.maiflai.scalatest' version '0.31' // testing scala source code
id 'org.scoverage' version '5.0.0'
}
application {
mainClassName = 'info.coverified.extractor.RunWithAkka'
}
ext {
scalaVersion = '2.13'
scalaBinaryVersion = '2.13.6'
javaVersion = JavaVersion.VERSION_1_8
tscfgVersion = '0.9.985'
slf4jVersion = '1.7.32'
sentryVersion = '5.1.2'
scriptsLocation = 'gradle' + File.separator + 'scripts' + File.separator //location of script plugins
}
apply from: scriptsLocation + 'spotless.gradle'
apply from: scriptsLocation + 'tscfg.gradle'
apply from: scriptsLocation + 'scoverage.gradle'
apply from: scriptsLocation + 'prepareEnv.gradle'
apply from: scriptsLocation + 'deploy.gradle'
group = 'info.coverified'
version = '0.1-SNAPSHOT'
description = 'Content Extractor'
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
configurations {
scalaCompilerPlugin
}
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies {
// coverified dependencies
implementation 'com.github.coverified:graphQLConnector:5d3306ecbe'
// url helper //
implementation 'io.lemonlabs:scala-uri_2.13:3.5.0'
// cmd args parser //
implementation "com.github.scopt:scopt_$scalaVersion:4.0.0"
implementation 'net.ruippeixotog:scala-scraper_2.13:2.2.1'
implementation "com.github.ghostdogpr:caliban_$scalaVersion:0.9.5"
implementation "com.github.ghostdogpr:caliban-client_$scalaVersion:0.9.5"
implementation "com.github.ghostdogpr:caliban-tools_$scalaVersion:0.9.5"
// type safe config handling //
implementation "com.github.carueda:tscfg_$scalaVersion:$tscfgVersion"
implementation 'io.circe:circe-generic_2.13:0.13.0'
implementation 'io.circe:circe-parser_2.13:0.13.0'
// logging
implementation "org.slf4j:slf4j-api:$slf4jVersion" // slf4j wrapper
implementation 'com.lmax:disruptor:3.4.4' // async logging
implementation 'org.apache.logging.log4j:log4j-api:2.14.1' // log4j
implementation 'org.apache.logging.log4j:log4j-core:2.14.1' // log4j
implementation 'org.apache.logging.log4j:log4j-slf4j-impl:2.14.1' // log4j -> slf4j
implementation "com.typesafe.scala-logging:scala-logging_${scalaVersion}:3.9.2" // akka scala logging
// Error reporting
implementation "io.sentry:sentry:$sentryVersion"
implementation "io.sentry:sentry-log4j2:$sentryVersion"
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"
/* Testing scala */
testImplementation "org.scalatest:scalatest_$scalaVersion:3.2.8"
testImplementation 'com.vladsch.flexmark:flexmark-all:0.35.10'
implementation 'org.mockito:mockito-core:3.10.0'
implementation "org.mockito:mockito-scala-scalatest_$scalaVersion:1.16.37"
/* Testing web based APIs */
testImplementation "com.github.tomakehurst:wiremock-jre8:2.29.0"
implementation 'org.typelevel:jawn-parser_2.13:1.2.0'
// CORE akka //
implementation platform("com.typesafe.akka:akka-bom_${scalaVersion}:2.6.14")
implementation "com.typesafe.akka:akka-actor-typed_${scalaVersion}"
implementation "com.typesafe.akka:akka-stream_${scalaVersion}"
testImplementation "com.typesafe.akka:akka-actor-testkit-typed_${scalaVersion}"
}
shadowJar {
transform(AppendingTransformer) {
resource = 'reference.conf'
}
with jar
}