Skip to content

Commit

Permalink
Merge pull request #595 from nsacyber/v3_protobuf-plugin
Browse files Browse the repository at this point in the history
Use protobuf-gradle-plugin to replace a system dependency
  • Loading branch information
iadgovuser29 authored Sep 30, 2023
2 parents 23d3d61 + b3481f1 commit 08b0d66
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions HIRS_AttestationCA/build.gradle
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 08b0d66

Please sign in to comment.