-
Notifications
You must be signed in to change notification settings - Fork 570
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2555 from square/bquenaudon.2023-07-31.provide
Provide proto output to sourceSet's resources
- Loading branch information
Showing
5 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
wire-gradle-plugin/src/test/projects/proto-library/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
plugins { | ||
id 'kotlin' | ||
id 'com.squareup.wire' | ||
} | ||
|
||
wire { | ||
protoLibrary = true | ||
} |
19 changes: 19 additions & 0 deletions
19
...e-plugin/src/test/projects/proto-library/src/main/proto/squareup/dinosaurs/dinosaur.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
syntax = "proto2"; | ||
|
||
package squareup.dinosaurs; | ||
|
||
option java_package = "com.squareup.dinosaurs"; | ||
|
||
import "squareup/geology/period.proto"; | ||
|
||
message Dinosaur { | ||
/** Common name of this dinosaur, like "Stegosaurus". */ | ||
optional string name = 1; | ||
|
||
/** URLs with images of this dinosaur. */ | ||
repeated string picture_urls = 2; | ||
|
||
optional double length_meters = 3; | ||
optional double mass_kilograms = 4; | ||
optional squareup.geology.Period period = 5; | ||
} |
16 changes: 16 additions & 0 deletions
16
...radle-plugin/src/test/projects/proto-library/src/main/proto/squareup/geology/period.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
syntax = "proto2"; | ||
|
||
package squareup.geology; | ||
|
||
option java_package = "com.squareup.geology"; | ||
|
||
enum Period { | ||
/** 145.5 million years ago — 66.0 million years ago. */ | ||
CRETACEOUS = 1; | ||
|
||
/** 201.3 million years ago — 145.0 million years ago. */ | ||
JURASSIC = 2; | ||
|
||
/** 252.17 million years ago — 201.3 million years ago. */ | ||
TRIASSIC = 3; | ||
} |