-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
74 lines (60 loc) · 1.44 KB
/
build.gradle
File metadata and controls
74 lines (60 loc) · 1.44 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
64
65
66
67
68
69
70
71
72
73
74
plugins {
id 'application'
id 'eclipse'
id 'idea'
id 'checkstyle'
id 'net.minecrell.licenser' version '0.4.1'
}
sourceCompatibility = 1.8
version = '0.1.0'
def ENV = System.getenv()
if (ENV.BUILD_NUMBER) {
version = version + "." + "${System.getenv().BUILD_NUMBER}"
}
group = 'com.patchworkmc'
archivesBaseName = 'cursed-tool'
repositories {
mavenCentral()
maven {
name 'patchwork'
url 'https://dl.bintray.com/patchworkmc/Patchwork-Maven/'
}
}
dependencies {
implementation 'org.fusesource.jansi:jansi:1.18'
implementation 'com.fasterxml.jackson.core:jackson-core:2.10.0.pr3'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.10.0.pr3'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.10.0.pr3'
implementation 'com.patchworkmc:application-core:0.1.1'
}
checkstyle {
configFile = rootProject.file("checkstyle.xml")
toolVersion = '8.25'
}
license {
header rootProject.file('LICENSE_HEADER')
include '**/*.java'
}
application {
mainClassName 'com.patchworkmc.cursed.CursedTool'
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
def runDir = file("run")
if(!runDir.exists() && !runDir.mkdirs()) {
throw new IOException("Failed to create run directory ${runDir.getAbsolutePath()}")
}
run {
workingDir runDir
}
jar {
manifest {
attributes(
'Main-Class': 'com.patchworkmc.cursed.CursedTool'
)
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}