Skip to content

Release v3.6.0 #462

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 209 commits into from
Jan 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
209 commits
Select commit Hold shift + click to select a range
da204dc
prepare for v3.6.x
vincentlauvlwj Jul 6, 2022
fba081f
fix version format
vincentlauvlwj Jul 6, 2022
bce82d9
fix version format
vincentlauvlwj Jul 6, 2022
63c87bf
refactor entity copy
vincentlauvlwj Jul 6, 2022
872fcf2
case when
zuisong Jul 14, 2022
b73f4df
case when enhancement
zuisong Jul 15, 2022
900c01f
case when infix dsl
zuisong Jul 15, 2022
747e201
remove old dsl
zuisong Jul 16, 2022
2ab88fd
change dsl, add docs
zuisong Jul 16, 2022
46111fe
fix bad code smell
zuisong Jul 18, 2022
8645f08
Make casting work
svenallers Jul 21, 2022
74bec0a
Add test case for every db and use writeKeyword()
svenallers Jul 21, 2022
22e7b30
Merge pull request #415 from svenallers/implement-casting
vincentlauvlwj Jul 22, 2022
3531a69
Add full outer join
KocproZ Aug 1, 2022
e84f697
SQLite: update version to 3.39.2.0
bin-tenkuu Aug 25, 2022
4ac1ccd
SQLite: Add support for the `returning` clause on `BulkInsert`, `Inse…
bin-tenkuu Aug 25, 2022
50459d9
SQLite: `returning` clause need function `executeQuery` and no Alias
bin-tenkuu Aug 26, 2022
22eabd2
add postgresql default value support
lookup-cat Sep 16, 2022
6ab35fb
add mysql default value support
lookup-cat Sep 16, 2022
fcae846
fix DefaultValueTest
lookup-cat Sep 16, 2022
86adc81
fix mysql default value test
lookup-cat Sep 16, 2022
441760a
rename DefaultValueExpression file
lookup-cat Sep 16, 2022
f432ded
fix DefaultValueExpression
lookup-cat Sep 19, 2022
dbbf7cf
add developer
lookup-cat Sep 19, 2022
bdb9d76
Merge branch 'v3.6.x' into master
vincentlauvlwj Sep 19, 2022
219ee5d
Merge pull request #431 from lookup-cat/master
vincentlauvlwj Sep 19, 2022
daec64d
fix
vincentlauvlwj Sep 19, 2022
bd5231e
fix failed tests
vincentlauvlwj Sep 19, 2022
98658df
fix gradle warnings
vincentlauvlwj Sep 19, 2022
f18cc21
update sql keywords #432
vincentlauvlwj Sep 20, 2022
ffee9a6
fix curcular reference check #433
vincentlauvlwj Sep 21, 2022
52f705e
update comment for default value #431
vincentlauvlwj Sep 21, 2022
c5e0035
remove tailing spaces
vincentlauvlwj Sep 21, 2022
5553bbc
remove tailing spaces
vincentlauvlwj Sep 21, 2022
d3d5289
fix detekt problems
vincentlauvlwj Sep 21, 2022
6faa83a
fix connflicts
vincentlauvlwj Sep 21, 2022
6ceeaf3
Merge branch 'zuisong-case-when' into v3.6.x
vincentlauvlwj Sep 21, 2022
4e427ee
refactor case when expression
vincentlauvlwj Sep 21, 2022
fe1a041
formart case when sql
vincentlauvlwj Sep 21, 2022
d9a81a3
refactor case when dsl
vincentlauvlwj Sep 22, 2022
e22b257
SqlType.of
vincentlauvlwj Sep 22, 2022
6d9c9a8
case when literal argument
vincentlauvlwj Sep 22, 2022
903a09e
fix case when tests
vincentlauvlwj Sep 22, 2022
78c7697
Merge pull request #419 from KocproZ/master
vincentlauvlwj Sep 22, 2022
fea2998
rename FULL_OUTER_JOIN --> FULL_JOIN
vincentlauvlwj Sep 22, 2022
c7e8ca4
Merge pull request #427 from 2938137849/sqlite-returning
vincentlauvlwj Sep 23, 2022
f5c8ff4
fix code style
vincentlauvlwj Sep 24, 2022
d2a1ac8
fix code style
vincentlauvlwj Sep 24, 2022
189a76a
fix code style
vincentlauvlwj Sep 24, 2022
ac5f13e
support java 9 module
vincentlauvlwj Sep 26, 2022
db6223a
rm unused code
vincentlauvlwj Sep 26, 2022
04b798f
compatible with java 8
vincentlauvlwj Sep 26, 2022
6ff605d
fix gradle warnings
vincentlauvlwj Sep 27, 2022
c398b97
refactor
vincentlauvlwj Sep 27, 2022
b51ccb3
remove java source compatibility limit
vincentlauvlwj Sep 28, 2022
9ddd7c9
feat(core): define WindowFunctionExpression and its visit pattern
michaelfyc Dec 10, 2022
f3cdfee
feat(mysql): implement common window function expressions for MySQL d…
michaelfyc Dec 10, 2022
f69d8e6
test(mysql): add window functions unit test for MySQL dialect
michaelfyc Dec 10, 2022
a073b7e
chore: update developer info
michaelfyc Dec 10, 2022
ff6fe11
run builds on multiple jvm versions
vincentlauvlwj Dec 18, 2022
6da543e
set build name
vincentlauvlwj Dec 18, 2022
b2ea895
remove moditect from source dir on dev environoment
vincentlauvlwj Dec 19, 2022
00c2bfb
enable gradle build scan
vincentlauvlwj Dec 19, 2022
e114c0e
fix module info
vincentlauvlwj Dec 19, 2022
bac3aa9
faster the ci
vincentlauvlwj Dec 19, 2022
5625092
configure uses & provides
vincentlauvlwj Dec 20, 2022
cde6797
fix
vincentlauvlwj Dec 20, 2022
486d1ca
fix build warnings
vincentlauvlwj Dec 20, 2022
c61098b
add jacoco test report
vincentlauvlwj Dec 20, 2022
147d870
show jacoco badges
vincentlauvlwj Dec 21, 2022
fa81835
Merge branch 'v3.6.x' of https://github.com/vincentlauvlwj/Ktorm into…
vincentlauvlwj Dec 21, 2022
228125d
fix
vincentlauvlwj Dec 21, 2022
91565df
upload jacoco badges
vincentlauvlwj Dec 22, 2022
ac7b590
git auth for updating jacoco badges
vincentlauvlwj Dec 22, 2022
24bfb77
upload jacoco badges once
vincentlauvlwj Dec 22, 2022
cc3ac03
build with jdk 19
vincentlauvlwj Dec 23, 2022
3e8b7bb
check reflection usage
vincentlauvlwj Dec 23, 2022
56e0322
fix logger detection bug
vincentlauvlwj Dec 24, 2022
116caad
refactor slf4j logger adapter using pure reflection
vincentlauvlwj Dec 24, 2022
3eac8b4
refactor android logger adapter using pure reflection
vincentlauvlwj Dec 24, 2022
c162251
fix trailing spaces
vincentlauvlwj Dec 24, 2022
93b9cdb
refactor commons logger adapter using pure reflection
vincentlauvlwj Dec 25, 2022
22c450a
refactor logger detection
vincentlauvlwj Dec 25, 2022
f8038bf
fix postgresql dependency
vincentlauvlwj Dec 26, 2022
7d67b53
fix warnings
vincentlauvlwj Dec 26, 2022
8b90f20
requires spring.tx & spring.jdbc
vincentlauvlwj Dec 26, 2022
27e0fc1
fix typo
vincentlauvlwj Dec 26, 2022
ab56b2f
fix typo
vincentlauvlwj Dec 26, 2022
9920f47
fix typo
vincentlauvlwj Dec 26, 2022
a620538
fix typo
vincentlauvlwj Dec 26, 2022
0ed0114
fix typo
vincentlauvlwj Dec 26, 2022
62b5a10
fix typo
vincentlauvlwj Dec 26, 2022
388346b
fix typo
vincentlauvlwj Dec 26, 2022
1d04d22
fix postgresql dependency
vincentlauvlwj Dec 26, 2022
99d7fe9
fix swallowed exception
vincentlauvlwj Dec 26, 2022
ce5e592
fix typo
vincentlauvlwj Dec 26, 2022
f32d2ab
fix postgresql dependency
vincentlauvlwj Dec 26, 2022
3fcec10
fix typo
vincentlauvlwj Dec 26, 2022
5882091
fix sqlserver dependency
vincentlauvlwj Dec 27, 2022
0e060e0
fix detekt warning
vincentlauvlwj Dec 27, 2022
f17adc4
fix detekt warning
vincentlauvlwj Dec 27, 2022
7c62df0
rename build scripts
vincentlauvlwj Dec 27, 2022
8a3ba7b
enrich jackson reflection fail notice
vincentlauvlwj Dec 27, 2022
98825ec
fix fail notice
vincentlauvlwj Dec 27, 2022
25691eb
fix detekt rule
vincentlauvlwj Dec 27, 2022
d3bc3b3
fix detekt warning
vincentlauvlwj Dec 27, 2022
0f22bd6
upgrade kotlin versionn
vincentlauvlwj Dec 28, 2022
cc18d31
fix kotlinTypeOf
vincentlauvlwj Dec 29, 2022
fa28a65
remove unused opt-in argument
vincentlauvlwj Dec 29, 2022
c069498
refactor sourceSet config
vincentlauvlwj Dec 29, 2022
3958e24
fix jvm defaullt optionos
vincentlauvlwj Dec 29, 2022
07d2232
upgrade gradle version
vincentlauvlwj Dec 29, 2022
6833604
rename totalRecords -> totalRecordsInAllPages
vincentlauvlwj Dec 30, 2022
6c3828e
fix entity equality bug
vincentlauvlwj Dec 30, 2022
6fcd72f
deprecate sequenceOf Nothinng
vincentlauvlwj Dec 30, 2022
f7d01fb
update copyright year
vincentlauvlwj Dec 31, 2022
6e86b9c
refactor expression visitor to interface
vincentlauvlwj Jan 1, 2023
c26eb42
refactor mysql expression visitor to interface
vincentlauvlwj Jan 2, 2023
37d9c2b
refactor postgresql expression visitor to interface
vincentlauvlwj Jan 2, 2023
528daf8
refactor sqlite expression visitor to interface
vincentlauvlwj Jan 2, 2023
d453e9c
fix compile error
vincentlauvlwj Jan 2, 2023
9988752
add comment
vincentlauvlwj Jan 2, 2023
d856d76
refactor mysql dialect
vincentlauvlwj Jan 2, 2023
2b9d599
refactor oracle dialect
vincentlauvlwj Jan 2, 2023
86dae3b
refactor postgresql dialect
vincentlauvlwj Jan 2, 2023
0d7e475
refactor sqlite dialect
vincentlauvlwj Jan 2, 2023
90c6f40
refactor sqlserver dialect
vincentlauvlwj Jan 2, 2023
d3f843f
fix detekt warning
vincentlauvlwj Jan 2, 2023
95808bd
expression visitor interceptor
vincentlauvlwj Jan 4, 2023
22b48af
create expression visitor
vincentlauvlwj Jan 5, 2023
0e0bdd3
refactor alias remover
vincentlauvlwj Jan 5, 2023
485c64e
refactor mysql alias remover
vincentlauvlwj Jan 5, 2023
ff8e1aa
refactor sqlite alias remover
vincentlauvlwj Jan 5, 2023
74ac890
fix alias remover
vincentlauvlwj Jan 5, 2023
426f8f3
refactor count expression
vincentlauvlwj Jan 5, 2023
7bb188d
refactor sqlserver orderby uplifting
vincentlauvlwj Jan 5, 2023
d8d8432
refactor order by replacer
vincentlauvlwj Jan 5, 2023
b8c67d3
visitor proxy supports Object methods
vincentlauvlwj Jan 6, 2023
4946935
refactor column name checker
vincentlauvlwj Jan 6, 2023
e462884
fix compile error
vincentlauvlwj Jan 6, 2023
8fa84ec
fix mysql test
vincentlauvlwj Jan 6, 2023
c22aa92
refactor combineConditions
vincentlauvlwj Jan 6, 2023
fb17ef9
rm blank lines
vincentlauvlwj Jan 6, 2023
16f108d
update autocommit msg
vincentlauvlwj Jan 6, 2023
93df271
merge #460
vincentlauvlwj Jan 9, 2023
89fdf20
Merge branch 'michaelfyc-feat-window-function' into v3.6.x
vincentlauvlwj Jan 9, 2023
fd6ea23
fix codestyle #460
vincentlauvlwj Jan 9, 2023
d8d8334
refactor expression types for window function
vincentlauvlwj Jan 9, 2023
a13b1a1
refactor expression orders
vincentlauvlwj Jan 9, 2023
ca7bfce
refactor expression orders
vincentlauvlwj Jan 10, 2023
52176e8
refactor window function sql formatting
vincentlauvlwj Jan 10, 2023
b3dff03
frameStart null check
vincentlauvlwj Jan 10, 2023
7594187
refactor expression orders
vincentlauvlwj Jan 10, 2023
d377a0b
fix blank linnes
vincentlauvlwj Jan 10, 2023
ecbfe26
rm unused type param
vincentlauvlwj Jan 10, 2023
ab82072
fix english syntax
vincentlauvlwj Jan 11, 2023
948d521
refactor expression orders
vincentlauvlwj Jan 11, 2023
145f19f
fix comment
vincentlauvlwj Jan 11, 2023
1cf9536
implement window functions
vincentlauvlwj Jan 11, 2023
094f5af
fix
vincentlauvlwj Jan 11, 2023
4b0f157
test
vincentlauvlwj Jan 11, 2023
5631c2a
implement window specification
vincentlauvlwj Jan 12, 2023
4db3b91
fix comment
vincentlauvlwj Jan 12, 2023
ba5f0f2
test window functions
vincentlauvlwj Jan 12, 2023
3a8a1e7
test row_number
vincentlauvlwj Jan 12, 2023
0d8e685
test rank
vincentlauvlwj Jan 12, 2023
96d3bb2
test dense_rank
vincentlauvlwj Jan 12, 2023
54d18a0
ignore badge upload failure
vincentlauvlwj Jan 12, 2023
8e74f26
test percent_rank
vincentlauvlwj Jan 12, 2023
c1edb7f
test cume_dist
vincentlauvlwj Jan 12, 2023
b8477fe
add comment
vincentlauvlwj Jan 12, 2023
719dd2c
make over function inline
vincentlauvlwj Jan 12, 2023
0bb0a64
DefaultMethodHandler to use the same class loader as the method`s dec…
Jan 12, 2023
1f0985b
test lag & lead
vincentlauvlwj Jan 13, 2023
8347809
test nth_value
vincentlauvlwj Jan 13, 2023
dfb690d
test ntile
vincentlauvlwj Jan 13, 2023
e196776
test min
vincentlauvlwj Jan 14, 2023
1986ec6
test max
vincentlauvlwj Jan 14, 2023
9215c40
test avg
vincentlauvlwj Jan 14, 2023
e007f54
test sum & count
vincentlauvlwj Jan 14, 2023
ff9855b
test window frame
vincentlauvlwj Jan 14, 2023
7779489
test window functions on dialects
vincentlauvlwj Jan 15, 2023
77d4726
fix failed tests
vincentlauvlwj Jan 16, 2023
cdbb6ce
test window functions with total records
vincentlauvlwj Jan 16, 2023
55ebee0
test equals
vincentlauvlwj Jan 16, 2023
5f34ee7
fix #466
vincentlauvlwj Jan 17, 2023
3b4a2fc
add test cases from #467
vincentlauvlwj Jan 17, 2023
1442539
Merge pull request #471 from brohacz/classloader_fix
vincentlauvlwj Jan 18, 2023
0e19c54
fix code style
vincentlauvlwj Jan 18, 2023
1b818c8
use context class loader for deserialization
vincentlauvlwj Jan 18, 2023
020b8db
fix #329
vincentlauvlwj Jan 19, 2023
4113970
add test for #386
vincentlauvlwj Jan 19, 2023
7caa2d8
add test for #386
vincentlauvlwj Jan 19, 2023
f80e8c4
fix #400
vincentlauvlwj Jan 19, 2023
49d8493
fix #405
vincentlauvlwj Jan 21, 2023
5912e05
test #405 for postgresql
vincentlauvlwj Jan 22, 2023
4eb106c
test #405 for mysql
vincentlauvlwj Jan 22, 2023
fc83f78
test #405 for sqlite
vincentlauvlwj Jan 22, 2023
9745d05
check empty insert & update #457
vincentlauvlwj Jan 25, 2023
cf6b84c
mysql: check empty insert & update #457
vincentlauvlwj Jan 25, 2023
dc5fb4d
postgresql: check empty insert & update #457
vincentlauvlwj Jan 25, 2023
67a1e7e
sqlite: check empty insert & update #457
vincentlauvlwj Jan 25, 2023
e8694f2
fix detekt rule
vincentlauvlwj Jan 25, 2023
f6a20e3
refactor joinReferences
vincentlauvlwj Jan 25, 2023
f8386fe
try fix oracle connection issue
vincentlauvlwj Jan 25, 2023
e1dd6f5
Revert "try fix oracle connection issue"
vincentlauvlwj Jan 25, 2023
6981e14
try fix oracle connection issue
vincentlauvlwj Jan 26, 2023
47df177
release 3.6.0
vincentlauvlwj Jan 26, 2023
13478e6
update comment
vincentlauvlwj Jan 27, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 68 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,21 @@ on:

jobs:
build:
name: Build with JDK ${{ matrix.java }}
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
java: [8, 11, 17, 19]
steps:
- name: Checkout Code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup Java
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 8
distribution: zulu
java-version: ${{ matrix.java }}

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
Expand All @@ -29,6 +34,64 @@ jobs:
- name: Run Tests
run: ./gradlew check

- name: Generate JaCoCo Report
run: ./gradlew jacocoTestReport

- name: Generate JaCoCo Badges
uses: cicirello/jacoco-badge-generator@v2
with:
generate-branches-badge: true
jacoco-csv-file: >
ktorm-core/build/reports/jacoco/test/jacocoTestReport.csv
ktorm-global/build/reports/jacoco/test/jacocoTestReport.csv
ktorm-jackson/build/reports/jacoco/test/jacocoTestReport.csv
ktorm-support-mysql/build/reports/jacoco/test/jacocoTestReport.csv
ktorm-support-oracle/build/reports/jacoco/test/jacocoTestReport.csv
ktorm-support-postgresql/build/reports/jacoco/test/jacocoTestReport.csv
ktorm-support-sqlite/build/reports/jacoco/test/jacocoTestReport.csv
ktorm-support-sqlserver/build/reports/jacoco/test/jacocoTestReport.csv

- name: Upload Jacoco Badges
if: matrix.java == '8'
continue-on-error: true
run: |
REPO_DIR=~/.ktorm/temp/repo/ktorm-docs
git clone --depth=1 --branch=master https://github.com/kotlin-orm/ktorm-docs.git "$REPO_DIR"

cp .github/badges/jacoco.svg "$REPO_DIR/source/images"
cp .github/badges/branches.svg "$REPO_DIR/source/images"
cd "$REPO_DIR"

if [[ `git status --porcelain` ]]; then
git config user.name 'vince'
git config user.email 'me@liuwj.me'
git add .
git commit -m "[github actions] update jacoco badges"
git push "https://$GIT_PUSH_TOKEN@github.com/kotlin-orm/ktorm-docs.git" master
fi
env:
GIT_PUSH_TOKEN: ${{secrets.GIT_PUSH_TOKEN}}

publish:
name: Publish Artifacts
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 8

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Assemble the Project
run: ./gradlew assemble

- name: Publish Artifacts
run: |
if [[ $(cat "ktorm.version") =~ "SNAPSHOT" ]] ; then
Expand All @@ -45,4 +108,4 @@ jobs:
OSSRH_PASSWORD: ${{secrets.OSSRH_PASSWORD}}
GPG_KEY_ID: ${{secrets.GPG_KEY_ID}}
GPG_PASSWORD: ${{secrets.GPG_PASSWORD}}
GPG_SECRET_KEY: ${{secrets.GPG_SECRET_KEY}}
GPG_SECRET_KEY: ${{secrets.GPG_SECRET_KEY}}
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ Pull requests are always welcome and can be a quick way to get your fix or impro
- By contributing to Ktorm, you agree that your contributions will be licensed under [Apache License 2.0](LICENSE).
- Coding Conventions are very important. Refer to the [Kotlin Style Guide](https://kotlinlang.org/docs/reference/coding-conventions.html) for the recommended coding standards of Ktorm.
- If you've added code that should be tested, add tests and ensure they all pass. If you've changed APIs, update the documentation.
- If it's your first time contributing to Ktorm, please also update [this file](buildSrc/src/main/kotlin/ktorm.maven-publish.gradle.kts), add your GitHub ID to the developer's info, which will let more people know your contributions.
- If it's your first time contributing to Ktorm, please also update [this file](buildSrc/src/main/kotlin/ktorm.publish.gradle.kts), add your GitHub ID to the developer's info, which will let more people know your contributions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

group = "org.ktorm"
version = file("ktorm.version").readText()
version = file("ktorm.version").readLines()[0]

task("printClasspath") {
doLast {
Expand Down
5 changes: 3 additions & 2 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

plugins {
id("org.gradle.kotlin.kotlin-dsl") version "2.1.7"
id("org.gradle.kotlin.kotlin-dsl") version "2.4.1"
}

repositories {
Expand All @@ -9,6 +9,7 @@ repositories {
}

dependencies {
api("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.32")
api("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.22")
api("org.moditect:moditect-gradle-plugin:1.0.0-rc3")
api("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.20.0")
}
46 changes: 0 additions & 46 deletions buildSrc/src/main/kotlin/ktorm.module-conventions.gradle.kts

This file was deleted.

78 changes: 78 additions & 0 deletions buildSrc/src/main/kotlin/ktorm.module.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@

group = rootProject.group
version = rootProject.version

plugins {
id("kotlin")
id("org.gradle.jacoco")
id("org.moditect.gradleplugin")
id("io.gitlab.arturbosch.detekt")
id("ktorm.source-header-check")
id("ktorm.publish")
}

repositories {
mavenCentral()
}

dependencies {
api(kotlin("stdlib"))
api(kotlin("reflect"))
testImplementation(kotlin("test-junit"))
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:${detekt.toolVersion}")
}

moditect {
// Generate a multi-release jar, the module descriptor will be located at META-INF/versions/9/module-info.class
addMainModuleInfo {
jvmVersion.set("9")
overwriteExistingFiles.set(true)
module {
moduleInfoFile = file("src/main/moditect/module-info.java")
}
}

// Let kotlin compiler know the module descriptor.
if (JavaVersion.current() >= JavaVersion.VERSION_1_9) {
sourceSets.main {
kotlin.srcDir("src/main/moditect")
}
}

// Workaround to avoid circular task dependencies, see https://github.com/moditect/moditect-gradle-plugin/issues/14
afterEvaluate {
val compileJava = tasks.compileJava.get()
val addDependenciesModuleInfo = tasks.addDependenciesModuleInfo.get()
compileJava.setDependsOn(compileJava.dependsOn - addDependenciesModuleInfo)
}
}

detekt {
source = files("src/main/kotlin")
config = files("${project.rootDir}/detekt.yml")
}

tasks {
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
allWarningsAsErrors = true
freeCompilerArgs = listOf("-Xexplicit-api=strict")
}
}

compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = listOf("-Xjvm-default=all")
}
}

jacocoTestReport {
reports {
csv.required.set(true)
xml.required.set(true)
html.required.set(true)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,30 @@ publishing {
name.set("ccr")
email.set("2938137849@qq.com")
}
developer {
id.set("zuisong")
name.set("zuisong")
email.set("com.me@foxmail.com")
}
developer {
id.set("svenallers")
name.set("Sven Allers")
email.set("sven.allers@gmx.de")
}
developer {
id.set("lookup-cat")
name.set("夜里的向日葵")
email.set("641571835@qq.com")
}
developer {
id.set("michaelfyc")
name.set("michaelfyc")
email.set("michael.fyc@outlook.com")
}
developer {
id.set("brohacz")
name.set("Michal Brosig")
}
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions buildSrc/src/main/kotlin/ktorm.source-header-check.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {

val licenseHeaderText = """
/*
* Copyright 2018-2022 the original author or authors.
* Copyright 2018-2023 the original author or authors.
*
* 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 @@ -38,4 +38,6 @@ val checkSourceHeader by tasks.registering {
}
}

tasks["check"].dependsOn(checkSourceHeader)
tasks.check {
dependsOn(checkSourceHeader)
}
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ val generateTuples by tasks.registering {
outputFile.bufferedWriter().use { writer ->
writer.write("""
/*
* Copyright 2018-2022 the original author or authors.
* Copyright 2018-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -297,7 +297,7 @@ val generateTuples by tasks.registering {
* limitations under the License.
*/

// Auto-generated by ktorm.tuples-generation.gradle.kts, DO NOT EDIT!
// Auto-generated by ktorm.tuples-codegen.gradle.kts, DO NOT EDIT!

package org.ktorm.entity

Expand Down Expand Up @@ -347,9 +347,15 @@ val generateTuples by tasks.registering {
}
}

sourceSets.main {
java.srcDirs(generatedSourceDir)
tasks {
compileKotlin {
dependsOn(generateTuples)
}
"jarSources" {
dependsOn(generateTuples)
}
}

tasks["compileKotlin"].dependsOn(generateTuples)
tasks["jarSources"].dependsOn(generateTuples)
sourceSets.main {
kotlin.srcDir(generatedSourceDir)
}
8 changes: 4 additions & 4 deletions detekt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ complexity:
includeStaticDeclarations: false
ComplexMethod:
active: true
threshold: 15
threshold: 20
ignoreSingleWhenExpression: true
ignoreSimpleWhenEntries: true
LabeledExpression:
Expand Down Expand Up @@ -197,7 +197,7 @@ formatting:
indentSize: 4
continuationIndentSize: 4
MaximumLineLength:
active: true
active: false
maxLineLength: 120
ModifierOrdering:
active: true
Expand Down Expand Up @@ -409,7 +409,7 @@ style:
maxJumpCount: 2
MagicNumber:
active: true
ignoreNumbers: '-1,0,1,2,3'
ignoreNumbers: '-1,0,1,2,3,60'
ignoreHashCodeFunction: true
ignorePropertyDeclaration: false
ignoreConstantDeclaration: true
Expand Down Expand Up @@ -460,7 +460,7 @@ style:
SpacingBetweenPackageAndImports:
active: true
ThrowsCount:
active: true
active: false
max: 2
TrailingWhitespace:
active: true
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading