Skip to content
Snippets Groups Projects
Commit 911e864c authored by Björn Vonheiden's avatar Björn Vonheiden
Browse files

Share dependencies in gradle with all subprojects

parent 40c65b0d
No related branches found
No related tags found
1 merge request!2Gradle + CI improvements
This commit is part of merge request !2. Comments created here will be created in the context of that merge request.
...@@ -21,10 +21,8 @@ subprojects { ...@@ -21,10 +21,8 @@ subprojects {
apply plugin: 'checkstyle' apply plugin: 'checkstyle'
apply plugin: 'pmd' apply plugin: 'pmd'
apply plugin: 'com.github.spotbugs' apply plugin: 'com.github.spotbugs'
}
// Local plugins
apply plugin: 'java-library' apply plugin: 'java-library'
}
// Java version for all subprojects // Java version for all subprojects
subprojects { subprojects {
...@@ -34,13 +32,12 @@ subprojects { ...@@ -34,13 +32,12 @@ subprojects {
} }
} }
configurations.all {
// Check for updates every build // Check for updates every build
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds' resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
} }
// // Repositories for all projects
allprojects { allprojects {
repositories { repositories {
jcenter() jcenter()
...@@ -50,6 +47,8 @@ allprojects { ...@@ -50,6 +47,8 @@ allprojects {
} }
} }
// Dependencies
subprojects {
dependencies { dependencies {
// These dependencies is exported to consumers, that is to say found on their compile classpath. // 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('org.industrial-devops:titan-ccp-common:0.0.3-SNAPSHOT') { changing = true }
...@@ -60,10 +59,13 @@ dependencies { ...@@ -60,10 +59,13 @@ dependencies {
implementation 'org.apache.kafka:kafka-clients:2.1.0' implementation 'org.apache.kafka:kafka-clients:2.1.0'
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'
// Use JUnit test framework // Use JUnit test framework
testImplementation 'junit:junit:4.12' testImplementation 'junit:junit:4.12'
} }
}
// Per default XML reports for SpotBugs are generated // Per default XML reports for SpotBugs are generated
// Include this to generate HTML reports // Include this to generate HTML reports
tasks.withType(com.github.spotbugs.SpotBugsTask) { tasks.withType(com.github.spotbugs.SpotBugsTask) {
... ...
......
dependencies {
compile project(':')
compile 'org.slf4j:slf4j-simple:1.6.1'
// Use JUnit test framework
testCompile 'junit:junit:4.12'
}
mainClassName = "uc1.application.HistoryService" mainClassName = "uc1.application.HistoryService"
dependencies {
compile project(':')
compile 'org.slf4j:slf4j-simple:1.6.1'
// Use JUnit test framework
testCompile 'junit:junit:4.12'
}
mainClassName = "uc1.workloadGenerator.LoadGenerator" mainClassName = "uc1.workloadGenerator.LoadGenerator"
dependencies {
compile project(':')
compile 'org.slf4j:slf4j-simple:1.6.1'
// Use JUnit test framework
testCompile 'junit:junit:4.12'
}
mainClassName = "uc2.application.AggregationService" mainClassName = "uc2.application.AggregationService"
dependencies {
compile project(':')
compile 'org.slf4j:slf4j-simple:1.6.1'
// Use JUnit test framework
testCompile 'junit:junit:4.12'
}
mainClassName = "uc2.workloadGenerator.LoadGenerator" mainClassName = "uc2.workloadGenerator.LoadGenerator"
allprojects { allprojects {
repositories { repositories {
jcenter()
maven {
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
maven { maven {
url 'https://packages.confluent.io/maven/' url 'https://packages.confluent.io/maven/'
} }
...@@ -11,13 +7,7 @@ allprojects { ...@@ -11,13 +7,7 @@ allprojects {
} }
dependencies { dependencies {
compile project(':')
compile('org.industrial-devops:titan-ccp-common-kafka:0.1.0-SNAPSHOT') 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" mainClassName = "uc3.application.HistoryService"
dependencies {
compile project(':')
compile 'org.slf4j:slf4j-simple:1.6.1'
// Use JUnit test framework
testCompile 'junit:junit:4.12'
}
mainClassName = "uc3.workloadGenerator.LoadGenerator" mainClassName = "uc3.workloadGenerator.LoadGenerator"
allprojects { allprojects {
repositories { repositories {
jcenter()
maven {
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
maven { maven {
url 'https://packages.confluent.io/maven/' url 'https://packages.confluent.io/maven/'
} }
...@@ -11,13 +7,7 @@ allprojects { ...@@ -11,13 +7,7 @@ allprojects {
} }
dependencies { dependencies {
compile project(':')
compile 'org.slf4j:slf4j-simple:1.6.1'
compile('org.industrial-devops:titan-ccp-common-kafka:0.1.0-SNAPSHOT') 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" mainClassName = "uc4.application.HistoryService"
dependencies {
compile project(':')
compile 'org.slf4j:slf4j-simple:1.6.1'
// Use JUnit test framework
testCompile 'junit:junit:4.12'
}
mainClassName = "uc4.workloadGenerator.LoadGenerator" mainClassName = "uc4.workloadGenerator.LoadGenerator"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment