Basically the documentation only wrote a quickstart in Maven, so make a note of how to start Apache Beam with Gradle and IntelliJ.
This time, I did not think about specifying the Option for Pipeline, but for the time being, it is a setting so that it can be operated in the local environment. There is a possibility that additional descriptions will be made in the future, such as specifying an option for Pipeline.
groupId: project root package name artifactId: project name
Set as follows
If you don't mind staying displayed, proceed
group 'hoge'
version '1.0-SNAPSHOT'
apply plugin: 'java'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile group: 'com.google.cloud.dataflow', name: 'google-cloud-dataflow-java-sdk-all', version: '2.0.0'
testCompile group: 'junit', name: 'junit', version: '4.11'
}
If you change build.gradle to the above and wait for a while, IntelliJ will build it for you, so you can use Apache Beam.
It can be pulled from the Maven repository below, like the build.gradle I posted. Maven Repository: com.google.cloud.dataflow
Gradle beginners start Gradle-Qiita
Maven Repository: com.google.cloud.dataflow
Recommended Posts