-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
63 lines (54 loc) · 1.63 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
repositories {
mavenLocal()
maven {
name = "central"
url = "https://repo1.maven.org/maven2/"
}
maven { url 'https://jitpack.io' }
}
group 'com.extollit.gaming'
description = "An iterative A* path-finding engine designed for blocky sandbox games having entities with differing path requirements"
version '1.8.1'
apply plugin: 'java'
apply plugin: 'signing'
apply plugin: 'maven'
compileJava {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
sourceSets {
example {
java {
compileClasspath = main.compileClasspath + main.output
runtimeClasspath = main.runtimeClasspath + main.output
}
}
test {
java {
compileClasspath = test.compileClasspath + example.output
runtimeClasspath = test.runtimeClasspath + example.output
}
}
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: "org.mockito", name: "mockito-core", version: "1.10.19"
testCompile group: 'net.jqwik', name: 'jqwik', version: '1.3.0'
compile group: 'com.extollit', name: 'data-structures', version: '2.18'
}
task shipDoc(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task shipSrc(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives jar
archives shipSrc
archives shipDoc
}
if (project.hasProperty("ossrhUsername") && project.hasProperty("ossrhPassword") &&
project.hasProperty("signing.keyId") && project.hasProperty("signing.password") && project.hasProperty("signing.secretKeyRingFile"))
apply from: 'publishing.gradle'