-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
74 lines (54 loc) · 1.69 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
plugins {
id "java"
id "com.github.johnrengelman.shadow" version "6.1.0"
}
group = "fr.thesmyler"
version = "1.0." + ('git rev-list --count HEAD'.execute().text.trim())
repositories {
mavenCentral()
maven {
name = "JitPack"
url = "https://jitpack.io/"
}
maven { //used for leveldb
name = "DaPorkchop_"
url = "https://maven.daporkchop.net/"
}
maven {
name = "PaperMC"
url = "https://papermc.io/repo/repository/maven-public/"
}
}
dependencies {
// JUnit because test are always a plus
testImplementation 'junit:junit:4.12'
// Spark to handle those fancy web requests
implementation 'com.sparkjava:spark-core:2.9.3'
// Gson and Jackson to jsonnize and dejsonnize stuff
implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.5'
implementation "com.fasterxml.jackson.core:jackson-databind:2.11.2"
implementation group: 'org.slf4j', name: 'slf4j-jdk14', version: '1.7.29'
implementation 'com.github.SmylerMC:terraminusminus:master-SNAPSHOT'
}
// Let build task generate a shadow jar
build.dependsOn shadowJar
configurations {
shade
compile.extendsFrom shade
}
// Generate jar manifest with main class
jar {
manifest {
attributes 'Main-Class': 'fr.thesmyler.smybteapi.SmyBteApi'
}
}
processResources {
// Redo when version changes
inputs.property "version", project.version
duplicatesStrategy = DuplicatesStrategy.INCLUDE
// Expand version token
from(sourceSets.main.resources.srcDirs) {
include 'fr/thesmyler/smybteapi/version.properties'
expand 'version': project.version
}
}