Skip to content

Commit

Permalink
feat: read version from gradle.properties if specified (#3159)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoehnelt committed May 13, 2020
1 parent ee7f699 commit 23856a0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion java/resources/gradle/client.gradle.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ apply plugin: 'java'

description = 'GAPIC library for {{name}}'
group = 'com.google.cloud'
version = '0.0.0-SNAPSHOT'
version = (findProperty('version') == 'unspecified') ? '0.0.0-SNAPSHOT' : version
sourceCompatibility = 1.7
targetCompatibility = 1.7

Expand Down
2 changes: 1 addition & 1 deletion java/resources/gradle/client_disco.gradle.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ apply plugin: 'java'

description = 'GAPIC library for {{name}}'
group = 'com.google.cloud'
version = '0.0.0-SNAPSHOT'
version = (findProperty('version') == 'unspecified') ? '0.0.0-SNAPSHOT' : version
sourceCompatibility = 1.7
targetCompatibility = 1.7

Expand Down
2 changes: 1 addition & 1 deletion java/resources/gradle/grpc.gradle.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ apply plugin: 'java'

description = 'GRPC library for {{name}}'
group = 'com.google.api.grpc'
version = '0.0.0-SNAPSHOT'
version = (findProperty('version') == 'unspecified') ? '0.0.0-SNAPSHOT' : version
sourceCompatibility = 1.7
targetCompatibility = 1.7

Expand Down
2 changes: 1 addition & 1 deletion java/resources/gradle/proto.gradle.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ apply plugin: 'java'

description = 'PROTO library for {{name}}'
group = 'com.google.api.grpc'
version = '0.0.0-SNAPSHOT'
version = (findProperty('version') == 'unspecified') ? '0.0.0-SNAPSHOT' : version
sourceCompatibility = 1.7
targetCompatibility = 1.7

Expand Down

0 comments on commit 23856a0

Please sign in to comment.