numass-framework/numass-core/numass-data-proto/build.gradle.kts

47 lines
1.0 KiB
Plaintext
Raw Permalink Normal View History

2018-11-25 18:03:31 +03:00
import com.google.protobuf.gradle.protobuf
import com.google.protobuf.gradle.protoc
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
idea
kotlin("jvm")
2019-07-22 16:36:49 +03:00
id("com.google.protobuf") version "0.8.8"
2018-11-25 18:03:31 +03:00
}
repositories {
mavenCentral()
}
dependencies {
compile(kotlin("stdlib-jdk8"))
compile("com.google.protobuf:protobuf-java:3.6.1")
compile(project(":numass-core:numass-data-api"))
compile("hep.dataforge:dataforge-storage")
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
dependsOn(":numass-core:numass-data-proto:generateProto")
}
2019-07-22 16:36:49 +03:00
//sourceSets {
// create("proto") {
// proto {
// srcDir("src/main/proto")
// }
// }
//}
2018-11-25 18:03:31 +03:00
protobuf {
// Configure the protoc executable
protoc {
// Download from repositories
artifact = "com.google.protobuf:protoc:3.6.1"
}
generatedFilesBaseDir = "$projectDir/gen"
}
//tasks.getByName("clean").doLast{
// delete(protobuf.protobuf.generatedFilesBaseDir)
//}