1+ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2+
13/*
24 * Copyright (c) 2010-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
35 */
@@ -29,7 +31,7 @@ dependencies {
2931// Added to avoid problem where processResources fails because - somehow - the plugin properties file is getting
3032// copied twice. This started occurring with the upgrade of Gradle from 6.x to 7.x.
3133tasks. processResources {
32- duplicatesStrategy = " exclude "
34+ duplicatesStrategy = DuplicatesStrategy . EXCLUDE
3335}
3436
3537tasks. register(" mlDevelopmentToolsJar" , Jar ) {
@@ -45,15 +47,15 @@ gradlePlugin {
4547 id = ' com.marklogic.ml-development-tools'
4648 displayName = ' ml-development-tools MarkLogic Data Service Tools'
4749 description = ' ml-development-tools plugin for developing data services on MarkLogic'
48- tags. set( [' marklogic' , ' progress' ])
50+ tags = [' marklogic' , ' progress' ]
4951 implementationClass = ' com.marklogic.client.tools.gradle.ToolsPlugin'
5052 }
5153 }
5254}
5355
5456publishing {
5557 publications {
56- main (MavenPublication ) {
58+ mainJava (MavenPublication ) {
5759 from components. java
5860 }
5961 }
@@ -70,11 +72,10 @@ publishing {
7072 }
7173}
7274
73- compileKotlin {
74- kotlinOptions. jvmTarget = ' 17'
75- }
76- compileTestKotlin {
77- kotlinOptions. jvmTarget = ' 17'
75+ tasks. withType(KotlinCompile ). configureEach {
76+ compilerOptions {
77+ jvmTarget. set(org.jetbrains.kotlin.gradle.dsl.JvmTarget . JVM_17 )
78+ }
7879}
7980
8081tasks. register(" generateTests" , JavaExec ) {
0 commit comments