Skip to content

Commit eaedc1c

Browse files
committed
switching to gradle 7, deprecating some projects
1 parent bd53a93 commit eaedc1c

File tree

44 files changed

+140
-167
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+140
-167
lines changed

README.md

+1-7
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ but also new JDK 11 possibilities.
1111
### Environment setup
1212
Make sure following software is installed on your PC.
1313
* [OpenJDK 11](https://adoptopenjdk.net/?variant=openjdk11&jvmVariant=hotspot)
14-
* [Gradle 6.5](https://gradle.org/install/) or later
15-
* [protoc 3.8](https://github.com/protocolbuffers/protobuf/releases/tag/v3.8.0) google protocol buffers
14+
* [Gradle 6.8](https://gradle.org/install/) or later
1615
* [docker.io 19.x](https://www.docker.com/) or later
1716

1817
Please check [system requirements](docs/system-requirements.md) before.
@@ -21,17 +20,12 @@ Please check [system requirements](docs/system-requirements.md) before.
2120
Most examples are build by top-level gradle project.
2221
```
2322
gradle clean build test
24-
gradle --build-file di-examples/build.gradle clean test
2523
```
2624

2725
### Examples
2826
* [artefact publishing demo](artefact-publishing-demo) - publish artefact to ORSSH.
2927
* [akka clustering demo](akka-cluster-sshsessions)
30-
* [apache avro demo](avro-demo)
31-
* [dependency injection examples](di-examples)
3228
* [futures demo](futures-demo)
33-
* [grpc demo](grpc-demo)
34-
* [hazelcast cluster demo](hazelcast-cluster)
3529
* [image processing demo](imageprocessing-demo)
3630
* [jetty server demo](jetty-servlet4-http2)
3731
* [kafka example](kafka-example)

akka-cluster-sshsessions/build.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11

22
apply plugin: 'java'
3-
apply plugin: 'maven'
43
apply plugin: 'application'
54

65
sourceCompatibility = 11

avro-demo/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id "com.commercehub.gradle.plugin.avro" version "0.9.1"
2+
id "com.commercehub.gradle.plugin.avro" version "0.99.99"
33
}
44
group 'itx.avro'
55
version '1.0-SNAPSHOT'

block-chain/build.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11

22
apply plugin: 'java'
3-
apply plugin: 'maven'
43
apply plugin: 'maven-publish'
54

65
sourceCompatibility = 11

build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ project(':block-chain') {}
1010
project(':akka-cluster-sshsessions') {}
1111
project(':futures-demo') {}
1212
project(':grpc-demo') {}
13-
project(':hazelcast-cluster') {}
13+
//project(':hazelcast-cluster') {}
1414
project(':hibernate-demo') {}
1515
project(':jdbc-demo') {}
1616
project(':jetty-servlet4-http2') {}
1717
project(':kafka-example') {}
1818
project(':mongodb-demo') {}
1919
project(':simple-module-example') {}
2020
project(':ssh-server-demo') {}
21-
project(':avro-demo') {}
21+
//project(':avro-demo') {}
2222
project(':imageprocessing-demo') {}
2323
project(':rxjava-demo') {}
2424
project(':elastic-demo') {}

cached-model-demo/build.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11

22
apply plugin: 'java'
3-
apply plugin: 'maven'
43
apply plugin: 'maven-publish'
54

65
sourceCompatibility = 11

di-examples/app-dagger/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ plugins {
55
}
66

77
dependencies {
8-
compile 'com.google.dagger:dagger:2.25.4'
8+
implementation 'com.google.dagger:dagger:2.25.4'
99
apt 'com.google.dagger:dagger-compiler:2.25.4'
1010
}
1111

1212
test {
1313

1414
dependencies {
15-
testCompile 'org.testng:testng:7.3.0'
15+
testImplementation 'org.testng:testng:7.3.0'
1616
}
1717

1818
// enable TestNG support (default is JUnit)

di-examples/app-guice/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
test {
33

44
dependencies {
5-
testCompile 'org.testng:testng:7.3.0'
5+
testImplementation 'org.testng:testng:7.3.0'
66
}
77

88
// enable TestNG support (default is JUnit)

di-examples/app-spring/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ repositories {
3131

3232

3333
dependencies {
34-
compile('org.springframework.boot:spring-boot-starter-web')
35-
testCompile('org.springframework.boot:spring-boot-starter-test')
34+
implementation('org.springframework.boot:spring-boot-starter-web')
35+
testImplementation('org.springframework.boot:spring-boot-starter-test')
3636
}
3737

3838
test {

di-examples/build.gradle

+12-12
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ subprojects {
1111
}
1212

1313
dependencies {
14-
compile 'org.slf4j:slf4j-api:1.8.0-beta4'
15-
compile 'org.slf4j:slf4j-simple:1.8.0-beta4'
14+
implementation 'org.slf4j:slf4j-api:1.7.30'
15+
implementation 'org.slf4j:slf4j-simple:1.7.30'
1616
}
1717

1818
}
@@ -22,45 +22,45 @@ project(':data-service') {
2222

2323
project(':di-spring') {
2424
dependencies {
25-
compile project(':data-service')
25+
implementation project(':data-service')
2626
}
2727
}
2828

2929
project(':di-guice') {
3030
dependencies {
31-
compile project(':data-service')
31+
implementation project(':data-service')
3232
}
3333
}
3434

3535
project(':di-dagger') {
3636
dependencies {
37-
compile project(':data-service')
37+
implementation project(':data-service')
3838
}
3939
}
4040

4141
project(':app-simple') {
4242
dependencies {
43-
compile project(':data-service')
43+
implementation project(':data-service')
4444
}
4545
}
4646

4747
project(':app-spring') {
4848
dependencies {
49-
compile project(':data-service')
50-
compile project(':di-spring')
49+
implementation project(':data-service')
50+
implementation project(':di-spring')
5151
}
5252
}
5353

5454
project(':app-guice') {
5555
dependencies {
56-
compile project(':data-service')
57-
compile project(':di-guice')
56+
implementation project(':data-service')
57+
implementation project(':di-guice')
5858
}
5959
}
6060

6161
project(':app-dagger') {
6262
dependencies {
63-
compile project(':data-service')
64-
compile project(':di-dagger')
63+
implementation project(':data-service')
64+
implementation project(':di-dagger')
6565
}
6666
}

di-examples/data-service/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
test {
33

44
dependencies {
5-
testCompile 'org.testng:testng:7.3.0'
5+
testImplementation 'org.testng:testng:7.3.0'
66
}
77

88
// enable TestNG support (default is JUnit)

di-examples/di-dagger/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
}
66

77
dependencies {
8-
compile 'com.google.dagger:dagger:2.25.4'
8+
implementation 'com.google.dagger:dagger:2.25.4'
99
apt 'com.google.dagger:dagger-compiler:2.25.4'
1010
}
1111

di-examples/di-guice/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

22

33
dependencies {
4-
compile 'com.google.inject:guice:4.2.2'
4+
implementation 'com.google.inject:guice:4.2.2'
55
}

di-examples/di-spring/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

22

33
dependencies {
4-
compile 'org.springframework:spring-context:5.2.2.RELEASE'
4+
implementation 'org.springframework:spring-context:5.2.2.RELEASE'
55
}

grpc-demo/build.gradle

+11-12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11

22
apply plugin: 'java'
3-
apply plugin: 'maven'
43
apply plugin: 'idea'
54
apply plugin: 'application'
65
apply plugin: 'com.google.protobuf'
@@ -10,7 +9,7 @@ buildscript {
109
mavenCentral()
1110
}
1211
dependencies {
13-
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.10'
12+
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.15'
1413
}
1514
}
1615

@@ -26,19 +25,19 @@ def grpcVersion = '1.13.2'
2625
mainClassName = 'itx.examples.grpc.service.Main'
2726

2827
dependencies {
29-
compile 'org.slf4j:slf4j-api:1.7.30'
30-
compile 'org.slf4j:slf4j-simple:1.7.30'
31-
compile 'com.beust:jcommander:1.78'
28+
implementation 'org.slf4j:slf4j-api:1.7.30'
29+
implementation 'org.slf4j:slf4j-simple:1.7.30'
30+
implementation 'com.beust:jcommander:1.78'
3231

33-
compile "com.google.api.grpc:proto-google-common-protos:1.12.0"
34-
compile "io.grpc:grpc-netty:${grpcVersion}"
35-
compile "io.grpc:grpc-protobuf:${grpcVersion}"
36-
compile "io.grpc:grpc-stub:${grpcVersion}"
32+
implementation "com.google.api.grpc:proto-google-common-protos:1.12.0"
33+
implementation "io.grpc:grpc-netty:${grpcVersion}"
34+
implementation "io.grpc:grpc-protobuf:${grpcVersion}"
35+
implementation "io.grpc:grpc-stub:${grpcVersion}"
3736

38-
compile 'javax.annotation:javax.annotation-api:1.3.2'
37+
implementation 'javax.annotation:javax.annotation-api:1.3.2'
3938

40-
testCompile "io.grpc:grpc-testing:${grpcVersion}"
41-
testCompile 'org.testng:testng:7.3.0'
39+
testImplementation "io.grpc:grpc-testing:${grpcVersion}"
40+
testImplementation 'org.testng:testng:7.3.0'
4241
}
4342

4443
protobuf {

hazelcast-cluster/build.gradle

+6-6
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,24 @@ subprojects {
1010
}
1111

1212
dependencies {
13-
compile 'org.slf4j:slf4j-api:1.7.30'
14-
compile 'org.slf4j:slf4j-simple:1.7.30'
13+
implementation 'org.slf4j:slf4j-api:1.7.30'
14+
implementation 'org.slf4j:slf4j-simple:1.7.30'
1515
}
1616
}
1717

18-
project(':common') {
18+
project(':hz-common') {
1919
}
2020

2121
project(':server-node') {
2222
dependencies {
23-
compile project(':common')
23+
implementation project(':hz-common')
2424
}
2525
}
2626

2727
project(':it-tests') {
2828
dependencies {
29-
compile project(':common')
30-
compile project(':server-node')
29+
implementation project(':hz-common')
30+
implementation project(':server-node')
3131
}
3232
}
3333

hazelcast-cluster/common/build.gradle renamed to hazelcast-cluster/hz-common/build.gradle

+13-14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11

22
apply plugin: 'java'
3-
apply plugin: 'maven'
43
apply plugin: 'idea'
54
apply plugin: 'application'
65
apply plugin: 'com.google.protobuf'
@@ -10,7 +9,7 @@ buildscript {
109
mavenCentral()
1110
}
1211
dependencies {
13-
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.10'
12+
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.15'
1413
}
1514
}
1615

@@ -22,28 +21,28 @@ repositories {
2221
sourceCompatibility = 11
2322
targetCompatibility = 11
2423

25-
def grpcVersion = '1.14.0'
24+
def grpcVersion = '1.37.0'
2625
mainClassName = 'itx.examples.grpc.service.Main'
2726

2827
dependencies {
29-
compile 'org.slf4j:slf4j-api:1.7.30'
30-
compile 'org.slf4j:slf4j-simple:1.7.30'
31-
compile 'com.beust:jcommander:1.78'
28+
implementation 'org.slf4j:slf4j-api:1.7.30'
29+
implementation 'org.slf4j:slf4j-simple:1.7.30'
30+
implementation 'com.beust:jcommander:1.78'
3231

33-
compile "com.google.api.grpc:proto-google-common-protos:1.12.0"
34-
compile "io.grpc:grpc-netty:${grpcVersion}"
35-
compile "io.grpc:grpc-protobuf:${grpcVersion}"
36-
compile "io.grpc:grpc-stub:${grpcVersion}"
32+
implementation "com.google.api.grpc:proto-google-common-protos:2.1.0"
33+
implementation "io.grpc:grpc-netty:${grpcVersion}"
34+
implementation "io.grpc:grpc-protobuf:${grpcVersion}"
35+
implementation "io.grpc:grpc-stub:${grpcVersion}"
3736

38-
compile 'javax.annotation:javax.annotation-api:1.3.2'
37+
implementation 'javax.annotation:javax.annotation-api:1.3.2'
3938

40-
testCompile "io.grpc:grpc-testing:${grpcVersion}"
41-
testCompile 'org.testng:testng:7.3.0'
39+
testImplementation "io.grpc:grpc-testing:${grpcVersion}"
40+
testImplementation 'org.testng:testng:7.3.0'
4241
}
4342

4443
protobuf {
4544
protoc {
46-
artifact = 'com.google.protobuf:protoc:3.6.1'
45+
artifact = 'com.google.protobuf:protoc:3.15.8'
4746
}
4847
plugins {
4948
grpc {

hazelcast-cluster/it-tests/build.gradle

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ sourceCompatibility = 11
2222
targetCompatibility = 11
2323

2424
dependencies {
25-
compile 'org.slf4j:slf4j-api:1.7.30'
26-
compile 'org.slf4j:slf4j-simple:1.7.30'
25+
implementation 'org.slf4j:slf4j-api:1.7.30'
26+
implementation 'org.slf4j:slf4j-simple:1.7.30'
2727

28-
compile 'org.eclipse.jetty.websocket:websocket-client:9.4.20.v20190813'
28+
implementation 'org.eclipse.jetty.websocket:websocket-client:9.4.20.v20190813'
2929

30-
testCompile 'org.testng:testng:7.3.0'
30+
testImplementation 'org.testng:testng:7.3.0'
3131
}
3232

0 commit comments

Comments
 (0)