-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
49 lines (41 loc) · 1.03 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
plugins {
id 'java-library'
id 'application'
id 'com.github.johnrengelman.shadow' version '8.1.1'
}
application.mainClass = "com.satergo.stratum4ergo.CLI"
group 'com.satergo'
version '0.0.1'
repositories {
mavenCentral()
maven {
url 'https://jitpack.io'
content {
includeGroup 'com.github.Satergo'
}
}
}
dependencies {
implementation 'com.github.Satergo:JStratum:b3ad654112'
implementation 'org.bouncycastle:bcprov-jdk15on:1.70'
runtimeOnly 'org.slf4j:slf4j-simple:2.0.3'
}
processResources {
def file = new File(temporaryDir, "version.txt")
doFirst {
file.getParentFile().mkdirs()
file.write(project.version as String)
}
from file
// this file needs to exist in src/main/resources or this task won't run
// to prevent it from being included in the jar, it is excluded here
exclude "dummy.txt"
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}
// Make builds reproducible
tasks.withType(AbstractArchiveTask).configureEach {
preserveFileTimestamps = false
reproducibleFileOrder = true
}