Skip to content

Commit

Permalink
Merge pull request #214 from marklogic-community/feature/bumps
Browse files Browse the repository at this point in the history
Updating all dependencies
  • Loading branch information
rjrudin authored Oct 21, 2024
2 parents 29bb0b3 + 566b0fd commit 443db79
Show file tree
Hide file tree
Showing 12 changed files with 81 additions and 181 deletions.
33 changes: 27 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
subprojects {
apply plugin: "java-library"
apply plugin: "maven-publish"
apply plugin: "signing"

group = "com.marklogic"
version = "1.4-SNAPSHOT"
version = "1.5-SNAPSHOT"

java {
sourceCompatibility = 1.8
Expand All @@ -18,18 +17,40 @@ subprojects {
mavenLocal()

maven {
url "https://nexus.marklogic.com/repository/maven-snapshots/"
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.5" // Not using 1.4.x yet as it requires Java 11
testImplementation 'org.slf4j:jcl-over-slf4j:1.7.36'
testImplementation 'org.slf4j:slf4j-api:1.7.36'
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.16'
testImplementation 'org.slf4j:slf4j-api:2.0.16'
}

javadoc.failOnError = false
// Ignores warnings on params that don't have descriptions, which is a little too noisy
javadoc.options.addStringOption('Xdoclint:none', '-quiet')

publishing {
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
}
}
}
}
}
}
2 changes: 1 addition & 1 deletion examples/getting-started/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ buildscript {

plugins {
id "net.saliman.properties" version "1.5.2"
id "com.marklogic.ml-gradle" version "4.5.2"
id "com.marklogic.ml-gradle" version "5.0.0"
}

repositories {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion examples/test-examples/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ buildscript {

plugins {
id "net.saliman.properties" version "1.5.2"
id "com.marklogic.ml-gradle" version "4.6.0"
id "com.marklogic.ml-gradle" version "5.0.0"
}

repositories {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
76 changes: 13 additions & 63 deletions marklogic-junit5/build.gradle
Original file line number Diff line number Diff line change
@@ -1,58 +1,31 @@
plugins {
id "com.github.jk1.dependency-license-report" version "1.17"
}

dependencies {
api project(":marklogic-unit-test-client")
api "com.marklogic:ml-javaclient-util:4.6.0"
api "com.marklogic:ml-javaclient-util:5.0.0"
api "org.jdom:jdom2:2.0.6.1"
api "org.junit.jupiter:junit-jupiter:5.10.0"
api "org.springframework:spring-context:5.3.29"
api "org.springframework:spring-test:5.3.29"
api "com.fasterxml.jackson.core:jackson-databind:2.15.2"
api 'org.slf4j:slf4j-api:1.7.36'

api "org.junit.jupiter:junit-jupiter:5.11.2"
api "org.springframework:spring-context:5.3.39"
api "org.springframework:spring-test:5.3.39"
api "com.fasterxml.jackson.core:jackson-databind:2.17.2"
api 'org.slf4j:slf4j-api:2.0.16'
implementation "jaxen:jaxen:2.0.0"
}

test {
useJUnitPlatform()
}

task sourcesJar(type: Jar, dependsOn: classes) {
classifier 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier "javadoc"
from javadoc
}

artifacts {
archives javadocJar, sourcesJar
}
signing {
sign configurations.archives
}

task generatePomForDependencyGraph(dependsOn: "generatePomFileForMainJavaPublication") {
description = "Prepare for a release by making a copy of the generated pom file in the root directory so that it " +
"can enable Github's Dependency Graph feature, which does not yet support Gradle"
doLast {
def preamble = '<?xml version="1.0" encoding="UTF-8"?>'
def comment = "<!--\n" +
"This file was generated via Gradle and is being used primarily for github's Dependency Graph feature.\n" +
"It is not intended to be used to build this project.\n" +
"-->"
def fileText = file("build/publications/mainJava/pom-default.xml").getText()
file("pom.xml").setText(fileText.replace(preamble, preamble + comment))
}
// Publishing setup - see https://docs.gradle.org/current/userguide/publishing_setup.html .
java {
withJavadocJar()
withSourcesJar()
}

publishing {
publications {
mainJava(MavenPublication) {
groupId = group
version = version
from components.java
pom {
name = "${group}:${project.name}"
description = "Supports testing MarkLogic applications"
Expand All @@ -79,29 +52,6 @@ publishing {
developerConnection = "scm:[email protected]:marklogic-community/${project.name}.git"
}
}
from components.java
artifact sourcesJar
artifact javadocJar
}
}
repositories {
maven {
if (project.hasProperty("mavenUser")) {
name = "nexus"
credentials {
username mavenUser
password mavenPassword
}
url publishUrl
allowInsecureProtocol = true
} else {
name = "central"
url = mavenCentralUrl
credentials {
username mavenCentralUsername
password mavenCentralPassword
}
}
}
}
}
8 changes: 4 additions & 4 deletions marklogic-junit5/examples/simple-ml-gradle/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id "net.saliman.properties" version "1.5.1"
id "com.marklogic.ml-gradle" version "4.4.0"
id "com.marklogic.ml-gradle" version "5.0.0"
id "java-library"
}

Expand All @@ -16,11 +16,11 @@ repositories {
dependencies {
mlBundle "com.marklogic:marklogic-unit-test-modules:1.4.0"

api "com.marklogic:marklogic-client-api:6.3.0"
api "com.marklogic:marklogic-client-api:7.0.0"

testImplementation "com.marklogic:marklogic-junit5:1.4.0"

// Forcing Spring to use logback instead of commons-logging
testImplementation "ch.qos.logback:logback-classic:1.3.5"
testImplementation "org.slf4j:jcl-over-slf4j:1.7.36"
testImplementation "ch.qos.logback:logback-classic:1.3.14"
testImplementation "org.slf4j:jcl-over-slf4j:2.0.16"
}
12 changes: 6 additions & 6 deletions marklogic-junit5/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ It is not intended to be used to build this project.
<dependency>
<groupId>com.marklogic</groupId>
<artifactId>ml-javaclient-util</artifactId>
<version>4.6.0</version>
<version>5.0.0</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand All @@ -58,31 +58,31 @@ It is not intended to be used to build this project.
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.10.0</version>
<version>5.11.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>5.3.29</version>
<version>5.3.39</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>5.3.29</version>
<version>5.3.39</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.15.2</version>
<version>2.17.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.36</version>
<version>2.0.16</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
70 changes: 11 additions & 59 deletions marklogic-unit-test-client/build.gradle
Original file line number Diff line number Diff line change
@@ -1,56 +1,31 @@
plugins {
// ml-gradle is used for deploying a test application so that this project itself can be tested
id "com.marklogic.ml-gradle" version "4.5.2"

// Used to generate a license report
id "com.github.jk1.dependency-license-report" version "1.17"
id "com.marklogic.ml-gradle" version "5.0.0"
}

dependencies {
api "com.marklogic:marklogic-client-api:6.3.0"
implementation "org.slf4j:slf4j-api:1.7.36"
api "com.marklogic:marklogic-client-api:7.0.0"
implementation "org.slf4j:slf4j-api:2.0.16"

testImplementation "org.junit.jupiter:junit-jupiter:5.10.0"
testImplementation "org.junit.jupiter:junit-jupiter:5.11.2"
}

test {
useJUnitPlatform()
}

task sourcesJar(type: Jar, dependsOn: classes) {
classifier 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier "javadoc"
from javadoc
}

artifacts {
archives javadocJar, sourcesJar
}
signing {
sign configurations.archives
}

task generatePomForDependencyGraph(dependsOn: "generatePomFileForMainJavaPublication") {
description = "Prepare for a release by making a copy of the generated pom file in the root directory so that it " +
"can enable Github's Dependency Graph feature, which does not yet support Gradle"
doLast {
def preamble = '<?xml version="1.0" encoding="UTF-8"?>'
def comment = "<!--\n" +
"This file was generated via Gradle and is being used primarily for github's Dependency Graph feature.\n" +
"It is not intended to be used to build this project.\n" +
"-->"
def fileText = file("build/publications/mainJava/pom-default.xml").getText()
file("pom.xml").setText(fileText.replace(preamble, preamble + comment))
}
// Publishing setup - see https://docs.gradle.org/current/userguide/publishing_setup.html .
java {
withJavadocJar()
withSourcesJar()
}

publishing {
publications {
mainJava(MavenPublication) {
groupId = group
version = version
from components.java
pom {
name = "${group}:${project.name}"
description = "Supports testing MarkLogic applications"
Expand All @@ -77,29 +52,6 @@ publishing {
developerConnection = "scm:[email protected]:marklogic-community/${project.name}.git"
}
}
from components.java
artifact sourcesJar
artifact javadocJar
}
}
repositories {
maven {
if (project.hasProperty("mavenUser")) {
name = "nexus"
credentials {
username mavenUser
password mavenPassword
}
url publishUrl
allowInsecureProtocol = true
} else {
name = "central"
url = mavenCentralUrl
credentials {
username mavenCentralUsername
password mavenCentralPassword
}
}
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions marklogic-unit-test-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ It is not intended to be used to build this project.
<dependency>
<groupId>com.marklogic</groupId>
<artifactId>marklogic-client-api</artifactId>
<version>6.3.0</version>
<version>7.0.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.36</version>
<version>2.0.16</version>
<scope>runtime</scope>
</dependency>
</dependencies>
Expand Down
Loading

0 comments on commit 443db79

Please sign in to comment.