11buildscript {
2+ configurations. classpath {
3+ resolutionStrategy. activateDependencyLocking()
4+ }
5+
26 repositories {
37 maven {
48 url " https://plugins.gradle.org/m2/"
@@ -11,49 +15,41 @@ buildscript {
1115}
1216
1317plugins {
14- id ' com.gradle.build-scan' version ' 1.16 ' // declare before any other plugin
18+ id ' com.gradle.build-scan' version ' 2.0.2 ' // declare before any other plugin
1519 id ' com.google.osdetector' version ' 1.4.0'
16- id ' com.github.sherter.google-java-format ' version ' 0.7.1 ' apply false
17- id ' com.github.johnrengelman.shadow ' version ' 2.0.1 ' apply false
20+ id " com.github.hierynomus.license " version ' 0.15.0 '
21+ id ' com.github.sherter.google-java-format ' version ' 0.8 ' apply false
1822 id ' me.champeau.gradle.jmh' version ' 0.4.7' apply false
1923 id ' io.morethan.jmhreport' version ' 0.6.2.1' apply false
20- id ' io.spring.dependency-management' version ' 1.0.6.RELEASE' apply false
21- id ' com.google.protobuf' version ' 0.8.5' apply false
24+ id ' io.spring.dependency-management' version ' 1.0.7.RELEASE' apply false
25+ id ' com.google.protobuf' version ' 0.8.8' apply false
26+ }
27+
28+ // buildScan { licenseAgreementUrl = 'https://gradle.com/terms-of-service'; licenseAgree = 'yes' }
29+ buildScan {
30+ termsOfServiceUrl = ' https://gradle.com/terms-of-service'
31+ termsOfServiceAgree = ' yes'
2232}
2333
24- buildScan { licenseAgreementUrl = ' https://gradle.com/terms-of-service' ; licenseAgree = ' yes' }
34+
35+ allprojects {
36+
37+ dependencyLocking {
38+ lockAllConfigurations()
39+ }
40+
41+ }
2542
2643subprojects {
27- apply plugin : ' io.spring. dependency-management'
44+ apply from : " ../ dependency-management.gradle "
2845 apply plugin : ' com.jfrog.bintray'
29- apply plugin : " com.jfrog.artifactory"
46+ apply plugin : ' com.jfrog.artifactory'
3047 apply plugin : ' java'
3148 apply plugin : ' idea'
3249 apply plugin : ' com.github.sherter.google-java-format'
3350 apply plugin : ' maven'
3451 apply plugin : ' maven-publish'
35-
36- ext[' reactor-bom.version' ] = ' Californium-SR1'
37- ext[' rsocket.version' ] = ' 0.11.15'
38- ext[' rsocket-rpc.version' ] = ' 0.2.12'
39-
40- ext[' jackson.version' ] = ' 2.9.7'
41- ext[' jackson-protobuf.version' ] = ' 0.9.10-jackson2.9-proto3'
42- ext[' guava.version' ] = ' 22.0'
43- ext[' protobuf.version' ] = ' 3.6.1'
44- ext[' log4j.version' ] = ' 2.9.0'
45- ext[' junit.version' ] = ' 5.1.0'
46- ext[' mockito.version' ] = ' 2.23.0'
47- ext[' hamcrest.version' ] = ' 1.3'
48- ext[' jmh.version' ] = ' 1.21'
49- ext[' micrometer.version' ] = ' 1.0.6'
50- ext[' assertj.version' ] = ' 3.11.1'
51- ext[' opentracing.version' ] = ' 0.31.0'
52- ext[' opentracing.brave.version' ] = ' 0.31.2'
53- ext[' zipkin.sender.version' ] = ' 2.7.6'
54- ext[' hdrhistogram.version' ] = ' 2.1.10'
55- ext[' netty.version' ] = ' 4.1.29.Final'
56- ext[' typesafe-config.version' ] = ' 1.3.3'
52+ apply plugin : ' license'
5753
5854 sourceCompatibility = 1.8
5955 targetCompatibility = 1.8
@@ -62,6 +58,13 @@ subprojects {
6258
6359 repositories {
6460 jcenter()
61+ maven {
62+ url = ' https://artifactory.netifiinc.com/artifactory/libs-snapshot-local'
63+ credentials {
64+ username = project. findProperty(' netifiArtifactoryUsername' ) ?: System . getenv(' NETIFI_ARTIFACTORY_USERNAME' )
65+ password = project. findProperty(' netifiArtifactoryPassword' ) ?: System . getenv(' NETIFI_ARTIFACTORY_PASSWORD' )
66+ }
67+ }
6568 maven { url ' http://repo.spring.io/libs-snapshot' }
6669 maven { url ' https://oss.jfrog.org/oss-snapshot-local' }
6770 maven { url ' https://oss.jfrog.org/oss-release-local' }
@@ -73,102 +76,6 @@ subprojects {
7376 toolVersion = ' 1.6'
7477 exclude ' **/generated'
7578 }
76-
77- dependencyManagement {
78- imports {
79- mavenBom " io.projectreactor:reactor-bom:${ ext['reactor-bom.version']} "
80- }
81-
82- dependencies {
83- dependencySet(group : ' com.google.protobuf' , version : ext[' protobuf.version' ]) {
84- entry ' protoc'
85- entry ' protobuf-java'
86- entry ' protobuf-java-util'
87- }
88-
89- dependency " com.hubspot.jackson:jackson-datatype-protobuf:${ ext['jackson-protobuf.version']} "
90- dependency " com.fasterxml.jackson.core:jackson-databind:${ ext['jackson.version']} "
91- dependency " com.google.guava:guava:${ ext['guava.version']} "
92- dependency " javax.inject:javax.inject:1"
93- dependency " javax.annotation:javax.annotation-api:1.2"
94-
95- dependency " com.typesafe:config:${ ext['typesafe-config.version']} "
96-
97- dependencySet(group : ' org.apache.logging.log4j' , version : ext[' log4j.version' ]) {
98- entry ' log4j-api'
99- entry ' log4j-core'
100- entry ' log4j-slf4j-impl'
101- }
102-
103- dependencySet(group : ' io.rsocket' , version : ext[' rsocket.version' ]) {
104- entry ' rsocket-core'
105- entry ' rsocket-transport-netty'
106- entry ' rsocket-transport-local'
107- }
108-
109- dependencySet(group : ' io.rsocket.rpc' , version : ext[' rsocket-rpc.version' ]) {
110- entry ' rsocket-rpc-core'
111- entry ' rsocket-rpc-metrics-idl'
112- entry ' rsocket-rpc-protobuf'
113- entry ' rsocket-rpc-protobuf-idl'
114- }
115-
116- dependency " io.netty:netty-buffer:${ ext['netty.version']} "
117-
118- dependencySet(group : ' io.micrometer' , version : ext[' micrometer.version' ]) {
119- entry ' micrometer-core'
120- entry ' micrometer-registry-atlas'
121- entry ' micrometer-registry-prometheus'
122- }
123-
124- dependency " io.opentracing:opentracing-api:${ ext['opentracing.version']} "
125- dependency " io.opentracing.brave:brave-opentracing:${ ext['opentracing.brave.version']} "
126- dependency " io.zipkin.reporter2:zipkin-sender-okhttp3:${ ext['zipkin.sender.version']} "
127-
128- // TODO: Remove after JUnit5 migration
129- // TEST DEPENDENCIES
130-
131- dependency ' junit:junit:4.12'
132-
133- dependencySet(group : ' org.junit.jupiter' , version : ext[' junit.version' ]) {
134- entry ' junit-jupiter-api'
135- entry ' junit-jupiter-engine'
136- entry ' junit-jupiter-params'
137- }
138-
139- dependency " org.mockito:mockito-core:${ ext['mockito.version']} "
140- dependency " org.hamcrest:hamcrest-library:${ ext['hamcrest.version']} "
141- dependency " org.assertj:assertj-core:${ ext['assertj.version']} "
142- dependency " org.hdrhistogram:HdrHistogram:${ ext['hdrhistogram.version']} "
143-
144- dependencySet(group : ' org.junit.vintage' , version : ext[' junit.version' ]) {
145- entry ' junit-vintage-engine'
146- }
147-
148-
149- dependencySet(group : ' org.openjdk.jmh' , version : ext[' jmh.version' ]) {
150- entry ' jmh-core'
151- entry ' jmh-generator-annprocess'
152- }
153- }
154- }
155-
156-
157- dependencies {
158- compileOnly ' javax.inject:javax.inject'
159-
160- testCompile ' junit:junit'
161- testCompile ' javax.inject:javax.inject'
162- testCompile ' io.projectreactor:reactor-test'
163- testCompile " com.google.protobuf:protobuf-java"
164- testCompile ' org.hdrhistogram:HdrHistogram'
165- testCompile ' org.apache.logging.log4j:log4j-api'
166- testCompile ' org.apache.logging.log4j:log4j-core'
167- testCompile ' org.apache.logging.log4j:log4j-slf4j-impl'
168- testCompile ' io.rsocket:rsocket-transport-netty'
169- testCompile ' io.rsocket:rsocket-transport-local'
170- testCompile ' org.mockito:mockito-core'
171- }
17279
17380 // Build Source Jars
17481 def sourcesJarMap = [name : ' sourcesJar' , type : Jar , dependsOn : classes]
@@ -200,6 +107,13 @@ subprojects {
200107 }
201108 }
202109 }
110+
111+ license {
112+ header rootProject. file(' resources/HEADER' )
113+ strictCheck true
114+ excludes([" **/*.xml" , " **/*.json" ])
115+ }
116+ license. mapping(' java' , ' SLASHSTAR_STYLE' )
203117}
204118
205119apply from : " artifactory.gradle"
0 commit comments