mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-21 13:57:56 +00:00
Merge pull request #595 from nsacyber/v3_protobuf-plugin
Use protobuf-gradle-plugin to replace a system dependency
This commit is contained in:
commit
08b0d66152
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user