1
1
plugins {
2
2
id " groovy"
3
3
id " maven-publish"
4
- id " signing"
5
4
6
5
// Ignored as it depends on Java 11; can uncomment and use Java 11 when it needs to be run
7
6
// id "com.github.jk1.dependency-license-report" version "2.1"
@@ -12,8 +11,13 @@ plugins {
12
11
id " io.snyk.gradle.plugin.snykplugin" version " 0.4"
13
12
}
14
13
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
+
15
19
group = " com.marklogic"
16
- version = " 4.6.1 "
20
+ version = " 4.7-SNAPSHOT "
17
21
18
22
java {
19
23
sourceCompatibility = 1.8
@@ -24,18 +28,18 @@ repositories {
24
28
mavenLocal()
25
29
mavenCentral()
26
30
maven {
27
- url " https://nexus.marklogic. com/repository/ maven-snapshots/"
31
+ url " https://bed-artifactory.bedford.progress. com:443/artifactory/ml- maven-snapshots/"
28
32
}
29
33
}
30
34
31
35
dependencies {
32
36
implementation gradleApi()
33
37
implementation localGroovy()
34
38
35
- api ' com.marklogic:ml-app-deployer:4.6.1 '
39
+ api ' com.marklogic:ml-app-deployer:4.7-SNAPSHOT '
36
40
implementation " com.marklogic:mlcp-util:1.0.1"
37
41
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 "
39
43
40
44
compileOnly " com.marklogic:marklogic-unit-test-client:1.4.0"
41
45
@@ -51,23 +55,20 @@ dependencies {
51
55
}
52
56
53
57
task sourcesJar (type : Jar , dependsOn : classes) {
54
- classifier ' sources'
58
+ archiveClassifier = ' sources'
55
59
from sourceSets. main. allJava
56
60
from sourceSets. main. allGroovy
57
61
}
58
62
59
63
task javadocJar (type : Jar , dependsOn : javadoc) {
60
- classifier " javadoc"
64
+ archiveClassifier = " javadoc"
61
65
from javadoc
62
66
}
63
67
javadoc. failOnError = false
64
68
65
69
artifacts {
66
70
archives javadocJar, sourcesJar
67
71
}
68
- signing {
69
- sign configurations. archives
70
- }
71
72
72
73
task generatePomForDependencyGraph (dependsOn : " generatePomFileForMainJavaPublication" ) {
73
74
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 {
113
114
}
114
115
}
115
116
from components. java
116
- artifact sourcesJar
117
- artifact javadocJar
118
117
}
119
118
}
120
119
repositories {
0 commit comments