Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d3defca

Browse files
authoredJan 25, 2024
Merge pull request #687 from marklogic/feature/gradle-fix
Updated Gradle config
2 parents 40e3616 + 3092062 commit d3defca

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed
 

‎build.gradle

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
plugins {
22
id "groovy"
33
id "maven-publish"
4-
id "signing"
54

65
// Ignored as it depends on Java 11; can uncomment and use Java 11 when it needs to be run
76
// id "com.github.jk1.dependency-license-report" version "2.1"
@@ -12,8 +11,13 @@ plugins {
1211
id "io.snyk.gradle.plugin.snykplugin" version "0.4"
1312
}
1413

14+
// Applied conditionally so that it does not take effect when publishing locally.
15+
if (project.hasProperty("signing.keyId")) {
16+
apply plugin: "signing"
17+
}
18+
1519
group = "com.marklogic"
16-
version = "4.6.1"
20+
version = "4.7-SNAPSHOT"
1721

1822
java {
1923
sourceCompatibility = 1.8
@@ -24,18 +28,18 @@ repositories {
2428
mavenLocal()
2529
mavenCentral()
2630
maven {
27-
url "https://nexus.marklogic.com/repository/maven-snapshots/"
31+
url "https://bed-artifactory.bedford.progress.com:443/artifactory/ml-maven-snapshots/"
2832
}
2933
}
3034

3135
dependencies {
3236
implementation gradleApi()
3337
implementation localGroovy()
3438

35-
api 'com.marklogic:ml-app-deployer:4.6.1'
39+
api 'com.marklogic:ml-app-deployer:4.7-SNAPSHOT'
3640
implementation "com.marklogic:mlcp-util:1.0.1"
3741
implementation "com.marklogic:marklogic-data-movement-components:2.7.0"
38-
implementation "commons-io:commons-io:2.11.0"
42+
implementation "commons-io:commons-io:2.15.1"
3943

4044
compileOnly "com.marklogic:marklogic-unit-test-client:1.4.0"
4145

@@ -51,23 +55,20 @@ dependencies {
5155
}
5256

5357
task sourcesJar(type: Jar, dependsOn: classes) {
54-
classifier 'sources'
58+
archiveClassifier = 'sources'
5559
from sourceSets.main.allJava
5660
from sourceSets.main.allGroovy
5761
}
5862

5963
task javadocJar(type: Jar, dependsOn: javadoc) {
60-
classifier "javadoc"
64+
archiveClassifier = "javadoc"
6165
from javadoc
6266
}
6367
javadoc.failOnError = false
6468

6569
artifacts {
6670
archives javadocJar, sourcesJar
6771
}
68-
signing {
69-
sign configurations.archives
70-
}
7172

7273
task generatePomForDependencyGraph(dependsOn: "generatePomFileForMainJavaPublication") {
7374
description = "Prepare for a release by making a copy of the generated pom file in the root directory so that it " +
@@ -113,8 +114,6 @@ publishing {
113114
}
114115
}
115116
from components.java
116-
artifact sourcesJar
117-
artifact javadocJar
118117
}
119118
}
120119
repositories {

‎examples/local-testing-project/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ buildscript {
22
repositories {
33
mavenLocal()
44
maven {
5-
url "https://nexus.marklogic.com/repository/maven-snapshots/"
5+
url "https://bed-artifactory.bedford.progress.com:443/artifactory/ml-maven-snapshots/"
66
}
77
mavenCentral()
88
}

‎gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
1+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)
Please sign in to comment.