1+ // Copyright (c) 2015-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
2+
13// Defines common configuration for each of the 3 subprojects.
24subprojects {
35 apply plugin : " java-library"
46 apply plugin : " maven-publish"
57
68 group = " com.marklogic"
7- version = " 6.0.0"
89
910 java {
1011 sourceCompatibility = 17
@@ -15,7 +16,7 @@ subprojects {
1516 mavenCentral()
1617 mavenLocal()
1718 maven {
18- url " https://bed-artifactory.bedford.progress.com:443/artifactory/ml-maven-snapshots/"
19+ url = " https://bed-artifactory.bedford.progress.com:443/artifactory/ml-maven-snapshots/"
1920 }
2021 }
2122
@@ -33,15 +34,25 @@ subprojects {
3334 testImplementation ' org.slf4j:slf4j-api:2.0.17'
3435 }
3536
36- javadoc. failOnError = false
37+ // Allows for quickly identifying compiler warnings and treating them as errors.
38+ tasks. withType(JavaCompile ) {
39+ options. compilerArgs + = [" -Xlint:unchecked" , " -Xlint:deprecation" , " -Werror" ]
40+ options. deprecation = true
41+ options. warnings = true
42+ }
43+
44+ javadoc {
45+ failOnError = false
46+ }
47+
3748 // Ignores warnings on params that don't have descriptions, which is a little too noisy
3849 javadoc. options. addStringOption(' Xdoclint:none' , ' -quiet' )
3950
4051 test {
4152 useJUnitPlatform()
4253 testLogging {
4354 events ' started' ,' passed' , ' skipped' , ' failed'
44- exceptionFormat ' full'
55+ exceptionFormat = ' full'
4556 }
4657 }
4758
@@ -90,17 +101,17 @@ subprojects {
90101 maven {
91102 if (project. hasProperty(" mavenUser" )) {
92103 credentials {
93- username mavenUser
94- password mavenPassword
104+ username = mavenUser
105+ password = mavenPassword
95106 }
96107 url publishUrl
97108 allowInsecureProtocol = true
98109 } else {
99110 name = " central"
100111 url = mavenCentralUrl
101112 credentials {
102- username mavenCentralUsername
103- password mavenCentralPassword
113+ username = mavenCentralUsername
114+ password = mavenCentralPassword
104115 }
105116 }
106117 }
0 commit comments