11plugins {
22 id ' java'
3- id ' com.google.protobuf' version ' 0.9.4'
43 id ' com.diffplug.spotless' version ' 6.18.0'
54}
65
7- group ' io.temporal'
8- version ' 0.1.0'
6+ allprojects {
7+ group ' io.temporal'
8+ version ' 0.1.0'
99
10- java {
11- sourceCompatibility = JavaVersion . VERSION_1_10
12- targetCompatibility = JavaVersion . VERSION_1_10
13- }
10+ repositories {
11+ mavenCentral()
12+ }
1413
15- repositories {
16- mavenCentral()
14+ plugins. withType(JavaPlugin ) {
15+ java {
16+ sourceCompatibility = JavaVersion . VERSION_1_10
17+ targetCompatibility = JavaVersion . VERSION_1_10
18+ }
19+ }
1720}
1821
1922spotless {
@@ -27,72 +30,27 @@ spotless {
2730 }
2831}
2932
30- compileJava. dependsOn spotlessJava, generateProto
33+ compileJava. dependsOn spotlessJava
3134
3235dependencies {
33- implementation ' ch.qos.logback:logback-classic:1.2.13 '
36+ implementation project( ' :harness ' )
3437 implementation ' com.google.guava:guava:31.0.1-jre'
3538 implementation ' com.google.code.gson:gson:2.8.9'
3639 implementation ' com.jayway.jsonpath:json-path:2.6.0'
37- implementation ' info.picocli:picocli:4.6.2'
3840 implementation ' io.temporal:temporal-sdk:1.34.0'
39- implementation ' org.junit.jupiter:junit-jupiter-api:5.8.1'
4041 implementation ' org.reflections:reflections:0.10.2'
41- implementation ' net.logstash.logback:logstash-logback-encoder:7.4'
42- implementation " io.micrometer:micrometer-registry-prometheus"
4342
4443 implementation(platform(" com.fasterxml.jackson:jackson-bom:2.15.2" ))
4544 implementation " com.fasterxml.jackson.core:jackson-databind"
4645 implementation " com.fasterxml.jackson.core:jackson-core"
4746 implementation ' com.google.protobuf:protobuf-java:3.25.5'
4847 compileOnly ' javax.annotation:javax.annotation-api:1.3.2'
49- testImplementation ' io.temporal:temporal-testing:1.34.0'
50- testRuntimeOnly ' org.junit.jupiter:junit-jupiter-engine:5.8.1'
5148}
5249
5350sourceSets {
5451 main {
5552 java {
56- srcDirs = [
57- ' io/temporal/omes' ,
58- ' harness/src/main/java' ,
59- " $buildDir /generated/source/proto/main/java" ,
60- " $buildDir /generated/source/proto/main/grpc" ,
61- ]
62- }
63- proto {
64- srcDirs = [' ../proto/harness/api' ]
65- include ' api.proto'
66- }
67- }
68- test {
69- java {
70- srcDirs = [' harness/src/test/java' ]
53+ srcDirs = [' io/temporal/omes' ]
7154 }
7255 }
7356}
74-
75- protobuf {
76- protoc {
77- artifact = ' com.google.protobuf:protoc:3.25.5'
78- }
79- plugins {
80- grpc {
81- artifact = ' io.grpc:protoc-gen-grpc-java:1.75.0'
82- }
83- }
84- generateProtoTasks {
85- all(). configureEach { task ->
86- task. builtins {
87- java {}
88- }
89- task. plugins {
90- grpc {}
91- }
92- }
93- }
94- }
95-
96- test {
97- useJUnitPlatform()
98- }
0 commit comments