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

Merge branch 'master' into feature/topLevelPackageJava

parents 0a529341 6d4b5de3
No related branches found
No related tags found
1 merge request!3Add top-level package for Java implementation
...@@ -30,65 +30,45 @@ test: ...@@ -30,65 +30,45 @@ test:
stage: test stage: test
tags: tags:
- exec-docker - exec-docker
script: ./gradlew test script: ./gradlew test --continue
artifacts:
reports:
junit:
- "**/build/test-results/test/TEST-*.xml"
checkstyle: checkstyle:
stage: check stage: check
tags: tags:
- exec-docker - exec-docker
script: ./gradlew checkstyle script: ./gradlew checkstyle --continue
allow_failure: true allow_failure: true
artifacts: artifacts:
paths: paths:
- build/reports/checkstyle/main.html - "*/build/reports/checkstyle/main.html"
- uc1-application/build/reports/checkstyle/main.html
- uc1-workload-generator/build/reports/checkstyle/main.html
- uc2-application/build/reports/checkstyle/main.html
- uc2-workload-generator/build/reports/checkstyle/main.html
- uc3-application/build/reports/checkstyle/main.html
- uc3-workload-generator/build/reports/checkstyle/main.html
- uc4-application/build/reports/checkstyle/main.html
- uc4-workload-generator/build/reports/checkstyle/main.html
when: on_failure when: on_failure
expire_in: 1 day expire_in: 1 day
pmd: pmd:
stage: check stage: check
tags: tags:
- exec-docker - exec-docker
script: ./gradlew pmd script: ./gradlew pmd --continue
allow_failure: true allow_failure: true
artifacts: artifacts:
paths: paths:
- build/reports/pmd/*.html - "*/build/reports/pmd/*.html"
- uc1-application/build/reports/pmd/*.html
- uc1-workload-generator/build/reports/pmd/*.html
- uc2-application/build/reports/pmd/*.html
- uc2-workload-generator/build/reports/pmd/*.html
- uc3-application/build/reports/pmd/*.html
- uc3-workload-generator/build/reports/pmd/*.html
- uc4-application/build/reports/pmd/*.html
- uc4-workload-generator/build/reports/pmd/*.html
when: on_failure when: on_failure
expire_in: 1 day expire_in: 1 day
spotbugs: spotbugs:
stage: check stage: check
tags: tags:
- exec-docker - exec-docker
script: ./gradlew spotbugs script: ./gradlew spotbugs --continue
allow_failure: true allow_failure: true
artifacts: artifacts:
paths: paths:
- build/reports/spotbugs/*.html - "*/build/reports/spotbugs/*.html"
- uc1-application/build/reports/spotbugs/*.html
- uc1-workload-generator/build/reports/spotbugs/*.html
- uc2-application/build/reports/spotbugs/*.html
- uc2-workload-generator/build/reports/spotbugs/*.html
- uc3-application/build/reports/spotbugs/*.html
- uc3-workload-generator/build/reports/spotbugs/*.html
- uc4-application/build/reports/spotbugs/*.html
- uc4-workload-generator/build/reports/spotbugs/*.html
when: on_failure when: on_failure
expire_in: 1 day expire_in: 1 day
...@@ -116,4 +96,4 @@ spotbugs: ...@@ -116,4 +96,4 @@ spotbugs:
variables: variables:
- $DOCKERHUB_ORG - $DOCKERHUB_ORG
- $DOCKERHUB_ID - $DOCKERHUB_ID
- $DOCKERHUB_PW - $DOCKERHUB_PW
\ No newline at end of file
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,15 +10,35 @@ buildscript { ...@@ -15,15 +10,35 @@ buildscript {
} }
} }
sourceCompatibility = "1.11" // Plugins for all projects
targetCompatibility = "1.11" allprojects {
apply plugin: 'eclipse'
}
// Plugins for subprojects
subprojects {
apply plugin: 'application'
apply plugin: 'checkstyle'
apply plugin: 'pmd'
apply plugin: 'com.github.spotbugs'
apply plugin: 'java-library'
}
// Java version for all subprojects
subprojects {
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
}
// Check for updates every build
configurations.all { configurations.all {
// Check for updates every build
resolutionStrategy.cacheChangingModulesFor 0, 'seconds' resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
} }
allprojects { // Repositories for all projects
allprojects {
repositories { repositories {
jcenter() jcenter()
maven { maven {
...@@ -32,42 +47,23 @@ allprojects { ...@@ -32,42 +47,23 @@ allprojects {
} }
} }
dependencies { // Dependencies
// These dependencies is exported to consumers, that is to say found on their compile classpath. subprojects {
api('org.industrial-devops:titan-ccp-common:0.0.3-SNAPSHOT') { changing = true } dependencies {
api 'net.kieker-monitoring:kieker:1.14-SNAPSHOT' // These dependencies is exported to consumers, that is to say found on their compile classpath.
api 'net.sourceforge.teetime:teetime:3.0' api('org.industrial-devops:titan-ccp-common:0.0.3-SNAPSHOT') { changing = true }
api 'net.kieker-monitoring:kieker:1.14-SNAPSHOT'
// These dependencies are used internally, and not exposed to consumers on their own compile classpath. api 'net.sourceforge.teetime:teetime:3.0'
implementation 'org.apache.kafka:kafka-clients:2.1.0'
implementation 'com.google.guava:guava:24.1-jre' // These dependencies are used internally, and not exposed to consumers on their own compile classpath.
implementation 'org.jctools:jctools-core:2.1.1' implementation 'org.apache.kafka:kafka-clients:2.1.0'
implementation 'com.google.guava:guava:24.1-jre'
// Use JUnit test framework implementation 'org.jctools:jctools-core:2.1.1'
testImplementation 'junit:junit:4.12' implementation 'org.slf4j:slf4j-simple:1.6.1'
}
// Use JUnit test framework
pmd { testImplementation 'junit:junit:4.12'
ruleSets = [] // Gradle requires to clean the rule sets first }
ruleSetFiles = files("config/pmd.xml")
ignoreFailures = false
toolVersion = "6.7.0"
}
checkstyle {
configDir = file("config")
configFile = file("config/checkstyle.xml")
maxWarnings = 0
ignoreFailures = false
toolVersion = "8.12"
}
spotbugs {
excludeFilter = file("config/spotbugs-exclude-filter.xml")
reportLevel = "low"
effort = "max"
ignoreFailures = false
toolVersion = '3.1.7'
} }
// Per default XML reports for SpotBugs are generated // Per default XML reports for SpotBugs are generated
...@@ -80,33 +76,64 @@ tasks.withType(com.github.spotbugs.SpotBugsTask) { ...@@ -80,33 +76,64 @@ tasks.withType(com.github.spotbugs.SpotBugsTask) {
} }
} }
task checkstyle { // Subprojects quality tools tasks
group 'Quality Assurance' subprojects {
description 'Run Checkstyle' task pmd {
group 'Quality Assurance'
dependsOn 'checkstyleMain' description 'Run PMD'
dependsOn 'checkstyleTest'
} dependsOn 'pmdMain'
dependsOn 'pmdTest'
}
task pmd { task checkstyle {
group 'Quality Assurance' group 'Quality Assurance'
description 'Run PMD' description 'Run Checkstyle'
dependsOn 'pmdMain' dependsOn 'checkstyleMain'
dependsOn 'pmdTest' dependsOn 'checkstyleTest'
}
task spotbugs {
group 'Quality Assurance'
description 'Run SpotBugs'
dependsOn 'spotbugsMain'
dependsOn 'spotbugsTest'
}
} }
task spotbugs { // Subprojects quality tools configuration
group 'Quality Assurance' subprojects {
description 'Run SpotBugs' pmd {
ruleSets = [] // Gradle requires to clean the rule sets first
dependsOn 'spotbugsMain' ruleSetFiles = files("$rootProject.projectDir/config/pmd.xml")
dependsOn 'spotbugsTest' ignoreFailures = false
toolVersion = "6.7.0"
}
checkstyle {
configDirectory = file("$rootProject.projectDir/config")
configFile = file("$rootProject.projectDir/config/checkstyle.xml")
maxWarnings = 0
ignoreFailures = false
toolVersion = "8.12"
}
spotbugs {
excludeFilter = file("$rootProject.projectDir/config/spotbugs-exclude-filter.xml")
reportLevel = "low"
effort = "max"
ignoreFailures = false
toolVersion = '3.1.7'
}
} }
eclipse { allprojects {
classpath { eclipse {
downloadSources=true classpath {
downloadJavadoc=true downloadSources=true
} downloadJavadoc=true
} }
\ No newline at end of file }
}
apply plugin: 'application'
apply plugin: 'eclipse'
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
}
sourceCompatibility = "1.11"
targetCompatibility = "1.11"
dependencies {
compile project(':')
compile 'org.slf4j:slf4j-simple:1.6.1'
// Use JUnit test framework
testCompile 'junit:junit:4.12'
}
mainClassName = "spesb.uc1.application.HistoryService" mainClassName = "spesb.uc1.application.HistoryService"
eclipse {
classpath {
downloadSources=true
downloadJavadoc=true
}
}
apply plugin: 'application'
apply plugin: 'eclipse'
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
}
sourceCompatibility = "1.11"
targetCompatibility = "1.11"
dependencies {
compile project(':')
compile 'org.slf4j:slf4j-simple:1.6.1'
// Use JUnit test framework
testCompile 'junit:junit:4.12'
}
mainClassName = "spesb.uc1.workloadgenerator.LoadGenerator" mainClassName = "spesb.uc1.workloadgenerator.LoadGenerator"
eclipse {
classpath {
downloadSources=true
downloadJavadoc=true
}
}
apply plugin: 'application'
apply plugin: 'eclipse'
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
}
sourceCompatibility = "1.11"
targetCompatibility = "1.11"
dependencies {
compile project(':')
compile 'org.slf4j:slf4j-simple:1.6.1'
// Use JUnit test framework
testCompile 'junit:junit:4.12'
}
mainClassName = "spesb.uc2.application.AggregationService" mainClassName = "spesb.uc2.application.AggregationService"
eclipse {
classpath {
downloadSources=true
downloadJavadoc=true
}
}
apply plugin: 'application'
apply plugin: 'eclipse'
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
}
sourceCompatibility = "1.11"
targetCompatibility = "1.11"
dependencies {
compile project(':')
compile 'org.slf4j:slf4j-simple:1.6.1'
// Use JUnit test framework
testCompile 'junit:junit:4.12'
}
mainClassName = "spesb.uc2.workloadgenerator.LoadGenerator" mainClassName = "spesb.uc2.workloadgenerator.LoadGenerator"
eclipse {
classpath {
downloadSources=true
downloadJavadoc=true
}
}
apply plugin: 'application'
apply plugin: 'eclipse'
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
}
sourceCompatibility = "1.11"
targetCompatibility = "1.11"
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/'
} }
...@@ -25,20 +7,7 @@ allprojects { ...@@ -25,20 +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 = "spesb.uc3.application.HistoryService" mainClassName = "spesb.uc3.application.HistoryService"
eclipse {
classpath {
downloadSources=true
downloadJavadoc=true
}
}
apply plugin: 'application'
apply plugin: 'eclipse'
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
}
sourceCompatibility = "1.11"
targetCompatibility = "1.11"
dependencies {
compile project(':')
compile 'org.slf4j:slf4j-simple:1.6.1'
// Use JUnit test framework
testCompile 'junit:junit:4.12'
}
mainClassName = "spesb.uc3.workloadgenerator.LoadGenerator" mainClassName = "spesb.uc3.workloadgenerator.LoadGenerator"
eclipse {
classpath {
downloadSources=true
downloadJavadoc=true
}
}
apply plugin: 'application'
apply plugin: 'eclipse'
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
}
sourceCompatibility = "1.11"
targetCompatibility = "1.11"
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/'
} }
...@@ -25,20 +7,7 @@ allprojects { ...@@ -25,20 +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 = "spesb.uc4.application.HistoryService" mainClassName = "spesb.uc4.application.HistoryService"
eclipse {
classpath {
downloadSources=true
downloadJavadoc=true
}
}
apply plugin: 'application'
apply plugin: 'eclipse'
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
}
sourceCompatibility = "1.11"
targetCompatibility = "1.11"
dependencies {
compile project(':')
compile 'org.slf4j:slf4j-simple:1.6.1'
// Use JUnit test framework
testCompile 'junit:junit:4.12'
}
mainClassName = "spesb.uc4.workloadgenerator.LoadGenerator" mainClassName = "spesb.uc4.workloadgenerator.LoadGenerator"
eclipse {
classpath {
downloadSources=true
downloadJavadoc=true
}
}
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