Skip to content

Commit

Permalink
changed to protobuf-lite
Browse files Browse the repository at this point in the history
  • Loading branch information
santhoshvai committed Aug 25, 2017
1 parent 4f7103d commit c7c9f95
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 7 deletions.
15 changes: 15 additions & 0 deletions .idea/checkstyle-idea.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 19 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group 'info.santhosh.evlo-model-proto'
version '1.1-SNAPSHOT'
version '1.2-SNAPSHOT'

apply plugin: 'java'
apply plugin: 'com.google.protobuf'
Expand All @@ -16,18 +16,32 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.2'
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.3'
}
}

dependencies {
compile 'com.google.protobuf:protobuf-java:3.3.0'
compile 'com.google.protobuf:protobuf-lite:3.0.1'
testCompile group: 'junit', name: 'junit', version: '4.12'
}

protobuf {
protoc {
// The artifact spec for the Protobuf Compiler
artifact = 'com.google.protobuf:protoc:3.3.0'
artifact = 'com.google.protobuf:protoc:3.4.0'
}
plugins {
javalite {
artifact = 'com.google.protobuf:protoc-gen-javalite:3.0.0'
}
}
generateProtoTasks {
all()*.plugins {
javalite { }
}
all().each { task ->
task.builtins {
remove java
}
}
}
}
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sat Jul 29 18:16:44 CEST 2017
#Tue Aug 01 17:02:31 CEST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip

0 comments on commit c7c9f95

Please sign in to comment.