@@ -28,6 +28,7 @@ defaultTasks 'clean', 'build', 'shadowJar', 'install'
28
28
29
29
def sbeGroup = ' uk.co.real-logic'
30
30
def sbeVersion = file(' version.txt' ). text. trim()
31
+ def sbeJavaVersion = ' 1.8'
31
32
32
33
group = sbeGroup
33
34
version = sbeVersion
@@ -135,15 +136,15 @@ subprojects {
135
136
}
136
137
137
138
compileJava {
138
- sourceCompatibility = ' 1.8 '
139
- targetCompatibility = ' 1.8 '
139
+ sourceCompatibility = sbeJavaVersion
140
+ targetCompatibility = sbeJavaVersion
140
141
options. encoding = ' UTF-8'
141
142
options. deprecation = true
142
143
}
143
144
144
145
compileTestJava {
145
- sourceCompatibility = ' 1.8 '
146
- targetCompatibility = ' 1.8 '
146
+ sourceCompatibility = sbeJavaVersion
147
+ targetCompatibility = sbeJavaVersion
147
148
options. encoding = ' UTF-8'
148
149
options. deprecation = true
149
150
}
@@ -198,8 +199,8 @@ project(':sbe-tool') {
198
199
199
200
compileGeneratedJava {
200
201
dependsOn ' generateCodecs'
201
- sourceCompatibility = ' 1.8 '
202
- targetCompatibility = ' 1.8 '
202
+ sourceCompatibility = sbeJavaVersion
203
+ targetCompatibility = sbeJavaVersion
203
204
options. encoding = ' UTF-8'
204
205
options. deprecation = true
205
206
classpath + = sourceSets. main. runtimeClasspath
@@ -352,8 +353,8 @@ project(':sbe-samples') {
352
353
353
354
compileGeneratedJava {
354
355
dependsOn ' generateCodecs'
355
- sourceCompatibility = ' 1.8 '
356
- targetCompatibility = ' 1.8 '
356
+ sourceCompatibility = sbeJavaVersion
357
+ targetCompatibility = sbeJavaVersion
357
358
options. encoding = ' UTF-8'
358
359
options. deprecation = true
359
360
classpath + = project(' :sbe-all' ). sourceSets. main. runtimeClasspath
@@ -531,7 +532,7 @@ task generateCarExampleDataFile(type: JavaExec) {
531
532
main = ' uk.co.real_logic.sbe.examples.ExampleUsingGeneratedStub'
532
533
classpath = project(' :sbe-samples' ). sourceSets. main. runtimeClasspath
533
534
systemProperties(
534
- ' sbe.encoding.filename' : ' rust/car_example/car_example_data.sbe' )
535
+ ' sbe.encoding.filename' : ' rust/car_example/car_example_data.sbe' )
535
536
args = []
536
537
standardOutput = new ByteArrayOutputStream ()
537
538
}
0 commit comments