-
Notifications
You must be signed in to change notification settings - Fork 78
/
build.gradle
106 lines (98 loc) · 2.59 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
// Defines common configuration for each of the 3 subprojects.
subprojects {
apply plugin: "java-library"
apply plugin: "maven-publish"
group = "com.marklogic"
version = "5.0.0"
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
repositories {
mavenLocal()
mavenCentral()
maven {
url "https://bed-artifactory.bedford.progress.com:443/artifactory/ml-maven-snapshots/"
}
}
dependencies {
// Forcing Spring to use logback instead of commons-logging
testImplementation "ch.qos.logback:logback-classic:1.3.14" // Not using 1.4.x yet as it requires Java 11
testImplementation 'org.slf4j:jcl-over-slf4j:2.0.13'
testImplementation 'org.slf4j:slf4j-api:2.0.13'
}
task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier = "javadoc"
from javadoc
}
javadoc.failOnError = false
// Ignores warnings on params that don't have descriptions, which is a little too noisy
javadoc.options.addStringOption('Xdoclint:none', '-quiet')
test {
useJUnitPlatform()
testLogging {
events 'started','passed', 'skipped', 'failed'
exceptionFormat 'full'
}
}
// Publishing setup - see https://docs.gradle.org/current/userguide/publishing_setup.html .
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
mainJava(MavenPublication) {
groupId = group
artifactId = project.name
version = version
from components.java
pom {
name = "${group}:${project.name}"
description = "${projectDescription}"
packaging = "jar"
url = "https://github.com/marklogic/${project.name}"
licenses {
license {
name = "The Apache License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
developers {
developer {
id = "marklogic"
name = "MarkLogic Github Contributors"
email = "[email protected]"
organization = "MarkLogic"
organizationUrl = "https://www.marklogic.com"
}
}
scm {
url = "[email protected]:marklogic/ml-gradle.git"
connection = "scm:[email protected]:marklogic/ml-gradle.git"
developerConnection = "scm:[email protected]:marklogic/ml-gradle.git"
}
}
}
}
repositories {
maven {
if (project.hasProperty("mavenUser")) {
credentials {
username mavenUser
password mavenPassword
}
url publishUrl
allowInsecureProtocol = true
} else {
name = "central"
url = mavenCentralUrl
credentials {
username mavenCentralUsername
password mavenCentralPassword
}
}
}
}
}
}