-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
44 lines (36 loc) · 971 Bytes
/
Copy pathbuild.gradle
File metadata and controls
44 lines (36 loc) · 971 Bytes
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
plugins {
id('scala')
id('com.github.johnrengelman.shadow') version '8.1.1'
}
group = 'com.newsrx'
version = '0.1.0'
repositories {
mavenCentral()
maven { url 'https://oss.sonatype.org/content/repositories/releases/' }
}
dependencies {
implementation 'org.scala-lang:scala-library:2.13.18'
compileOnly 'io.github.gitbucket:gitbucket_2.13:4.46.0'
compileOnly 'org.scalatra:scalatra-javax_2.13:3.1.2'
compileOnly 'io.github.json4s:json4s-jackson_2.13:4.1.0'
compileOnly 'javax.servlet:javax.servlet-api:3.1.0'
testImplementation 'org.scalatest:scalatest_2.13:3.2.18'
}
scala {
scalaVersion = '2.13.18'
}
sourceSets {
main {
scala {
srcDirs = ['src/main/scala', 'src/main/java']
}
java {
srcDirs = [] // Java sources are compiled by Scala compiler
}
}
}
shadowJar {
archiveClassifier.set('')
mergeServiceFiles()
}
tasks.build.dependsOn shadowJar