Skip to content

Commit 423fbb7

Browse files
committed
MLE-24505 Fixing publishing for the dev tools plugin
1 parent 12fb4c1 commit 423fbb7

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

ml-development-tools/build.gradle

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2-
31
/*
42
* Copyright (c) 2010-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
53
*/
64

5+
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
6+
77
plugins {
88
id "groovy"
99
id 'maven-publish'
@@ -18,7 +18,11 @@ dependencies {
1818
// This is a runtime dependency of marklogic-client-api but is needed for compiling.
1919
compileOnly "jakarta.xml.bind:jakarta.xml.bind-api:4.0.4"
2020

21-
implementation project(':marklogic-client-api')
21+
// Gradle 9 does not like for a plugin to have a project dependency; trying to publish it results in a
22+
// NoSuchMethodError pertaining to getProjectDependency. So treating this as a 3rd party dependency. This creates
23+
// additional work during development, though we rarely modify the code in this plugin anymore.
24+
implementation "com.marklogic:marklogic-client-api:${version}"
25+
2226
implementation 'org.jetbrains.kotlin:kotlin-stdlib:2.1.0'
2327
implementation "com.fasterxml.jackson.module:jackson-module-kotlin:${jacksonVersion}"
2428
implementation 'com.networknt:json-schema-validator:1.0.88'
@@ -58,11 +62,6 @@ gradlePlugin {
5862
}
5963

6064
publishing {
61-
publications {
62-
mainJava(MavenPublication) {
63-
from components.java
64-
}
65-
}
6665
repositories {
6766
maven {
6867
if (project.hasProperty("mavenUser")) {

0 commit comments

Comments
 (0)