diff --git a/build.gradle b/build.gradle index c73a8582d8b08b21bb5667ebcc047933c890855b..a38ff1ad3c96e422404abd3d4eb77de9958e237a 100644 --- a/build.gradle +++ b/build.gradle @@ -1,9 +1,4 @@ -apply plugin: 'java-library' -apply plugin: 'pmd' -apply plugin: 'checkstyle' -apply plugin: 'com.github.spotbugs' -apply plugin: 'eclipse' - +// Inherited to all subprojects buildscript { repositories { maven { @@ -15,6 +10,18 @@ buildscript { } } +allprojects { + apply plugin: 'eclipse' +} + +apply plugin: 'java-library' +apply plugin: 'pmd' +apply plugin: 'checkstyle' +apply plugin: 'com.github.spotbugs' + + + + sourceCompatibility = "1.11" targetCompatibility = "1.11" @@ -23,7 +30,7 @@ configurations.all { resolutionStrategy.cacheChangingModulesFor 0, 'seconds' } -allprojects { +allprojects { repositories { jcenter() maven { @@ -83,7 +90,7 @@ tasks.withType(com.github.spotbugs.SpotBugsTask) { task checkstyle { group 'Quality Assurance' description 'Run Checkstyle' - + dependsOn 'checkstyleMain' dependsOn 'checkstyleTest' } @@ -99,14 +106,16 @@ task pmd { task spotbugs { group 'Quality Assurance' description 'Run SpotBugs' - + dependsOn 'spotbugsMain' dependsOn 'spotbugsTest' } -eclipse { - classpath { - downloadSources=true - downloadJavadoc=true - } -} \ No newline at end of file +allprojects { + eclipse { + classpath { + downloadSources=true + downloadJavadoc=true + } + } +} diff --git a/uc1-application/build.gradle b/uc1-application/build.gradle index 3fe8803745e42682cf43d068779e63183d62c792..06eb221092abe3ee2fc938396444c8a0206497ce 100644 --- a/uc1-application/build.gradle +++ b/uc1-application/build.gradle @@ -1,5 +1,4 @@ apply plugin: 'application' -apply plugin: 'eclipse' buildscript { repositories { @@ -14,7 +13,7 @@ targetCompatibility = "1.11" dependencies { compile project(':') - + compile 'org.slf4j:slf4j-simple:1.6.1' // Use JUnit test framework @@ -22,10 +21,3 @@ dependencies { } mainClassName = "uc1.application.HistoryService" - -eclipse { - classpath { - downloadSources=true - downloadJavadoc=true - } -} \ No newline at end of file diff --git a/uc1-workload-generator/build.gradle b/uc1-workload-generator/build.gradle index 824566a24158d5f535e0dec8ef948903738c9100..77042baff123188c5a2971474f911829ac7f2604 100644 --- a/uc1-workload-generator/build.gradle +++ b/uc1-workload-generator/build.gradle @@ -1,5 +1,4 @@ apply plugin: 'application' -apply plugin: 'eclipse' buildscript { repositories { @@ -14,7 +13,7 @@ targetCompatibility = "1.11" dependencies { compile project(':') - + compile 'org.slf4j:slf4j-simple:1.6.1' // Use JUnit test framework @@ -22,10 +21,3 @@ dependencies { } mainClassName = "uc1.workloadGenerator.LoadGenerator" - -eclipse { - classpath { - downloadSources=true - downloadJavadoc=true - } -} \ No newline at end of file diff --git a/uc2-application/build.gradle b/uc2-application/build.gradle index 42bc3e0770db50e93bf2a08d5c039677489c4492..4b6e7fd926a708414ad82c052ed6c21f5fd7bc12 100644 --- a/uc2-application/build.gradle +++ b/uc2-application/build.gradle @@ -1,5 +1,4 @@ apply plugin: 'application' -apply plugin: 'eclipse' buildscript { repositories { @@ -14,7 +13,7 @@ targetCompatibility = "1.11" dependencies { compile project(':') - + compile 'org.slf4j:slf4j-simple:1.6.1' // Use JUnit test framework @@ -22,10 +21,3 @@ dependencies { } mainClassName = "uc2.application.AggregationService" - -eclipse { - classpath { - downloadSources=true - downloadJavadoc=true - } -} \ No newline at end of file diff --git a/uc2-workload-generator/build.gradle b/uc2-workload-generator/build.gradle index 833291011bb60bf84fcec323f2f0f63f9915d245..a4961a1bebbf1bc5cab74b98e3825745d98fed37 100644 --- a/uc2-workload-generator/build.gradle +++ b/uc2-workload-generator/build.gradle @@ -1,5 +1,4 @@ apply plugin: 'application' -apply plugin: 'eclipse' buildscript { repositories { @@ -14,7 +13,7 @@ targetCompatibility = "1.11" dependencies { compile project(':') - + compile 'org.slf4j:slf4j-simple:1.6.1' // Use JUnit test framework @@ -22,10 +21,3 @@ dependencies { } mainClassName = "uc2.workloadGenerator.LoadGenerator" - -eclipse { - classpath { - downloadSources=true - downloadJavadoc=true - } -} \ No newline at end of file diff --git a/uc3-application/build.gradle b/uc3-application/build.gradle index 01f47ffbcde8beb2e02f40ff498516742b3ed49f..6b082fd8d8a24cb575792b37440d003fdd04648c 100644 --- a/uc3-application/build.gradle +++ b/uc3-application/build.gradle @@ -1,5 +1,4 @@ apply plugin: 'application' -apply plugin: 'eclipse' buildscript { repositories { @@ -12,7 +11,7 @@ buildscript { sourceCompatibility = "1.11" targetCompatibility = "1.11" -allprojects { +allprojects { repositories { jcenter() maven { @@ -26,7 +25,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' @@ -35,10 +34,3 @@ dependencies { } mainClassName = "uc3.application.HistoryService" - -eclipse { - classpath { - downloadSources=true - downloadJavadoc=true - } -} \ No newline at end of file diff --git a/uc3-workload-generator/build.gradle b/uc3-workload-generator/build.gradle index 5cb1fdfccc5677b64447b3e644e7fca47c2cd571..7e9b736af89a6c3857fe3e9ba7fc3d1beb96b575 100644 --- a/uc3-workload-generator/build.gradle +++ b/uc3-workload-generator/build.gradle @@ -1,5 +1,4 @@ apply plugin: 'application' -apply plugin: 'eclipse' buildscript { repositories { @@ -14,7 +13,7 @@ targetCompatibility = "1.11" dependencies { compile project(':') - + compile 'org.slf4j:slf4j-simple:1.6.1' // Use JUnit test framework @@ -22,10 +21,3 @@ dependencies { } mainClassName = "uc3.workloadGenerator.LoadGenerator" - -eclipse { - classpath { - downloadSources=true - downloadJavadoc=true - } -} \ No newline at end of file diff --git a/uc4-application/build.gradle b/uc4-application/build.gradle index 009c083e1fcd3dffcbb358098e2e0e0900f98e07..c465bb8b260226b4e85222952c0cb305d2af605b 100644 --- a/uc4-application/build.gradle +++ b/uc4-application/build.gradle @@ -1,5 +1,4 @@ apply plugin: 'application' -apply plugin: 'eclipse' buildscript { repositories { @@ -12,7 +11,7 @@ buildscript { sourceCompatibility = "1.11" targetCompatibility = "1.11" -allprojects { +allprojects { repositories { jcenter() maven { @@ -26,7 +25,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') @@ -35,10 +34,3 @@ dependencies { } mainClassName = "uc4.application.HistoryService" - -eclipse { - classpath { - downloadSources=true - downloadJavadoc=true - } -} diff --git a/uc4-workload-generator/build.gradle b/uc4-workload-generator/build.gradle index 5902b630740148b0cfe0a387d76d16e9e19468e1..05d321cddcf39545934cc81b4ab1e55431119de7 100644 --- a/uc4-workload-generator/build.gradle +++ b/uc4-workload-generator/build.gradle @@ -1,5 +1,4 @@ apply plugin: 'application' -apply plugin: 'eclipse' buildscript { repositories { @@ -14,7 +13,7 @@ targetCompatibility = "1.11" dependencies { compile project(':') - + compile 'org.slf4j:slf4j-simple:1.6.1' // Use JUnit test framework @@ -22,10 +21,3 @@ dependencies { } mainClassName = "uc4.workloadGenerator.LoadGenerator" - -eclipse { - classpath { - downloadSources=true - downloadJavadoc=true - } -} \ No newline at end of file