forked from AXDOOMER/mochadoom
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
84 lines (74 loc) · 1.67 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
import org.apache.tools.ant.filters.FixCrLfFilter
plugins {
id 'base'
id 'application'
id 'java'
id 'distribution'
}
base {
archivesName.set('mochadoom')
}
sourceSets {
main {
java {
srcDirs = ['src']
}
}
}
ext {
javaMainClass = 'mochadoom.Engine'
}
java {
withSourcesJar()
}
jar {
manifest {
attributes('Main-Class': javaMainClass)
}
}
application {
mainClass.set(javaMainClass)
}
distributions {
main {
distributionBaseName = 'mochadoom'
contents {
from jar
from sourcesJar
from 'wads'
from('scripts') {
include 'mochadoom*.sh'
filter(FixCrLfFilter, eol: FixCrLfFilter.CrLf.newInstance('unix'))
}
from('scripts') {
include 'mochadoom*.bat'
filter(FixCrLfFilter, eol: FixCrLfFilter.CrLf.newInstance('dos'))
}
from("$projectDir") {
include 'LICENSE.TXT'
include 'README.md'
include 'CONFIG.md'
include 'PROGRAMMING.md'
include '.doomrc'
include 'default.cfg'
include 'classic.cfg'
include 'modern.cfg'
include 'mochadoom.cfg'
}
into '/'
}
}
}
startScripts.enabled = false
distTar.enabled = false
distZip {
eachFile { file ->
if (file.path.matches('^(bin|lib)/.*$')) {
file.exclude()
}
}
}
tasks.withType(JavaCompile).all {
options.compilerArgs.add('-Xlint:unchecked')
options.compilerArgs.add('-Xlint:deprecation')
}