Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions clients/cloud/java-springcloudstream/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
HELP.md
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**
!**/src/test/**

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
out/

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

### VS Code ###
.vscode/
67 changes: 67 additions & 0 deletions clients/cloud/java-springcloudstream/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.commercehub.gradle.plugin:gradle-avro-plugin:0.15.1'
}
}

plugins {
id 'org.springframework.boot' version '2.2.4.RELEASE'
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
id 'java'
}

apply plugin: 'com.commercehub.gradle.plugin.avro'
apply plugin: 'idea'

group = 'io.confluent.examples.clients.cloud.scs'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'

configurations {
compileOnly {
extendsFrom annotationProcessor
}
}

repositories {
jcenter()

maven {
url 'http://packages.confluent.io/maven'
}
}

ext {
set('springCloudVersion', "Hoxton.SR1")
}

dependencies {
implementation 'org.apache.kafka:kafka-streams'
implementation 'org.springframework.cloud:spring-cloud-stream'
implementation 'org.springframework.cloud:spring-cloud-stream-binder-kafka'
implementation 'org.springframework.cloud:spring-cloud-stream-binder-kafka-streams'
implementation 'org.springframework.kafka:spring-kafka'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
testImplementation 'org.springframework.cloud:spring-cloud-stream-test-support'
testImplementation 'org.springframework.kafka:spring-kafka-test'

implementation 'org.apache.avro:avro'
implementation 'io.confluent:kafka-streams-avro-serde:5.4.0'
}

dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}

test {
useJUnitPlatform()
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Fri Feb 14 16:23:55 EST 2020
distributionUrl=https\://services.gradle.org/distributions/gradle-6.0.1-all.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
172 changes: 172 additions & 0 deletions clients/cloud/java-springcloudstream/gradlew

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

84 changes: 84 additions & 0 deletions clients/cloud/java-springcloudstream/gradlew.bat

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

1 change: 1 addition & 0 deletions clients/cloud/java-springcloudstream/settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rootProject.name = 'spring-cloud-stream-kafka'
11 changes: 11 additions & 0 deletions clients/cloud/java-springcloudstream/src/main/avro/DataRecord.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"namespace": "io.confluent.examples.clients.cloud",
"type": "record",
"name": "DataRecordAvro",
"fields": [
{
"name": "count",
"type": "long"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package io.confluent.examples.clients.cloud.scs.model;


import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class DataRecord {

Long count;
}
Loading