Skip to content

Commit

Permalink
fix: 修复protobuf生成的类扫描出现问题
Browse files Browse the repository at this point in the history
  • Loading branch information
livk-cloud committed Nov 22, 2023
1 parent 38828d5 commit 9f1801d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import com.google.protobuf.gradle.id
import com.google.protobuf.gradle.proto
import io.spring.javaformat.gradle.tasks.CheckFormat

plugins {
com.livk.common
Expand All @@ -13,6 +14,10 @@ dependencies {
implementation(platform(project(":spring-extension-dependencies")))
}

tasks.withType<CheckFormat> {
exclude("com/livk/netty/commons/protobuf")
}

sourceSets {
main {
proto {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import com.google.protobuf.gradle.id
import com.google.protobuf.gradle.proto
import io.spring.javaformat.gradle.tasks.CheckFormat

plugins {
com.livk.common
Expand All @@ -24,6 +25,10 @@ sourceSets {
}
}

tasks.withType<CheckFormat> {
exclude("com/livk/proto/gen")
}

protobuf {
protoc {
artifact = libs.protobuf.java.protoc.get().toString()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
syntax = "proto3";

option java_package = "com.livk.proto";
option java_package = "com.livk.proto.gen";
option java_outer_classname = "UserProto";

message User{
Expand Down

0 comments on commit 9f1801d

Please sign in to comment.