-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
115 lines (100 loc) · 3.25 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
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: "eclipse"
apply plugin: "idea-utils"
archivesBaseName = "D3Backend"
group = "net.doubledoordev.backend"
version = "0.12.1"
if (System.getenv().BUILD_NUMBER != null) version += "." + System.getenv().BUILD_NUMBER
def vendor = "DoubleDoorDevelopment"
def gitURL = "github.com/DoubleDoorDevelopment/D3Backend"
sourceCompatibility = 1.8
targetCompatibility = 1.8
configurations {
compile
deployJars
}
idea {
project {
copyright {
name = "AGPL v3.0"
license = file("LICENSE-HEADER.txt")
}
runConfigurations {
Launcher {
name = "Client"
type = "Application"
mainClass = project.group + ".Main"
file("run/").mkdir()
module = project
workingDirectory = file("run/")
}
}
}
}
repositories {
mavenCentral()
maven {
name = 'sonatype-nexus'
url = 'https://oss.sonatype.org/content/groups/public/'
}
flatDir {
dirs 'libs'
}
}
//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.23"
compile group: "org.apache.logging.log4j", name: "log4j-core", version: "2.0.2"
compile group: "net.lingala.zip4j", name: "zip4j", version: "1.3.2"
compile group: "org.glassfish.grizzly", name: "grizzly-http-all", version: "2.3.17"
compile group: "com.flowpowered", name: "flow-nbt", version: "1.0.0"
compile group: "com.google.guava", name: "guava", version: "22.0"
compile group: "net.dries007.cmd", name: "CurseModpackDownloader", classifier: "all", version: "1.+"
compile group: "com.cronutils", name: "cron-utils", version: "7.0.1"
compile group: "it.sauronsoftware.cron4j", name: "cron4j", version: "2.2.5"
}
processResources {
from(sourceSets.main.resources.srcDirs) {
include '*.properties'
expand 'version': project.version, 'build': System.getenv().BUILD_NUMBER
}
}
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
}