Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

Commit ca8054b

Browse files
authored
Merge pull request #1 from CodelyTV/java-11
Remove support for Java 8, update dependencies, improve CI & ReadMe
2 parents 92a3263 + 3e8bc3c commit ca8054b

File tree

8 files changed

+121
-123
lines changed

8 files changed

+121
-123
lines changed

β€Ž.travis.ymlβ€Ž

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
language: java
22

33
jdk:
4-
- openjdk8
54
- openjdk11
6-
- oraclejdk11
75

86
os:
97
- linux
10-
- osx
118

129
before_cache:
1310
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
@@ -18,11 +15,6 @@ cache:
1815
- $HOME/.gradle/caches/
1916
- $HOME/.gradle/wrapper/
2017

21-
# Run commands before TravisCI install step only in some cases
22-
# More info: https://docs.travis-ci.com/user/multi-os/#example-multi-os-build-matrix
23-
before_install:
24-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
25-
2618
# Override default install process on TravisCI
2719
# Avoid default `gradlew assemble` execution. Be explicit about it on the `script` section.
2820
# More info: https://github.com/travis-ci/travis-ci/issues/8667
@@ -32,4 +24,4 @@ install: true
3224
# Compile before running the tests in order to easily check which task could be failing.
3325
script:
3426
- ./gradlew assemble --warning-mode all
35-
- ./gradlew check --warning-mode all
27+
- ./gradlew check --warning-mode all

β€ŽREADME.mdβ€Ž

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,35 @@
1-
# Java Bootstrap (base / project skeleton)
1+
# β˜•πŸŽ― Hexagonal Architecture + DDD + CQRS Java example with SpringBoot
22

3-
## Introduction
3+
<img src="http://codely.tv/wp-content/uploads/2016/05/cropped-logo-codelyTV.png" align="left" width="192px" height="192px"/>
4+
<img align="left" width="0" height="192px" hspace="10"/>
45

5-
This is a repository intended to serve as a starting point if you want to bootstrap a project in Java 8 with JUnit 5.2 and Gradle 4.6.
6+
> You can do awesome stuff with Java πŸ™‚
67
7-
## How To Start
8+
[![CodelyTV](https://img.shields.io/badge/codely-tv-green.svg?style=flat-square)](https://codely.tv)
9+
[![Build Status](https://travis-ci.com/CodelyTV/cqrs-ddd-java-example.svg?branch=master)](https://travis-ci.com/CodelyTV/cqrs-ddd-java-example)
810

9-
1. Install Java 8
10-
2. Clone this repository `git clone https://github.com/CodelyTV/java-bootstrap`.
11-
3. Run the tests with `./gradlew test`
11+
Implementation example of a Java application following Domain-Driven Design (DDD) and Command Query Responsibility Segregation (CQRS) principles, keeping the code as simple as possible.
12+
13+
Take a look, play and have fun with it!
14+
15+
## πŸš€ Environment setup
16+
17+
1. Install Java: `brew cask install java`
18+
2. Clone this repository: `git clone https://github.com/CodelyTV/cqrs-ddd-java-example`
19+
3. Execute some [Gradle lifecycle tasks](https://docs.gradle.org/current/userguide/java_plugin.html#lifecycle_tasks) in order to check everything is OK:
20+
1. Create [the project JAR](https://docs.gradle.org/current/userguide/java_plugin.html#sec:jar) and other project artifacts:
21+
`./gradlew assemble --warning-mode all`
22+
2. Run the tests and plugins verification tasks:
23+
`./gradlew check --warning-mode all`
1224
4. Start developing!
25+
26+
## πŸ€” How to update dependencies
27+
28+
* Gradle (current version: 5.1.1 - [releases](https://gradle.org/releases/)):
29+
`./gradlew wrapper --gradle-version=5.1.1 --distribution-type=bin` or modifying the [gradle-wrapper.properties](gradle/wrapper/gradle-wrapper.properties#L3)
30+
* JUnit (current version: 5.3.2 - [releases](https://junit.org/junit5/docs/snapshot/release-notes/index.html)):
31+
[`build.gradle:11`](build.gradle#L11-L12)
32+
33+
## 🀝 Contributing
34+
35+
There are a lot of missing things (add swagger/OpenAPI, improve documentation...), feel free to add them if you want!

β€Žbitbucket-pipelines.ymlβ€Ž

Lines changed: 0 additions & 12 deletions
This file was deleted.

β€Žbuild.gradleβ€Ž

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
apply plugin: 'java'
22

3-
sourceCompatibility = 1.8
3+
sourceCompatibility = 1.11
4+
targetCompatibility = 1.11
45

56
repositories {
67
mavenCentral()
78
}
89

910
dependencies {
10-
testCompile('org.junit.jupiter:junit-jupiter-api:5.2.0')
11-
testRuntime('org.junit.jupiter:junit-jupiter-engine:5.2.0')
11+
testCompile('org.junit.jupiter:junit-jupiter-api:5.3.2')
12+
testRuntime('org.junit.jupiter:junit-jupiter-engine:5.3.2')
1213
}
1314

1415
test {
@@ -21,9 +22,4 @@ test {
2122
reports {
2223
html.enabled = true
2324
}
24-
}
25-
26-
task wrapper(type: Wrapper) {
27-
description = 'Generates gradlew[.bat] scripts'
28-
gradleVersion = '4.6'
2925
}
1.8 KB
Binary file not shown.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#Fri Jun 01 07:06:45 CEST 2018
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10-all.zip

β€Žgradlewβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žgradlew.batβ€Ž

Lines changed: 84 additions & 84 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
Β (0)