11// Copyright (c) 2022 MarkLogic Corporation
22
33plugins {
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
1111dependencies {
@@ -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.
2929tasks. processResources {
30- duplicatesStrategy = " exclude"
30+ duplicatesStrategy = " exclude"
3131}
3232
3333task 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
4337gradlePlugin {
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
5451publishing {
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
7370compileKotlin {
74- kotlinOptions. jvmTarget = ' 1.8'
71+ kotlinOptions. jvmTarget = ' 1.8'
7572}
7673compileTestKotlin {
77- kotlinOptions. jvmTarget = ' 1.8'
74+ kotlinOptions. jvmTarget = ' 1.8'
7875}
7976
8077task 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.
0 commit comments