|
1 | 1 | plugins {
|
2 |
| - id "java" |
3 |
| - id "maven-publish" |
4 |
| - id "com.jfrog.bintray" version "1.8.4" |
5 |
| - id "com.github.jk1.dependency-license-report" version "1.3" |
6 |
| - id "net.saliman.properties" version "1.4.6" |
7 |
| -} |
8 |
| - |
9 |
| -sourceCompatibility = "1.8" |
10 |
| -targetCompatibility = "1.8" |
11 |
| - |
12 |
| -repositories { |
13 |
| - jcenter() |
| 2 | + id "com.github.jk1.dependency-license-report" version "1.17" |
14 | 3 | }
|
15 | 4 |
|
16 | 5 | dependencies {
|
17 |
| - compile project(":marklogic-unit-test-client") |
18 |
| - compile "com.marklogic:ml-javaclient-util:3.11.0" |
19 |
| - compile "jaxen:jaxen:1.1.6" |
20 |
| - compile "org.junit.jupiter:junit-jupiter-api:5.4.1" |
21 |
| - compile "org.junit.jupiter:junit-jupiter-params:5.4.1" |
22 |
| - compile "org.springframework:spring-context:5.0.8.RELEASE" |
23 |
| - compile "org.springframework:spring-test:5.0.8.RELEASE" |
| 6 | + api project(":marklogic-unit-test-client") |
| 7 | + api "com.marklogic:ml-javaclient-util:4.3.0" |
| 8 | + api "org.jdom:jdom2:2.0.6" |
| 9 | + api "org.junit.jupiter:junit-jupiter:5.7.2" |
| 10 | + api "org.springframework:spring-context:5.3.9" |
| 11 | + api "org.springframework:spring-test:5.3.9" |
| 12 | + api "com.fasterxml.jackson.core:jackson-databind:2.11.1" |
| 13 | + api "org.slf4j:slf4j-api:1.7.31" |
24 | 14 |
|
25 |
| - // Support for DHF is provided, but a client must specify their own version of the DHF library to use |
26 |
| - compileOnly ("com.marklogic:marklogic-data-hub:4.2.2") { |
27 |
| - exclude module: "ml-javaclient-util" |
28 |
| - } |
| 15 | + implementation "jaxen:jaxen:1.2.0" |
29 | 16 |
|
30 |
| - // Needed by Gradle 4.6+ - see https://www.petrikainulainen.net/programming/testing/junit-5-tutorial-running-unit-tests-with-gradle/ |
31 |
| - testRuntime "org.junit.jupiter:junit-jupiter-engine:5.4.1" |
| 17 | + testImplementation "org.junit.jupiter:junit-jupiter:5.7.2" |
32 | 18 |
|
33 | 19 | // Forcing Spring to use logback instead of commons-logging
|
34 |
| - testRuntime "ch.qos.logback:logback-classic:1.1.8" |
35 |
| - testRuntime group: "org.slf4j", name: "jcl-over-slf4j", version: "1.7.22" |
36 |
| - testRuntime group: "org.slf4j", name: "slf4j-api", version: "1.7.22" |
| 20 | + testImplementation "ch.qos.logback:logback-classic:1.2.4" |
| 21 | + testImplementation "org.slf4j:jcl-over-slf4j:1.7.31" |
| 22 | + testImplementation "org.slf4j:slf4j-api:1.7.31" |
37 | 23 | }
|
38 | 24 |
|
39 |
| -// Needed by Gradle 4.6+ - see https://www.petrikainulainen.net/programming/testing/junit-5-tutorial-running-unit-tests-with-gradle/ |
40 | 25 | test {
|
41 | 26 | useJUnitPlatform()
|
42 | 27 | }
|
43 | 28 |
|
44 | 29 | task sourcesJar(type: Jar, dependsOn: classes) {
|
45 |
| - classifier "sources" |
46 |
| - from sourceSets.main.allJava |
| 30 | + classifier 'sources' |
| 31 | + from sourceSets.main.allSource |
47 | 32 | }
|
48 | 33 |
|
49 |
| -publishing { |
50 |
| - publications { |
51 |
| - mainJava(MavenPublication) { |
52 |
| - from components.java |
53 |
| - artifactId project.name |
54 |
| - } |
55 |
| - sourcesJava(MavenPublication) { |
56 |
| - from components.java |
57 |
| - artifactId project.name |
58 |
| - artifact sourcesJar |
59 |
| - } |
60 |
| - } |
| 34 | +task javadocJar(type: Jar, dependsOn: javadoc) { |
| 35 | + classifier "javadoc" |
| 36 | + from javadoc |
61 | 37 | }
|
62 | 38 |
|
63 |
| -if (project.hasProperty("myBintrayUser")) { |
64 |
| - bintray { |
65 |
| - user = myBintrayUser |
66 |
| - key = myBintrayKey |
67 |
| - publications = ["mainJava", "sourcesJava"] |
68 |
| - pkg { |
69 |
| - repo = "Maven" |
70 |
| - name = project.name |
71 |
| - userOrg = 'marklogic-community' |
72 |
| - licenses = ["Apache-2.0"] |
73 |
| - vcsUrl = "https://github.com/marklogic-community/marklogic-unit-test.git" |
74 |
| - version { |
75 |
| - name = project.version |
76 |
| - released = new Date() |
77 |
| - } |
78 |
| - } |
79 |
| - } |
| 39 | +artifacts { |
| 40 | + archives javadocJar, sourcesJar |
| 41 | +} |
| 42 | +signing { |
| 43 | + sign configurations.archives |
| 44 | +} |
| 45 | + |
| 46 | +publishing { |
| 47 | + publications { |
| 48 | + mainJava(MavenPublication) { |
| 49 | + pom { |
| 50 | + name = "${group}:${project.name}" |
| 51 | + description = "Supports testing MarkLogic applications" |
| 52 | + packaging = "jar" |
| 53 | + url = "https://github.com/marklogic-community/${project.name}" |
| 54 | + licenses { |
| 55 | + license { |
| 56 | + name = "The Apache License, Version 2.0" |
| 57 | + url = "http://www.apache.org/licenses/LICENSE-2.0.txt" |
| 58 | + } |
| 59 | + } |
| 60 | + developers { |
| 61 | + developer { |
| 62 | + id = "marklogic" |
| 63 | + name = "MarkLogic Github Contributors" |
| 64 | + |
| 65 | + organization = "MarkLogic" |
| 66 | + organizationUrl = "https://www.marklogic.com" |
| 67 | + } |
| 68 | + } |
| 69 | + scm { |
| 70 | + url = "[email protected]:marklogic-community/${project.name}.git" |
| 71 | + connection = "scm:[email protected]:marklogic-community/${project.name}.git" |
| 72 | + developerConnection = "scm:[email protected]:marklogic-community/${project.name}.git" |
| 73 | + } |
| 74 | + } |
| 75 | + from components.java |
| 76 | + artifact sourcesJar |
| 77 | + artifact javadocJar |
| 78 | + } |
| 79 | + } |
| 80 | + repositories { |
| 81 | + maven { |
| 82 | + name = "central" |
| 83 | + url = mavenCentralUrl |
| 84 | + credentials { |
| 85 | + username mavenCentralUsername |
| 86 | + password mavenCentralPassword |
| 87 | + } |
| 88 | + } |
| 89 | + } |
80 | 90 | }
|
0 commit comments