-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathbuild.gradle
More file actions
63 lines (49 loc) · 1.66 KB
/
build.gradle
File metadata and controls
63 lines (49 loc) · 1.66 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
buildscript {
repositories {
mavenCentral()
}
}
plugins {
id 'java'
}
sourceCompatibility = JavaVersion.VERSION_14
targetCompatibility = JavaVersion.VERSION_14
group 'com.bookmap.api.rpc'
version '0.1.5'
repositories {
mavenCentral()
maven {
url "https://maven.bookmap.com/maven2/releases/"
}
}
def lowerBookmapVersion = '7.5.0.16'
def baseName = "serverside-rpc"
configurations {
implementation.canBeResolved = true
fatJarLib
fatJarLib.transitive = true
implementation.extendsFrom fatJarLib
}
dependencies {
implementation group: 'com.bookmap.api', name: 'api-core', version: lowerBookmapVersion
implementation group: 'com.bookmap.api', name: 'api-simplified', version: lowerBookmapVersion
implementation files("libs/broadcasting-api-0.57.jar")
compileOnly group: 'com.google.code.gson', name: 'gson', version: '2.8.9'
fatJarLib group: 'com.google.dagger', name: 'dagger', version: '2.42'
annotationProcessor group: 'com.google.dagger', name: 'dagger-compiler', version: '2.42'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.8.1'
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.8.1'
testImplementation group: 'org.mockito', name: 'mockito-core', version: '4.7.0'
testImplementation group: 'com.google.code.gson', name: 'gson', version: '2.8.9'
}
test {
useJUnitPlatform()
workingDir = "build/resources/test"
}
jar {
from {
configurations.fatJarLib.collect { it.isDirectory() ? it : zipTree(it) }
}
duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
archiveFileName = "${baseName}.jar"
}