| 
4 | 4 | // used for that. So we have to add the properties plugin to the buildscript classpath and then apply the properties  | 
5 | 5 | // plugin via subprojects below.  | 
6 | 6 | buildscript {  | 
7 |  | -    repositories {  | 
8 |  | -        maven {  | 
9 |  | -            url = "https://plugins.gradle.org/m2/"  | 
10 |  | -        }  | 
11 |  | -    }  | 
12 |  | -    dependencies {  | 
13 |  | -        classpath "net.saliman:gradle-properties-plugin:1.5.2"  | 
14 |  | -    }  | 
 | 7 | +	repositories {  | 
 | 8 | +		maven {  | 
 | 9 | +			url = "https://plugins.gradle.org/m2/"  | 
 | 10 | +		}  | 
 | 11 | +	}  | 
 | 12 | +	dependencies {  | 
 | 13 | +		classpath "net.saliman:gradle-properties-plugin:1.5.2"  | 
 | 14 | +	}  | 
15 | 15 | }  | 
16 | 16 | 
 
  | 
17 | 17 | subprojects {  | 
18 |  | -    apply plugin: "net.saliman.properties"  | 
19 |  | -    apply plugin: 'java'  | 
 | 18 | +	apply plugin: "net.saliman.properties"  | 
 | 19 | +	apply plugin: 'java'  | 
20 | 20 | 
 
  | 
21 |  | - 	tasks.withType(JavaCompile) {  | 
22 |  | -    	options.encoding = 'UTF-8'  | 
23 |  | -  	}  | 
 | 21 | +	tasks.withType(JavaCompile) {  | 
 | 22 | +		options.encoding = 'UTF-8'  | 
 | 23 | +	}  | 
24 | 24 | 
 
  | 
25 |  | -    // To ensure that the Java Client continues to support Java 8, both source and target compatibility are set to 1.8.  | 
26 |  | -    java {  | 
27 |  | -        sourceCompatibility = 1.8  | 
28 |  | -        targetCompatibility = 1.8  | 
29 |  | -    }  | 
 | 25 | +	java {  | 
 | 26 | +		toolchain {  | 
 | 27 | +			languageVersion = JavaLanguageVersion.of(17)  | 
 | 28 | +		}  | 
 | 29 | +	}  | 
30 | 30 | 
 
  | 
31 |  | -    configurations {  | 
32 |  | -        testImplementation.extendsFrom compileOnly  | 
33 |  | -    }  | 
 | 31 | +	configurations {  | 
 | 32 | +		testImplementation.extendsFrom compileOnly  | 
 | 33 | +	}  | 
34 | 34 | 
 
  | 
35 |  | -    repositories {  | 
36 |  | -        mavenLocal()  | 
37 |  | -        mavenCentral()  | 
38 |  | -    }  | 
 | 35 | +	repositories {  | 
 | 36 | +		mavenLocal()  | 
 | 37 | +		mavenCentral()  | 
 | 38 | +	}  | 
39 | 39 | 
 
  | 
40 | 40 | 	test {  | 
41 | 41 | 		systemProperty "file.encoding", "UTF-8"  | 
42 | 42 | 		systemProperty "javax.xml.stream.XMLOutputFactory", "com.sun.xml.internal.stream.XMLOutputFactoryImpl"  | 
43 | 43 | 	}  | 
44 | 44 | 
 
  | 
45 | 45 | 	// Until we do a cleanup of javadoc errors, the build (and specifically the javadoc task) fails on Java 11  | 
46 |  | -    // and higher. Preventing that until the cleanup can occur.  | 
47 |  | -    javadoc.failOnError = false  | 
 | 46 | +	// and higher. Preventing that until the cleanup can occur.  | 
 | 47 | +	javadoc.failOnError = false  | 
48 | 48 | 
 
  | 
49 |  | -    // Ignores warnings on param tags with no descriptions. Will remove this once javadoc errors are addressed.  | 
50 |  | -    // Until then, it's just a lot of noise.  | 
51 |  | -    javadoc.options.addStringOption('Xdoclint:none', '-quiet')  | 
 | 49 | +	// Ignores warnings on param tags with no descriptions. Will remove this once javadoc errors are addressed.  | 
 | 50 | +	// Until then, it's just a lot of noise.  | 
 | 51 | +	javadoc.options.addStringOption('Xdoclint:none', '-quiet')  | 
52 | 52 | }  | 
0 commit comments