Skip to content

Commit

Permalink
Upgraded to Java 17 and Micronaut 3.8.0 (#229)
Browse files Browse the repository at this point in the history
* Split API and CLI (#227)

* Split API and CLI

* Update README.md

* Update README.md

* Fix Sonar

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Fix Sonar

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update

* Update README.md

* Update README.md

* Update README.md

* Update

* Add build step in pull and push actions

* Java 17

* Upgrade

* Upgrade

* Upgrade

* Upgrade

* Upgrade

* Upgrade

* Upgrade

* Upgrade

* Fixed test

* Split API and CLI (#227)

* Split API and CLI

* Update README.md

* Update README.md

* Fix Sonar

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Fix Sonar

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update

* Update README.md

* Update README.md

* Update README.md

* Update

* Upgrade

* Rollback testcontainers kafka

* Fix upgrade

* Enforce testcontainers kafka version

* Fixed inject

* Fixed docker tests

* Fixed docker tests

* Fixed docker tests

* Fixed docker tests

* Disabled dev profile
  • Loading branch information
Loïc GREFFIER authored Jan 12, 2023
1 parent 1fd60f8 commit 8498360
Show file tree
Hide file tree
Showing 122 changed files with 939 additions and 1,620 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/on_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
with:
fetch-depth: 0

- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: '17'
distribution: 'temurin'

- name: Cache SonarCloud packages
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/on_push_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
with:
fetch-depth: 0

- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: '17'
distribution: 'temurin'

- name: Cache SonarCloud packages
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/on_push_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
with:
fetch-depth: 0

- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: '17'
distribution: 'temurin'

- name: Cache Gradle packages
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ out/
.settings
.classpath
.factorypath
api/src/main/java/com/michelin/ns4kafka/controllers/InitController.java
api/src/main/resources/application-*.yml
src/main/resources/application-*.yml
56 changes: 33 additions & 23 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
plugins {
id("com.github.johnrengelman.shadow") version "7.0.0"
id("io.micronaut.application") version "1.5.0"
id 'jacoco'
id "org.sonarqube" version "3.1.1"
id("com.github.johnrengelman.shadow") version "7.1.2"
id("io.micronaut.application") version "3.6.7"
id "jacoco"
id "org.sonarqube" version "3.5.0.2730"
}

group = "com.michelin.ns4kafka"
Expand All @@ -12,45 +12,52 @@ repositories {
}

dependencies {
compileOnly 'org.projectlombok:lombok:1.18.20'
annotationProcessor 'org.projectlombok:lombok:1.18.20'
annotationProcessor("org.projectlombok:lombok")
annotationProcessor("io.micronaut:micronaut-http-validation")
annotationProcessor("io.micronaut.openapi:micronaut-openapi")
annotationProcessor("io.micronaut:micronaut-management")
annotationProcessor("io.micronaut.security:micronaut-security-annotations")
annotationProcessor("io.swagger.core.v3:swagger-annotations")

implementation("io.micronaut:micronaut-validation")
implementation("io.micronaut:micronaut-runtime")
implementation("javax.annotation:javax.annotation-api")
implementation("io.micronaut:micronaut-http-client")
implementation("io.micronaut.openapi:micronaut-openapi")
implementation("io.micronaut:micronaut-jackson-databind")
implementation("io.micronaut.kafka:micronaut-kafka")
implementation("io.micronaut.security:micronaut-security")
implementation("io.micronaut.security:micronaut-security-jwt")
implementation("io.micronaut.security:micronaut-security-ldap")
implementation("io.micronaut.kafka:micronaut-kafka")
implementation("io.swagger.core.v3:swagger-annotations")
implementation("jakarta.annotation:jakarta.annotation-api")
implementation("io.micronaut.rxjava3:micronaut-rxjava3")
implementation("io.micronaut.rxjava3:micronaut-rxjava3-http-client")
implementation("io.micronaut.openapi:micronaut-openapi")

compileOnly("org.projectlombok:lombok")

runtimeOnly("ch.qos.logback:logback-classic")

testAnnotationProcessor 'org.projectlombok:lombok:1.18.20'
testCompileOnly 'org.projectlombok:lombok:1.18.16'
testImplementation("org.mockito:mockito-core")
testImplementation("org.testcontainers:junit-jupiter")
testImplementation("org.testcontainers:testcontainers")
testImplementation("org.testcontainers:kafka") {
version {
strictly '1.15.3'
}
}
testImplementation("org.mockito:mockito-junit-jupiter:4.11.0")

testImplementation 'org.testcontainers:kafka:1.15.3'
testImplementation "org.testcontainers:junit-jupiter"
testImplementation 'org.mockito:mockito-inline:3.7.7'
testImplementation 'org.mockito:mockito-junit-jupiter:3.7.7'
testAnnotationProcessor("org.projectlombok:lombok")
testCompileOnly("org.projectlombok:lombok")
}

application {
mainClass.set( "com.michelin.ns4kafka.Application")
}

java {
sourceCompatibility = JavaVersion.toVersion('11')
targetCompatibility = JavaVersion.toVersion('11')
sourceCompatibility = JavaVersion.toVersion('17')
targetCompatibility = JavaVersion.toVersion('17')
}

run {
//environment( "MICRONAUT_ENVIRONMENTS","dev")
//environment("MICRONAUT_ENVIRONMENTS","dev")
}

micronaut {
Expand All @@ -62,14 +69,17 @@ micronaut {
}
}

dockerfile {
baseImage = "eclipse-temurin:17-jre-alpine"
}

dockerBuild {
images = ["michelin/ns4kafka:"+version]
}

tasks.withType(JavaCompile) {
options.fork = true
options.forkOptions.jvmArgs << '-Dmicronaut.openapi.views.spec=rapidoc.enabled=true'

}

sonarqube {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
micronautVersion=2.5.9
micronautVersion=3.8.0
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 1 addition & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#Tue Apr 06 16:48:19 CEST 2021
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip
Loading

0 comments on commit 8498360

Please sign in to comment.