|
1 | 1 | plugins { |
2 | | - id "java-library" |
3 | | - id "maven-publish" |
4 | | - id "eclipse" |
5 | | - id "idea" |
| 2 | + id "java-library" |
| 3 | + id "maven-publish" |
| 4 | + id "maven" |
| 5 | + id "signing" |
6 | 6 | id "com.github.jk1.dependency-license-report" version "1.3" |
7 | 7 | id "io.snyk.gradle.plugin.snykplugin" version "0.4" |
8 | 8 | } |
9 | 9 |
|
10 | 10 | group = "com.marklogic" |
11 | | -archivesBaseName = "ml-javaclient-util" |
12 | 11 | version = "4.1-SNAPSHOT" |
13 | 12 |
|
14 | 13 | sourceCompatibility = "8" |
@@ -64,16 +63,56 @@ task javadocJar(type: Jar, dependsOn: javadoc) { |
64 | 63 | } |
65 | 64 | javadoc.failOnError = false |
66 | 65 |
|
| 66 | +artifacts { |
| 67 | + archives javadocJar, sourcesJar |
| 68 | +} |
| 69 | +signing { |
| 70 | + sign configurations.archives |
| 71 | +} |
| 72 | + |
| 73 | +uploadArchives { |
| 74 | + repositories { |
| 75 | + mavenDeployer { |
| 76 | + beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } |
| 77 | + repository(url: "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/") { |
| 78 | + authentication(userName: ossrhUsername, password: ossrhPassword) |
| 79 | + } |
| 80 | + snapshotRepository(url: "https://s01.oss.sonatype.org/content/repositories/snapshots/") { |
| 81 | + authentication(userName: ossrhUsername, password: ossrhPassword) |
| 82 | + } |
| 83 | + pom.project { |
| 84 | + name '${group}:${project.name}' |
| 85 | + packaging 'jar' |
| 86 | + description 'Library that adds functionality on top of the MarkLogic Java Client' |
| 87 | + url 'https://github.com/marklogic-community/${project.name}' |
| 88 | + scm { |
| 89 | + url '[email protected]:marklogic-community/${project.name}.git' |
| 90 | + connection 'scm:[email protected]:marklogic-community/${project.name}.git' |
| 91 | + developerConnection 'scm:[email protected]:marklogic-community/${project.name}.git' |
| 92 | + } |
| 93 | + licenses { |
| 94 | + license { |
| 95 | + name 'The Apache License, Version 2.0' |
| 96 | + url 'http://www.apache.org/licenses/LICENSE-2.0.txt' |
| 97 | + } |
| 98 | + } |
| 99 | + developers { |
| 100 | + developer { |
| 101 | + id 'marklogic' |
| 102 | + name 'MarkLogic Github Contributors' |
| 103 | + |
| 104 | + } |
| 105 | + } |
| 106 | + } |
| 107 | + } |
| 108 | + } |
| 109 | +} |
| 110 | + |
67 | 111 | publishing { |
68 | 112 | publications { |
69 | 113 | mainJava(MavenPublication) { |
70 | 114 | from components.java |
71 | | - } |
72 | | - sourcesJava(MavenPublication) { |
73 | | - from components.java |
74 | 115 | artifact sourcesJar |
75 | | - } |
76 | | - mavenJavadoc(MavenPublication) { |
77 | 116 | artifact javadocJar |
78 | 117 | } |
79 | 118 | } |
|
0 commit comments