Merge pull request #595 from nsacyber/v3_protobuf-plugin

Use protobuf-gradle-plugin to replace a system dependency
This commit is contained in:
5B96790E3664F40075A67E6ADF737EDB15B4408DBC91A81228B31537B0CE3E26 2023-09-29 21:32:50 -04:00 committed by GitHub
commit 08b0d66152
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
plugins {
id 'java'
id 'io.spring.dependency-management' version '1.1.0'
id 'com.google.protobuf' version '0.9.4'
}
java {
@ -50,13 +51,18 @@ dependencies {
annotationProcessor libs.lombok
}
task generateProtoBuf(type:Exec) {
workingDir 'config'
commandLine './genJavaProtoBuf.sh'
protobuf {
protoc {
artifact = 'com.google.protobuf:protoc:3.24.3'
}
}
sourceSets {
main {
proto {
srcDir '../HIRS_ProvisionerTPM2/src'
}
}
}
compileJava.dependsOn generateProtoBuf
test {
useJUnitPlatform()