-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
94 lines (81 loc) · 2.45 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
buildscript {
repositories{
mavenCentral()
}
dependencies {
classpath group: "com.github.rodionmoiseev.gradle.plugins", name: "idea-utils", version: "0.2"
}
}
apply plugin: "java"
apply plugin: "maven"
apply plugin: "idea"
apply plugin: "idea-utils"
archivesBaseName = "D3Backend"
group = "net.doubledoordev.backend"
version = "0.1.2"
if (System.getenv().BUILD_NUMBER != null) version += "." + System.getenv().BUILD_NUMBER
def vendor = "DoubleDoorDevelopment"
def gitURL = "github.com/DoubleDoorDevelopment/D3Backend"
sourceCompatibility = 1.7
targetCompatibility = 1.7
//noinspection GroovyAssignabilityCheck
configurations {
compile
deployJars
}
idea {
project {
copyright {
name = "Copyright"
license = file("LICENSE.txt")
}
runConfigurations {
Launcher {
name = "Client"
type = "Application"
mainClass = project.group + ".Main"
file ("run/").mkdir()
module = project
workingDirectory = file ("run/")
}
}
}
}
repositories {
mavenCentral()
}
//noinspection GroovyAssignabilityCheck
dependencies {
compile group: "com.google.code.gson", name: "gson", version: "2.2.4"
compile group: "org.apache.commons", name: "commons-io", version: "1.3.2"
compile group: "org.apache.commons", name: "commons-lang3", version: "3.3.2"
compile group: "commons-codec", name: "commons-codec", version: "1.9"
compile group: "org.freemarker", name: "freemarker", version: "2.3.20"
compile group: "org.apache.logging.log4j", name: "log4j-core", version: "2.0.2"
compile group: "net.lingala.zip4j", name:"zip4j", version: "1.3.2"
}
jar {
from "LICENSE.txt"
from configurations.runtime.asFileTree.files.collect { zipTree(it) }
manifest {
attributes (
"Created-By" : vendor,
"Specification-Title" : project.name,
"Specification-Version" : project.version,
"Specification-Vendor" : vendor,
"Implementation-Title" : project.name,
"Implementation-Version" : project.version,
"Implementation-Vendor" : vendor,
"Main-Class" : project.group + ".Main"
)
}
}
task sourcesJar(type: Jar) {
from "LICENSE.txt"
from sourceSets.main.allSource
classifier = 'src'
}
artifacts {
archives jar
archives sourcesJar
}