diff --git a/build.gradle b/build.gradle index 98b762b74e66244a0defb0a381ba996b0824ddec..6827860869614f2d0ff575cfb5e6229e6d4a3806 100644 --- a/build.gradle +++ b/build.gradle @@ -21,11 +21,9 @@ subprojects { apply plugin: 'checkstyle' apply plugin: 'pmd' apply plugin: 'com.github.spotbugs' + apply plugin: 'java-library' } -// Local plugins -apply plugin: 'java-library' - // Java version for all subprojects subprojects { java { @@ -34,13 +32,12 @@ subprojects { } } - +// Check for updates every build configurations.all { - // Check for updates every build resolutionStrategy.cacheChangingModulesFor 0, 'seconds' } -// +// Repositories for all projects allprojects { repositories { jcenter() @@ -50,20 +47,25 @@ allprojects { } } -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 } - api 'net.kieker-monitoring:kieker:1.14-SNAPSHOT' - api 'net.sourceforge.teetime:teetime:3.0' - - // 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 'com.google.guava:guava:24.1-jre' - implementation 'org.jctools:jctools-core:2.1.1' - - // Use JUnit test framework - testImplementation 'junit:junit:4.12' +// Dependencies +subprojects { + 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 } + api 'net.kieker-monitoring:kieker:1.14-SNAPSHOT' + api 'net.sourceforge.teetime:teetime:3.0' + + // 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 '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' + } } + // Per default XML reports for SpotBugs are generated // Include this to generate HTML reports tasks.withType(com.github.spotbugs.SpotBugsTask) { diff --git a/uc1-application/build.gradle b/uc1-application/build.gradle index 58d1932323a177b202de3fa6a6bb4b905efd5718..f6b2ee26aa8ad435700553cc435f4d864b2f6d8b 100644 --- a/uc1-application/build.gradle +++ b/uc1-application/build.gradle @@ -1,10 +1 @@ -dependencies { - compile project(':') - - compile 'org.slf4j:slf4j-simple:1.6.1' - - // Use JUnit test framework - testCompile 'junit:junit:4.12' -} - mainClassName = "uc1.application.HistoryService" diff --git a/uc1-workload-generator/build.gradle b/uc1-workload-generator/build.gradle index 4ac401e5fa2e2d0de964952673128a899e4f1771..0663dcd33e42967dbf79c33a7c717346718dabd6 100644 --- a/uc1-workload-generator/build.gradle +++ b/uc1-workload-generator/build.gradle @@ -1,10 +1 @@ -dependencies { - compile project(':') - - compile 'org.slf4j:slf4j-simple:1.6.1' - - // Use JUnit test framework - testCompile 'junit:junit:4.12' -} - mainClassName = "uc1.workloadGenerator.LoadGenerator" diff --git a/uc2-application/build.gradle b/uc2-application/build.gradle index e4161983a6cb964c1f666cc548b32f48801da4aa..5ef5e63a04db8ce01659c149d10c9684bf614099 100644 --- a/uc2-application/build.gradle +++ b/uc2-application/build.gradle @@ -1,10 +1 @@ -dependencies { - compile project(':') - - compile 'org.slf4j:slf4j-simple:1.6.1' - - // Use JUnit test framework - testCompile 'junit:junit:4.12' -} - mainClassName = "uc2.application.AggregationService" diff --git a/uc2-workload-generator/build.gradle b/uc2-workload-generator/build.gradle index a59af4ae0d314641d3b3252ecdd7d6e262b59fe3..bb4f4a0ca5e07abcc32a7bf0013e6047239da9dc 100644 --- a/uc2-workload-generator/build.gradle +++ b/uc2-workload-generator/build.gradle @@ -1,10 +1 @@ -dependencies { - compile project(':') - - compile 'org.slf4j:slf4j-simple:1.6.1' - - // Use JUnit test framework - testCompile 'junit:junit:4.12' -} - mainClassName = "uc2.workloadGenerator.LoadGenerator" diff --git a/uc3-application/build.gradle b/uc3-application/build.gradle index 8be200135ddf4667ffc326d71b956f737a89fbe9..343619a6a5f9c30bf62d405830ae4169ae911f4a 100644 --- a/uc3-application/build.gradle +++ b/uc3-application/build.gradle @@ -1,9 +1,5 @@ allprojects { repositories { - jcenter() - maven { - url "https://oss.sonatype.org/content/repositories/snapshots/" - } maven { url 'https://packages.confluent.io/maven/' } @@ -11,13 +7,7 @@ allprojects { } dependencies { - compile project(':') - compile('org.industrial-devops:titan-ccp-common-kafka:0.1.0-SNAPSHOT') - compile 'org.slf4j:slf4j-simple:1.6.1' - - // Use JUnit test framework - testCompile 'junit:junit:4.12' } mainClassName = "uc3.application.HistoryService" diff --git a/uc3-workload-generator/build.gradle b/uc3-workload-generator/build.gradle index 87c4073341eb1771be4cf19f34490095b428df72..f1019cd12c9bf23e75816cad9640c8d8396f5c9b 100644 --- a/uc3-workload-generator/build.gradle +++ b/uc3-workload-generator/build.gradle @@ -1,10 +1 @@ -dependencies { - compile project(':') - - compile 'org.slf4j:slf4j-simple:1.6.1' - - // Use JUnit test framework - testCompile 'junit:junit:4.12' -} - mainClassName = "uc3.workloadGenerator.LoadGenerator" diff --git a/uc4-application/build.gradle b/uc4-application/build.gradle index b214dac46358b9d4bceec8af831dcbe1ab913557..ce402c3cc109a5591e518c4bc263c024e892116c 100644 --- a/uc4-application/build.gradle +++ b/uc4-application/build.gradle @@ -1,9 +1,5 @@ allprojects { repositories { - jcenter() - maven { - url "https://oss.sonatype.org/content/repositories/snapshots/" - } maven { url 'https://packages.confluent.io/maven/' } @@ -11,13 +7,7 @@ allprojects { } dependencies { - compile project(':') - - compile 'org.slf4j:slf4j-simple:1.6.1' compile('org.industrial-devops:titan-ccp-common-kafka:0.1.0-SNAPSHOT') - - // Use JUnit test framework - testCompile 'junit:junit:4.12' } mainClassName = "uc4.application.HistoryService" diff --git a/uc4-workload-generator/build.gradle b/uc4-workload-generator/build.gradle index f2d0178cc5125603f17de63c6c7441850676976e..9d61f82a876eff5ac7ffa26beb6aa7ba50c91503 100644 --- a/uc4-workload-generator/build.gradle +++ b/uc4-workload-generator/build.gradle @@ -1,10 +1 @@ -dependencies { - compile project(':') - - compile 'org.slf4j:slf4j-simple:1.6.1' - - // Use JUnit test framework - testCompile 'junit:junit:4.12' -} - mainClassName = "uc4.workloadGenerator.LoadGenerator"