Skip to content
Snippets Groups Projects
Commit 98bd4dcd authored by Simon Ehrenstein's avatar Simon Ehrenstein
Browse files

Fix gradle setuo

parent 6b1d5a68
No related branches found
No related tags found
1 merge request!6Add Distributed Workload Generator
...@@ -10,20 +10,28 @@ buildscript { ...@@ -10,20 +10,28 @@ buildscript {
} }
} }
// Plugins for all projects // Variables used to distinct different subprojects
def useCaseProjects = subprojects.findAll {it -> it.name.matches('uc(.)*')}
def useCaseApplications = subprojects.findAll {it -> it.name.matches('uc[0-9]+-application')}
def useCaseGenerators = subprojects.findAll {it -> it.name.matches('uc[0-9]+-workload-generator*')}
def commonProjects = subprojects.findAll {it -> it.name.matches('(.)*common(s?)(.)*')}
// Plugins
allprojects { allprojects {
apply plugin: 'eclipse' apply plugin: 'eclipse'
} }
// Plugins for subprojects
subprojects { subprojects {
apply plugin: 'application'
apply plugin: 'checkstyle' apply plugin: 'checkstyle'
apply plugin: 'pmd' apply plugin: 'pmd'
apply plugin: 'com.github.spotbugs' apply plugin: 'com.github.spotbugs'
apply plugin: 'java-library' apply plugin: 'java-library'
} }
configure(useCaseProjects){
apply plugin: 'application'
}
// Java version for all subprojects // Java version for all subprojects
subprojects { subprojects {
java { java {
...@@ -44,22 +52,59 @@ allprojects { ...@@ -44,22 +52,59 @@ allprojects {
maven { maven {
url "https://oss.sonatype.org/content/repositories/snapshots/" url "https://oss.sonatype.org/content/repositories/snapshots/"
} }
maven {
url 'https://packages.confluent.io/maven/'
}
} }
} }
// Dependencies // Dependencies for all use case applications
subprojects { configure(useCaseApplications) {
dependencies { dependencies {
// These dependencies is exported to consumers, that is to say found on their compile classpath. // These dependencies are used internally, and not exposed to consumers on their own compile classpath.
api('org.industrial-devops:titan-ccp-common:0.0.3-SNAPSHOT') { changing = true } implementation('org.industrial-devops:titan-ccp-common:0.0.3-SNAPSHOT') { changing = true } // This branch depends still on old version of titan-ccp-common
api 'net.kieker-monitoring:kieker:1.14-SNAPSHOT' implementation('org.industrial-devops:titan-ccp-common-kafka:0.1.0-SNAPSHOT') { changing = true }
api 'net.sourceforge.teetime:teetime:3.0' implementation 'com.google.guava:guava:24.1-jre'
implementation 'org.jctools:jctools-core:2.1.1'
implementation 'org.slf4j:slf4j-simple:1.6.1'
// Use JUnit test framework
testImplementation 'junit:junit:4.12'
implementation('org.industrial-devops:titan-ccp-common:0.0.3-SNAPSHOT') { changing = true }
}
}
// Dependencies for all use case generators
configure(useCaseGenerators) {
dependencies {
// These dependencies are used internally, and not exposed to consumers on their own compile classpath. // These dependencies are used internally, and not exposed to consumers on their own compile classpath.
implementation 'org.apache.kafka:kafka-clients:2.1.0' // implementation('org.industrial-devops:titan-ccp-common:0.1.0-SNAPSHOT') { changing = true }
implementation('org.industrial-devops:titan-ccp-common-kafka:0.0.1-SNAPSHOT') { changing = true }
implementation 'com.google.guava:guava:24.1-jre' implementation 'com.google.guava:guava:24.1-jre'
implementation 'org.jctools:jctools-core:2.1.1' implementation 'org.jctools:jctools-core:2.1.1'
implementation 'org.slf4j:slf4j-simple:1.6.1' implementation 'org.slf4j:slf4j-simple:1.6.1'
implementation project(':workload-generator-common')
// maintain build of generators
implementation 'net.kieker-monitoring:kieker:1.14-SNAPSHOT'
implementation('org.industrial-devops:titan-ccp-common:0.0.3-SNAPSHOT') { changing = true }
// 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 } // This branch depends still on old version of titan-ccp-common
implementation('org.industrial-devops:titan-ccp-common-kafka:0.1.0-SNAPSHOT') { changing = true }
// Use JUnit test framework // Use JUnit test framework
testImplementation 'junit:junit:4.12' testImplementation 'junit:junit:4.12'
......
rootProject.name = 'scalability-benchmarking' rootProject.name = 'scalability-benchmarking'
include 'workload-generator-common'
include 'uc1-workload-generator' include 'uc1-workload-generator'
include 'uc1-application' include 'uc1-application'
...@@ -10,6 +12,4 @@ include 'uc3-workload-generator' ...@@ -10,6 +12,4 @@ include 'uc3-workload-generator'
include 'uc3-application' include 'uc3-application'
include 'uc4-workload-generator' include 'uc4-workload-generator'
include 'uc4-application' include 'uc4-application'
\ No newline at end of file
include 'workload-generator-common'
\ No newline at end of file
mainClassName = "spesb.uc1.workloadgenerator.LoadGenerator" mainClassName = "spesb.uc1.workloadgenerator.LoadGenerator"
dependencies {
compile project(':workload-generator-common')
}
\ No newline at end of file
mainClassName = "spesb.uc2.workloadgenerator.LoadGenerator" mainClassName = "spesb.uc2.workloadgenerator.LoadGenerator"
\ No newline at end of file
dependencies {
compile project(':workload-generator-common')
}
\ No newline at end of file
mainClassName = "spesb.uc3.workloadgenerator.LoadGenerator" mainClassName = "spesb.uc3.workloadgenerator.LoadGenerator"
dependencies {
compile project(':workload-generator-common')
}
\ No newline at end of file
mainClassName = "spesb.uc4.workloadgenerator.LoadGenerator" mainClassName = "spesb.uc4.workloadgenerator.LoadGenerator"
dependencies {
compile project(':workload-generator-common')
}
\ No newline at end of file
apply plugin: 'java-library'
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
}
sourceCompatibility = "1.11"
targetCompatibility = "1.11"
dependencies { dependencies {
compile 'org.apache.curator:curator-recipes:4.3.0' compile 'org.apache.curator:curator-recipes:4.3.0'
compile 'org.slf4j:slf4j-simple:1.6.1'
// Use JUnit test framework
testCompile 'junit:junit:4.12'
}
eclipse {
classpath {
downloadSources=true
downloadJavadoc=true
}
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment