Skip to content

Commit

Permalink
correct some defects as per code reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanQingyangXu committed Oct 11, 2024
1 parent 1ff0fc0 commit fe3ae67
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,4 @@ A MongoDB Dialect for the Hibernate ORM

## Build

[Gradle](https://gradle.org/) is the building tool with [Kotlin](https://kotlinlang.org/) DSL as default.

Starting with Gradle 8.2, creating new builds using gradle init defaults to generating Gradle builds using Kotlin DSL.

See https://blog.gradle.org/kotlin-dsl-is-now-the-default-for-new-gradle-builds for further details.

* Kotlin DSL Primer: https://docs.gradle.org/current/userguide/kotlin_dsl.html#kotlin_dsl
* Kotlin DSL API: https://docs.gradle.org/current/kotlin-dsl/index.html
* Migration from Groovy: https://docs.gradle.org/current/userguide/migrating_from_groovy_to_kotlin_dsl.html

## IntelliJ IDEA
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2008-2024 MongoDB, Inc.
* Copyright 2024-present MongoDB, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -58,7 +58,7 @@ tasks.named<Test>("test") {
spotless {
java {
// note: you can use an empty string for all the imports you didn't specify explicitly, '|' to join group without blank line, and '\\#` prefix for static imports
importOrder("java|javax", "org.hibernate", "com.mongo", "", "\\#")
importOrder("java|javax", "org.hibernate", "com.mongodb", "", "\\#")

removeUnusedImports()

Expand Down
2 changes: 1 addition & 1 deletion copyright.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2008-$YEAR MongoDB, Inc.
* Copyright $YEAR-present MongoDB, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down

0 comments on commit fe3ae67

Please sign in to comment.