Skip to content

Commit e53bdf9

Browse files
authored
build: add 'protobuf' files to published Jar (#1282)
Signed-off-by: Jendrik Johannes <jendrik.johannes@gmail.com>
1 parent 81b24f5 commit e53bdf9

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

protobuf-sources/build.gradle.kts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@ plugins { id("org.hiero.gradle.module.library") }
33

44
description = "Hiero Block Node Protobuf Sources"
55

6-
// Remove the following line to enable all 'javac' lint checks that we have turned on by default
7-
// and then fix the reported issues.
8-
tasks.withType<JavaCompile>().configureEach {
9-
options.compilerArgs.add("-Xlint:-exports,-deprecation,-removal,-dep-ann")
10-
}
6+
// Add probuf source files as resources to have them packaged in Jar
7+
sourceSets.main { resources { srcDir(layout.projectDirectory.dir("src/main/proto")) } }
118

129
// Skip javadoc generation for this module as it only contains protobuf sources
1310
tasks.javadoc { enabled = false }

0 commit comments

Comments
 (0)