-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.gradle
92 lines (74 loc) · 2.07 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
//
// Copyright (c) 2016, Brian Frank
// Licensed under the Academic Free License version 3.0
//
// History:
// 10 Jun 2016 Matthew Giannini Creation
//
plugins {
id 'java-library'
id 'maven-publish'
id 'war'
id 'idea'
}
group = "org.projecthaystack"
version = "3.0.7"
java {
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
withJavadocJar()
withSourcesJar()
}
repositories {
mavenCentral()
}
dependencies {
providedCompile 'javax.servlet:javax.servlet-api:3.1.0'
// Use TestNG framework, also requires calling test.useTestNG() below
testImplementation 'org.testng:testng:7.1.0'
}
test {
useTestNG() {
outputDirectory = file("$project.buildDir/reports/testng")
useDefaultListeners = true
}
testLogging.showStandardStreams = true;
testLogging {
afterSuite { desc, result ->
if (!desc.parent) { // will match the outermost suite
println "Results: ${result.resultType} (${result.testCount} tests, ${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped)"
}
}
}
}
// Stupid war plugin disable jar for some reason. Force jar creation
assemble.dependsOn(jar)
publishing {
publications {
create("haystack-java", MavenPublication) {
artifactId = 'haystack-java'
from components.java
}
}
}
String findProperty(String s) { project.findProperty(s) }
//bintray {
// user = findProperty("bintrayUser")
// key = findProperty("bintrayApiKey")
// publish = true
// setPublications("haystack-java")
// pkg {
// repo = 'maven'
// name = 'haystack-java'
// userOrg = 'skyfoundry'
// vcsUrl = 'https://github.com/skyfoundry/haystack-java'
// }
//}
javadoc {
if(JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}
//gradle.taskGraph.whenReady {taskGraph ->
// if (!taskGraph.hasTask(release)) version += "-SNAPSHOT"
//}