1- plugins {
2- id " com.github.jk1.dependency-license-report" version " 1.17"
3- }
4-
51dependencies {
62 api project(" :marklogic-unit-test-client" )
7- api " com.marklogic:ml-javaclient-util:4.6 .0"
3+ api " com.marklogic:ml-javaclient-util:5.0 .0"
84 api " org.jdom:jdom2:2.0.6.1"
9- api " org.junit.jupiter:junit-jupiter:5.10.0"
10- api " org.springframework:spring-context:5.3.29"
11- api " org.springframework:spring-test:5.3.29"
12- api " com.fasterxml.jackson.core:jackson-databind:2.15.2"
13- api ' org.slf4j:slf4j-api:1.7.36'
14-
5+ api " org.junit.jupiter:junit-jupiter:5.11.2"
6+ api " org.springframework:spring-context:5.3.39"
7+ api " org.springframework:spring-test:5.3.39"
8+ api " com.fasterxml.jackson.core:jackson-databind:2.17.2"
9+ api ' org.slf4j:slf4j-api:2.0.16'
1510 implementation " jaxen:jaxen:2.0.0"
1611}
1712
1813test {
1914 useJUnitPlatform()
2015}
2116
22- task sourcesJar (type : Jar , dependsOn : classes) {
23- classifier ' sources'
24- from sourceSets. main. allSource
25- }
26-
27- task javadocJar (type : Jar , dependsOn : javadoc) {
28- classifier " javadoc"
29- from javadoc
30- }
31-
32- artifacts {
33- archives javadocJar, sourcesJar
34- }
35- signing {
36- sign configurations. archives
37- }
38-
39- task generatePomForDependencyGraph (dependsOn : " generatePomFileForMainJavaPublication" ) {
40- description = " Prepare for a release by making a copy of the generated pom file in the root directory so that it " +
41- " can enable Github's Dependency Graph feature, which does not yet support Gradle"
42- doLast {
43- def preamble = ' <?xml version="1.0" encoding="UTF-8"?>'
44- def comment = " <!--\n " +
45- " This file was generated via Gradle and is being used primarily for github's Dependency Graph feature.\n " +
46- " It is not intended to be used to build this project.\n " +
47- " -->"
48- def fileText = file(" build/publications/mainJava/pom-default.xml" ). getText()
49- file(" pom.xml" ). setText(fileText. replace(preamble, preamble + comment))
50- }
17+ // Publishing setup - see https://docs.gradle.org/current/userguide/publishing_setup.html .
18+ java {
19+ withJavadocJar()
20+ withSourcesJar()
5121}
5222
5323publishing {
5424 publications {
5525 mainJava(MavenPublication ) {
26+ groupId = group
27+ version = version
28+ from components. java
5629 pom {
5730 name = " ${ group} :${ project.name} "
5831 description = " Supports testing MarkLogic applications"
@@ -79,29 +52,6 @@ publishing {
7952 developerConnection
= " scm:[email protected] :marklogic-community/${ project.name} .git" 8053 }
8154 }
82- from components. java
83- artifact sourcesJar
84- artifact javadocJar
85- }
86- }
87- repositories {
88- maven {
89- if (project. hasProperty(" mavenUser" )) {
90- name = " nexus"
91- credentials {
92- username mavenUser
93- password mavenPassword
94- }
95- url publishUrl
96- allowInsecureProtocol = true
97- } else {
98- name = " central"
99- url = mavenCentralUrl
100- credentials {
101- username mavenCentralUsername
102- password mavenCentralPassword
103- }
104- }
10555 }
10656 }
10757}
0 commit comments