2017-04-13 17:06:41 +03:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.1'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'com.google.protobuf'
|
|
|
|
|
2017-04-15 22:15:53 +03:00
|
|
|
description = "A bse package with minimal dependencies for numass"
|
|
|
|
|
2017-04-13 17:06:41 +03:00
|
|
|
|
2015-12-18 16:20:47 +03:00
|
|
|
dependencies {
|
2017-04-05 22:07:43 +03:00
|
|
|
compile "hep.dataforge:dataforge-storage" //project(':dataforge-storage')
|
2017-07-09 22:05:29 +03:00
|
|
|
compile 'com.google.protobuf:protobuf-java:3.3.0'
|
2017-04-13 17:06:41 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
protobuf {
|
|
|
|
// Configure the protoc executable
|
|
|
|
protoc {
|
|
|
|
// Download from repositories
|
2017-07-09 22:05:29 +03:00
|
|
|
artifact = 'com.google.protobuf:protoc:3.3.0'
|
2017-04-13 17:06:41 +03:00
|
|
|
}
|
|
|
|
generatedFilesBaseDir = "$projectDir/gen"
|
|
|
|
}
|
|
|
|
|
|
|
|
clean {
|
|
|
|
delete protobuf.generatedFilesBaseDir
|
2015-12-18 16:20:47 +03:00
|
|
|
}
|
|
|
|
|
2017-04-13 17:06:41 +03:00
|
|
|
idea {
|
|
|
|
module {
|
|
|
|
sourceDirs += file("${protobuf.generatedFilesBaseDir}/main/java");
|
|
|
|
sourceDirs += file("src/main/proto")
|
|
|
|
}
|
|
|
|
}
|