Skip to content
Snippets Groups Projects
  1. Jun 04, 2020
  2. Jun 03, 2020
  3. May 28, 2020
  4. May 27, 2020
  5. May 25, 2020
  6. May 22, 2020
  7. May 18, 2020
  8. May 15, 2020
  9. May 14, 2020
    • Björn Vonheiden's avatar
      Use the common KafkaStreamsBuilder in all use cases · 9510cc88
      Björn Vonheiden authored
      The use cases extend the KafkaStreamsBuilder and only configure
      project specific stuff for the Kafaka streams application.
      This reduces in the KafkaStremBuilder classes the redundancy.
      9510cc88
    • Björn Vonheiden's avatar
      Add a buildProperty function to KafkaStreamsBuilder in commons · 66504d47
      Björn Vonheiden authored
      This allows the usecases to create its own Properties object if
      needed.
      66504d47
    • Björn Vonheiden's avatar
      Configure different dependencies for subprojects in gradle · 5e2719c0
      Björn Vonheiden authored
      - Define variables for commons projects and uc projects
      - Add different dependencies to the different subprojects
      - Apply application plugin only to ucs
      - allow uc to use the commons project as dependency
      
      diff --git a/build.gradle b/build.gradle
      index 6827860..694a127 100644
      --- a/build.gradle
      +++ b/build.gradle
      @@ -10,20 +10,27 @@ buildscript {
         }
       }
      
      -// Plugins for all projects
      +// Variables used to distinct different subprojects
      +def useCaseProjects = subprojects.findAll {it -> it.name.matches('uc(.)*')}
      +def commonProjects = subprojects.findAll {it -> it.name.matches('(.)*commons(.)*')}
      +
      +
      +// Plugins
       allprojects {
         apply plugin: 'eclipse'
       }
      
      -// Plugins for subprojects
       subprojects {
      -  apply plugin: 'application'
         apply plugin: 'checkstyle'
         apply plugin: 'pmd'
         apply plugin: 'com.github.spotbugs'
         apply plugin: 'java-library'
       }
      
      +configure(useCaseProjects){
      +    apply plugin: 'application'
      +}
      +
       // Java version for all subprojects
       subprojects {
         java {
      @@ -47,8 +54,8 @@ allprojects {
       	}
       }
      
      -// Dependencies
      -subprojects {
      +// Dependencies for all use cases
      +configure(useCaseProjects) {
         dependencies {
             // These dependencies is exported to consumers, that is to say found on their compile classpath.
             api('org.industrial-devops:titan-ccp-common:0.0.3-SNAPSHOT') { changing = true }
      @@ -60,6 +67,22 @@ subprojects {
             implementation 'com.google.guava:guava:24.1-jre'
             implementation 'org.jctools:jctools-core:2.1.1'
             implementation 'org.slf4j:slf4j-simple:1.6.1'
      +      implementation project(':application-kafkastreams-commons')
      +
      +      // Use JUnit test framework
      +      testImplementation 'junit:junit:4.12'
      +  }
      +}
      +
      +// Dependencies for all commons
      +configure(commonProjects) {
      +  dependencies {
      +      // These dependencies is exported to consumers, that is to say found on their compile classpath.
      +      api 'org.apache.kafka:kafka-clients:2.4.0'
      +
      +      // These dependencies are used internally, and not exposed to consumers on their own compile classpath.
      +      implementation 'org.slf4j:slf4j-simple:1.6.1'
      +      implementation('org.industrial-devops:titan-ccp-common:0.0.3-SNAPSHOT') { changing = true }
      
             // Use JUnit test framework
             testImplementation 'junit:junit:4.12'
      5e2719c0
    • Björn Vonheiden's avatar
      Implement an abstract KafkaStreamsBuilder class for streams applications · 6ca1e53c
      Björn Vonheiden authored
      Create an abstract KafkaStreamsBuilder class that can be used in kafka
      streams use cases.
      This should reduce the redundancy for reconfigure the properties in
      every streams application.
      Now only the topology needs to be defined by the use cases.
      6ca1e53c
    • Björn Vonheiden's avatar
      Add a kafkastream commons project · fe162e17
      Björn Vonheiden authored
      - Added application-kafkastreams-common project
      - modified root gradle project
      - configure eclipse quality tools and formatting
      fe162e17
    • Björn Vonheiden's avatar
      Remove unused time attribute aggregation classes from uc4 kafkaStreams app · 2f37edf6
      Björn Vonheiden authored
      - Remove DayOfWeek classes
      - Remove HourOfWeek classes
      2f37edf6
    • Björn Vonheiden's avatar
      Refactor uc1 kafka streams application · 29f14d89
      Björn Vonheiden authored
      - add application name and version as a property
      - checkstyle cleanups
      29f14d89
    • Sören Henning's avatar
      Merge branch 'feature/topLevelPackageJava' into 'master' · e8e74457
      Sören Henning authored
      Add top-level package for Java implementation
      
      Closes #6
      
      See merge request she/spesb!3
      e8e74457
    • Björn Vonheiden's avatar
    • Björn Vonheiden's avatar
      Change top level java package to spesb and adopt main class in gradle · 0a529341
      Björn Vonheiden authored
      Add the spesb prefix to all self implemented java packages of the
      project. Because this changes the fully qualified class name of
      the main classes the build.gradle files need to adopt to this.
      0a529341
Loading