Fixed protobuf dependency problems
parent
f700486ac4
commit
3786234d20
13
build.gradle
13
build.gradle
|
@ -5,6 +5,7 @@ plugins {
|
|||
}
|
||||
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'com.google.protobuf'
|
||||
apply plugin: 'eclipse'
|
||||
apply plugin: 'idea'
|
||||
|
||||
|
@ -41,6 +42,9 @@ dependencies {
|
|||
runtime 'ch.qos.logback:logback-classic:1.1.2'
|
||||
runtime 'ch.qos.logback:logback-core:1.1.2'
|
||||
|
||||
// Google protobufs
|
||||
compile 'com.google.protobuf:protobuf-java:3.+'
|
||||
|
||||
testCompile 'junit:junit:4.+'
|
||||
|
||||
runtime 'org.codehaus.groovy:groovy:2.4.+'
|
||||
|
@ -49,6 +53,15 @@ dependencies {
|
|||
|
||||
/*==== You probably don't have to edit below this line =======*/
|
||||
|
||||
protobuf {
|
||||
// Configure the protoc executable
|
||||
protoc {
|
||||
// Download from repositories
|
||||
//artifact = 'com.google.protobuf:protoc:3.0.0-alpha-3'
|
||||
artifact = 'com.google.protobuf:protoc:3.+'
|
||||
}
|
||||
}
|
||||
|
||||
// Used to generate initial maven-dir layout
|
||||
task "create-dirs" { description = "Create default maven directory structure" } << {
|
||||
sourceSets*.java.srcDirs*.each { it.mkdirs() }
|
||||
|
|
Loading…
Reference in New Issue