Skip to content
Snippets Groups Projects
  1. Jun 07, 2020
  2. Jun 04, 2020
  3. Jun 03, 2020
  4. May 28, 2020
  5. May 27, 2020
  6. May 25, 2020
  7. May 22, 2020
  8. May 18, 2020
  9. May 15, 2020
  10. 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
Loading