Repository navigation
Implement an M3 reporter #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
11e4a22
5d426d9
fa23527
d9785ee
6b749f4
668e99a
53bf961
b6b543d
11ba23d
66c9888
88119c2
38fb9d9
80c68bd
c52a7f8
fcca248
46bd28e
3b45aa7
d0aef44
c9932e5
f7186dd
880147a
b0c2eca
8291cd1
21260a1
6cbbf4e
7ed0f75
db8015f
7221592
488c891
0bc003f
0376dc7
c69450d
3fed782
c3fef3b
ee94804
e59d63d
cb0191e
267babc
d3ba08f
ea745f5
9c32835
fa7b255
cccaeaf
c9177dc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,7 +33,7 @@ plugins { | |
| id 'signing' | ||
| id 'checkstyle' | ||
| id 'jacoco' | ||
| id 'net.researchgate.release' version '2.4.0' apply false | ||
| id 'net.researchgate.release' version '2.6.0' apply false | ||
| id 'com.github.kt3k.coveralls' version '2.8.1' | ||
| } | ||
|
|
||
|
|
@@ -126,13 +126,6 @@ allprojects { | |
| } | ||
| } | ||
|
|
||
| // ---------------------- | ||
| // Build & Release | ||
| // ---------------------- | ||
| task wrapper(type: Wrapper) { | ||
| gradleVersion = '3.3' | ||
| } | ||
|
|
||
| release { | ||
| tagTemplate = '$name-$version' | ||
| } | ||
|
|
@@ -171,6 +164,11 @@ subprojects { | |
|
|
||
| ext."signing.secretKeyRingFile" = "ci/${ext.secretKeyRingFileName}" | ||
|
|
||
| task wrapper(type: Wrapper) { | ||
| // Gradle version 4+ required for JMH benchmarking, otherwise v3.5+ is sufficient | ||
| gradleVersion = '4.0' | ||
| } | ||
|
|
||
| // ---------------------- | ||
| // Fat jar task factories | ||
| // ---------------------- | ||
|
|
@@ -206,7 +204,8 @@ def fatJavadocJar(name, projects) { | |
| type: Javadoc, | ||
| dependsOn: projects.collect{it + ':classes'} | ||
| ]) { | ||
| source = projects.collect{ project(it).sourceSets.main.allSource } | ||
| classpath = files(projects.collect{ project(it).sourceSets.main.compileClasspath }) | ||
| source = projects.collect{ project(it).sourceSets.main.allJava } | ||
| } | ||
|
|
||
| return tasks.create([ | ||
|
|
@@ -221,19 +220,29 @@ def fatJavadocJar(name, projects) { | |
| } | ||
|
|
||
| // -------------------------------------- | ||
| // StatsD fat jar | ||
| // StatsD reporter fat jar | ||
| // -------------------------------------- | ||
|
|
||
| def statsd_fat_jar_name = 'tally-statsd-fat' | ||
| def statsd_fat_jar_projs = [':tally-core', ':tally-statsd'] | ||
|
|
||
| // -------------------------------------- | ||
| // M3 reporter fat jar | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If I read this right, you're only creating fat jars. Do you also want to create thin jars?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The thin jars are created automatically, configured in the |
||
| // -------------------------------------- | ||
|
|
||
| def m3_fat_jar_name = 'tally-m3-fat' | ||
| def m3_fat_jar_projs = [':tally-core', ':tally-m3'] | ||
|
|
||
| // ------------------- | ||
| // Fat jars to publish | ||
| // ------------------- | ||
| artifacts { | ||
| archives fatJar(statsd_fat_jar_name, statsd_fat_jar_projs), | ||
| fatSourcesJar(statsd_fat_jar_name, statsd_fat_jar_projs), | ||
| fatJavadocJar(statsd_fat_jar_name, statsd_fat_jar_projs) | ||
| fatJavadocJar(statsd_fat_jar_name, statsd_fat_jar_projs), | ||
| fatJar(m3_fat_jar_name, m3_fat_jar_projs), | ||
| fatSourcesJar(m3_fat_jar_name, m3_fat_jar_projs), | ||
| fatJavadocJar(m3_fat_jar_name, m3_fat_jar_projs) | ||
| } | ||
|
|
||
| nexusStaging {} | ||
|
|
@@ -248,7 +257,7 @@ coveralls { | |
| task jacocoRootReport(type: org.gradle.testing.jacoco.tasks.JacocoReport) { | ||
| dependsOn = subprojects.test | ||
| sourceDirectories = files(subprojects.sourceSets.main.allSource.srcDirs) | ||
| classDirectories = files(subprojects.sourceSets.main.output.classesDir) | ||
| classDirectories = files(subprojects.sourceSets.main.output.classesDirs) | ||
| executionData = files(subprojects.jacocoTestReport.executionData) | ||
|
|
||
| reports { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| <?xml version="1.0"?> | ||
| <!DOCTYPE suppressions PUBLIC | ||
| "-//Puppy Crawl//DTD Suppressions 1.1//EN" | ||
| "http://www.puppycrawl.com/dtds/suppressions_1_1.dtd"> | ||
|
|
||
| <suppressions> | ||
| <suppress files="[\\/]generated[\\/]" checks="[a-zA-Z0-9]*"/> | ||
| </suppressions> |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dope!