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

Remove eclipse plugin from gradle subprojects and configure in root

parent 975b3c9b
No related branches found
No related tags found
1 merge request!2Gradle + CI improvements
apply plugin: 'java-library' // Inherited to all subprojects
apply plugin: 'pmd'
apply plugin: 'checkstyle'
apply plugin: 'com.github.spotbugs'
apply plugin: 'eclipse'
buildscript { buildscript {
repositories { repositories {
maven { maven {
...@@ -15,6 +10,18 @@ buildscript { ...@@ -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" sourceCompatibility = "1.11"
targetCompatibility = "1.11" targetCompatibility = "1.11"
...@@ -23,7 +30,7 @@ configurations.all { ...@@ -23,7 +30,7 @@ configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds' resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
} }
allprojects { allprojects {
repositories { repositories {
jcenter() jcenter()
maven { maven {
...@@ -83,7 +90,7 @@ tasks.withType(com.github.spotbugs.SpotBugsTask) { ...@@ -83,7 +90,7 @@ tasks.withType(com.github.spotbugs.SpotBugsTask) {
task checkstyle { task checkstyle {
group 'Quality Assurance' group 'Quality Assurance'
description 'Run Checkstyle' description 'Run Checkstyle'
dependsOn 'checkstyleMain' dependsOn 'checkstyleMain'
dependsOn 'checkstyleTest' dependsOn 'checkstyleTest'
} }
...@@ -99,14 +106,16 @@ task pmd { ...@@ -99,14 +106,16 @@ task pmd {
task spotbugs { task spotbugs {
group 'Quality Assurance' group 'Quality Assurance'
description 'Run SpotBugs' description 'Run SpotBugs'
dependsOn 'spotbugsMain' dependsOn 'spotbugsMain'
dependsOn 'spotbugsTest' dependsOn 'spotbugsTest'
} }
eclipse { allprojects {
classpath { eclipse {
downloadSources=true classpath {
downloadJavadoc=true downloadSources=true
} downloadJavadoc=true
} }
\ No newline at end of file }
}
apply plugin: 'application' apply plugin: 'application'
apply plugin: 'eclipse'
buildscript { buildscript {
repositories { repositories {
...@@ -14,7 +13,7 @@ targetCompatibility = "1.11" ...@@ -14,7 +13,7 @@ targetCompatibility = "1.11"
dependencies { dependencies {
compile project(':') compile project(':')
compile 'org.slf4j:slf4j-simple:1.6.1' compile 'org.slf4j:slf4j-simple:1.6.1'
// Use JUnit test framework // Use JUnit test framework
...@@ -22,10 +21,3 @@ dependencies { ...@@ -22,10 +21,3 @@ dependencies {
} }
mainClassName = "uc1.application.HistoryService" mainClassName = "uc1.application.HistoryService"
eclipse {
classpath {
downloadSources=true
downloadJavadoc=true
}
}
\ No newline at end of file
apply plugin: 'application' apply plugin: 'application'
apply plugin: 'eclipse'
buildscript { buildscript {
repositories { repositories {
...@@ -14,7 +13,7 @@ targetCompatibility = "1.11" ...@@ -14,7 +13,7 @@ targetCompatibility = "1.11"
dependencies { dependencies {
compile project(':') compile project(':')
compile 'org.slf4j:slf4j-simple:1.6.1' compile 'org.slf4j:slf4j-simple:1.6.1'
// Use JUnit test framework // Use JUnit test framework
...@@ -22,10 +21,3 @@ dependencies { ...@@ -22,10 +21,3 @@ dependencies {
} }
mainClassName = "uc1.workloadGenerator.LoadGenerator" mainClassName = "uc1.workloadGenerator.LoadGenerator"
eclipse {
classpath {
downloadSources=true
downloadJavadoc=true
}
}
\ No newline at end of file
apply plugin: 'application' apply plugin: 'application'
apply plugin: 'eclipse'
buildscript { buildscript {
repositories { repositories {
...@@ -14,7 +13,7 @@ targetCompatibility = "1.11" ...@@ -14,7 +13,7 @@ targetCompatibility = "1.11"
dependencies { dependencies {
compile project(':') compile project(':')
compile 'org.slf4j:slf4j-simple:1.6.1' compile 'org.slf4j:slf4j-simple:1.6.1'
// Use JUnit test framework // Use JUnit test framework
...@@ -22,10 +21,3 @@ dependencies { ...@@ -22,10 +21,3 @@ dependencies {
} }
mainClassName = "uc2.application.AggregationService" mainClassName = "uc2.application.AggregationService"
eclipse {
classpath {
downloadSources=true
downloadJavadoc=true
}
}
\ No newline at end of file
apply plugin: 'application' apply plugin: 'application'
apply plugin: 'eclipse'
buildscript { buildscript {
repositories { repositories {
...@@ -14,7 +13,7 @@ targetCompatibility = "1.11" ...@@ -14,7 +13,7 @@ targetCompatibility = "1.11"
dependencies { dependencies {
compile project(':') compile project(':')
compile 'org.slf4j:slf4j-simple:1.6.1' compile 'org.slf4j:slf4j-simple:1.6.1'
// Use JUnit test framework // Use JUnit test framework
...@@ -22,10 +21,3 @@ dependencies { ...@@ -22,10 +21,3 @@ dependencies {
} }
mainClassName = "uc2.workloadGenerator.LoadGenerator" mainClassName = "uc2.workloadGenerator.LoadGenerator"
eclipse {
classpath {
downloadSources=true
downloadJavadoc=true
}
}
\ No newline at end of file
apply plugin: 'application' apply plugin: 'application'
apply plugin: 'eclipse'
buildscript { buildscript {
repositories { repositories {
...@@ -12,7 +11,7 @@ buildscript { ...@@ -12,7 +11,7 @@ buildscript {
sourceCompatibility = "1.11" sourceCompatibility = "1.11"
targetCompatibility = "1.11" targetCompatibility = "1.11"
allprojects { allprojects {
repositories { repositories {
jcenter() jcenter()
maven { maven {
...@@ -26,7 +25,7 @@ allprojects { ...@@ -26,7 +25,7 @@ allprojects {
dependencies { dependencies {
compile project(':') 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' compile 'org.slf4j:slf4j-simple:1.6.1'
...@@ -35,10 +34,3 @@ dependencies { ...@@ -35,10 +34,3 @@ dependencies {
} }
mainClassName = "uc3.application.HistoryService" mainClassName = "uc3.application.HistoryService"
eclipse {
classpath {
downloadSources=true
downloadJavadoc=true
}
}
\ No newline at end of file
apply plugin: 'application' apply plugin: 'application'
apply plugin: 'eclipse'
buildscript { buildscript {
repositories { repositories {
...@@ -14,7 +13,7 @@ targetCompatibility = "1.11" ...@@ -14,7 +13,7 @@ targetCompatibility = "1.11"
dependencies { dependencies {
compile project(':') compile project(':')
compile 'org.slf4j:slf4j-simple:1.6.1' compile 'org.slf4j:slf4j-simple:1.6.1'
// Use JUnit test framework // Use JUnit test framework
...@@ -22,10 +21,3 @@ dependencies { ...@@ -22,10 +21,3 @@ dependencies {
} }
mainClassName = "uc3.workloadGenerator.LoadGenerator" mainClassName = "uc3.workloadGenerator.LoadGenerator"
eclipse {
classpath {
downloadSources=true
downloadJavadoc=true
}
}
\ No newline at end of file
apply plugin: 'application' apply plugin: 'application'
apply plugin: 'eclipse'
buildscript { buildscript {
repositories { repositories {
...@@ -12,7 +11,7 @@ buildscript { ...@@ -12,7 +11,7 @@ buildscript {
sourceCompatibility = "1.11" sourceCompatibility = "1.11"
targetCompatibility = "1.11" targetCompatibility = "1.11"
allprojects { allprojects {
repositories { repositories {
jcenter() jcenter()
maven { maven {
...@@ -26,7 +25,7 @@ allprojects { ...@@ -26,7 +25,7 @@ allprojects {
dependencies { dependencies {
compile project(':') compile project(':')
compile 'org.slf4j:slf4j-simple:1.6.1' 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')
...@@ -35,10 +34,3 @@ dependencies { ...@@ -35,10 +34,3 @@ dependencies {
} }
mainClassName = "uc4.application.HistoryService" mainClassName = "uc4.application.HistoryService"
eclipse {
classpath {
downloadSources=true
downloadJavadoc=true
}
}
apply plugin: 'application' apply plugin: 'application'
apply plugin: 'eclipse'
buildscript { buildscript {
repositories { repositories {
...@@ -14,7 +13,7 @@ targetCompatibility = "1.11" ...@@ -14,7 +13,7 @@ targetCompatibility = "1.11"
dependencies { dependencies {
compile project(':') compile project(':')
compile 'org.slf4j:slf4j-simple:1.6.1' compile 'org.slf4j:slf4j-simple:1.6.1'
// Use JUnit test framework // Use JUnit test framework
...@@ -22,10 +21,3 @@ dependencies { ...@@ -22,10 +21,3 @@ dependencies {
} }
mainClassName = "uc4.workloadGenerator.LoadGenerator" mainClassName = "uc4.workloadGenerator.LoadGenerator"
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