-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
60 lines (52 loc) · 1.29 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
plugins {
id 'eclipse'
id 'java'
id 'maven'
id 'distribution'
}
version = '1.02'
repositories {
jcenter()
}
dependencies {
}
if (JavaVersion.current().isJava8Compatible()) {
tasks.withType(Javadoc) {
options.addStringOption 'Xdoclint:none', '-quiet'
}
}
javadoc {
options {
links "http://docs.oracle.com/javase/8/docs/api/"
}
}
distributions {
main {
contents {
from('src/') { into 'src/' }
from('projects/') { into 'projects/' }
from('build/docs/javadoc/') { into 'javadoc/' }
from('build/libs/gridworld.jar')
from('build.gradle', 'settings.gradle')
}
}
}
[distZip, distTar]*.dependsOn(jar, javadoc)
task writePom << {
pom {
groupId = 'info.gridworld'
project {
name 'GridWorld'
url 'https://github.com/BoofPC/gridworld'
description 'Maven & Gradle version of http://horstmann.com/gridworld/'
inceptionYear '2005'
licenses {
license {
name 'GNU General Public License Version 2'
url 'https://gnu.org/licenses/old-licenses/gpl-2.0.txt'
distribution 'repo'
}
}
}
}.writeTo("pom.xml")
}