Skip to content

Commit 577f7f4

Browse files
authored
Merge pull request #1662 from marklogic/feature/gradle-8
Bumping Gradle wrapper to version 8
2 parents 67f1c6e + 367444d commit 577f7f4

File tree

4 files changed

+36
-81
lines changed

4 files changed

+36
-81
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

marklogic-client-api/build.gradle

Lines changed: 4 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
plugins {
44
id 'maven-publish'
5-
id 'distribution'
65
}
76

87
group = 'com.marklogic'
@@ -81,7 +80,7 @@ jar {
8180
)
8281
}
8382
task sourcesJar(type: Jar) {
84-
classifier = 'sources'
83+
archiveClassifier = 'sources'
8584
exclude ('property', '*.xsd', '*.xjb')
8685
from sourceSets.main.allSource
8786
}
@@ -109,9 +108,9 @@ javadoc {
109108
}
110109
}
111110

112-
task javadocJar (type: Jar, dependsOn: javadoc) {
113-
classifier = 'javadoc'
114-
from javadoc.destinationDir
111+
task javadocJar(type: Jar, dependsOn: javadoc) {
112+
archiveClassifier = 'javadoc'
113+
from javadoc.destinationDir
115114
}
116115

117116
Node pomCustomizations = new NodeBuilder(). project {
@@ -180,47 +179,6 @@ publishing {
180179
}
181180
}
182181

183-
distZip {
184-
archiveFileName = "$project.name-$rootProject.version-with-dependencies.zip"
185-
dependsOn javadoc
186-
}
187-
188-
distributions {
189-
main {
190-
contents {
191-
from("..") {
192-
include("NOTICE.TXT")
193-
}
194-
from("src/main/resources") {
195-
include ("Readme.txt")
196-
include ("LICENSE.txt")
197-
}
198-
into ("example") {
199-
from ("../examples/src/main/resources") {
200-
include ("data/**")
201-
include ("scripts/**")
202-
include ("Example.properties")
203-
}
204-
from ("../examples/src/main/resources/example") {
205-
include ("README.txt")
206-
}
207-
from ("../examples/src/main/java/") {
208-
include ("com/marklogic/client/example/cookbook/*.java")
209-
include ("com/marklogic/client/example/handle/*.java")
210-
include ("com/marklogic/client/example/extension/*.java")
211-
}
212-
}
213-
into ("doc/api") {
214-
from ("build/docs/javadoc")
215-
}
216-
into("lib") {
217-
from jar
218-
from(project.configurations.runtimeClasspath)
219-
}
220-
}
221-
}
222-
}
223-
224182
task printClassPath() {
225183
doLast {
226184
println sourceSets.main.runtimeClasspath.asPath+':'+sourceSets.test.runtimeClasspath.asPath

ml-development-tools/build.gradle

Lines changed: 30 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// Copyright (c) 2022 MarkLogic Corporation
22

33
plugins {
4-
id "groovy"
5-
id 'maven-publish'
6-
id 'com.gradle.plugin-publish' version '1.0.0'
7-
id 'java-gradle-plugin'
8-
id 'org.jetbrains.kotlin.jvm' version '1.8.22'
4+
id "groovy"
5+
id 'maven-publish'
6+
id "com.gradle.plugin-publish" version "1.2.1"
7+
id "java-gradle-plugin"
8+
id 'org.jetbrains.kotlin.jvm' version '1.8.22'
99
}
1010

1111
dependencies {
@@ -27,39 +27,36 @@ dependencies {
2727
// Added to avoid problem where processResources fails because - somehow - the plugin properties file is getting
2828
// copied twice. This started occurring with the upgrade of Gradle from 6.x to 7.x.
2929
tasks.processResources {
30-
duplicatesStrategy = "exclude"
30+
duplicatesStrategy = "exclude"
3131
}
3232

3333
task mlDevelopmentToolsJar(type: Jar, dependsOn: classes) {
34-
archivesBaseName = 'ml-development-tools'
35-
}
36-
37-
pluginBundle {
38-
website = 'https://github.com/marklogic/java-client-api'
39-
vcsUrl = 'https://github.com/marklogic/java-client-api.git'
40-
tags = ['marklogic']
34+
archivesBaseName = 'ml-development-tools'
4135
}
4236

4337
gradlePlugin {
44-
plugins {
45-
mlDevelopmentToolsPlugin {
46-
id = 'com.marklogic.ml-development-tools'
47-
implementationClass = 'com.marklogic.client.tools.gradle.ToolsPlugin'
48-
displayName = 'ml-development-tools MarkLogic Data Service Tools'
49-
description = 'ml-development-tools plugin for developing data services on MarkLogic'
50-
}
51-
}
38+
website = 'https://www.marklogic.com/'
39+
vcsUrl = 'https://github.com/marklogic/java-client-api.git'
40+
plugins {
41+
mlDevelopmentToolsPlugin {
42+
id = 'com.marklogic.ml-development-tools'
43+
displayName = 'ml-development-tools MarkLogic Data Service Tools'
44+
description = 'ml-development-tools plugin for developing data services on MarkLogic'
45+
tags.set(['marklogic', 'progress'])
46+
implementationClass = 'com.marklogic.client.tools.gradle.ToolsPlugin'
47+
}
48+
}
5249
}
5350

5451
publishing {
55-
publications {
56-
main(MavenPublication) {
57-
from components.java
58-
}
59-
}
60-
repositories {
52+
publications {
53+
main(MavenPublication) {
54+
from components.java
55+
}
56+
}
57+
repositories {
6158
maven {
62-
if(project.hasProperty("mavenUser")) {
59+
if (project.hasProperty("mavenUser")) {
6360
credentials {
6461
username mavenUser
6562
password mavenPassword
@@ -71,16 +68,16 @@ publishing {
7168
}
7269

7370
compileKotlin {
74-
kotlinOptions.jvmTarget = '1.8'
71+
kotlinOptions.jvmTarget = '1.8'
7572
}
7673
compileTestKotlin {
77-
kotlinOptions.jvmTarget = '1.8'
74+
kotlinOptions.jvmTarget = '1.8'
7875
}
7976

8077
task generateTests(type: JavaExec) {
81-
classpath = sourceSets.test.runtimeClasspath
82-
main = 'com.marklogic.client.test.dbfunction.FntestgenKt'
83-
args = [ './src/test/', 'latest' ]
78+
classpath = sourceSets.test.runtimeClasspath
79+
main = 'com.marklogic.client.test.dbfunction.FntestgenKt'
80+
args = ['./src/test/', 'latest']
8481
}
8582

8683
// Allows running "./gradlew test" without having to remember to generate the tests first.

test-app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'com.marklogic.ml-gradle' version '4.6.1'
2+
id 'com.marklogic.ml-gradle' version '4.7.0'
33
id 'java'
44
id "com.github.psxpaul.execfork" version "0.2.2"
55
}

0 commit comments

Comments
 (0)