Skip to content
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

Release 3.7.0 #547

Closed
wants to merge 106 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
a25e08b
PostgresSQL: array_position() for String and Enum (via casting)
svenallers Feb 9, 2023
59bfb57
prepare for next version
vincentlauvlwj Jun 24, 2023
947ec8b
init ksp annotations module
vincentlauvlwj Jun 24, 2023
beec750
migrate ksp annotations module
vincentlauvlwj Jun 24, 2023
2913b26
rm SqlTypeFactory
vincentlauvlwj Jun 24, 2023
191c212
fix
vincentlauvlwj Jun 24, 2023
1cd8f87
add module-info.java for ktorm-ksp-annotations
vincentlauvlwj Jun 25, 2023
f372d3b
requires jdk.unsupported
vincentlauvlwj Jun 25, 2023
1f1bf5b
fix copyright header
vincentlauvlwj Jun 25, 2023
83f016c
init ksp spi module
vincentlauvlwj Jun 27, 2023
cbf6266
migrate spi code
vincentlauvlwj Jun 30, 2023
4382539
add module-info.java for spi module
vincentlauvlwj Jun 30, 2023
c96bfd2
skip modular for ksp spi
vincentlauvlwj Jul 1, 2023
26524aa
init ksp compiler module
vincentlauvlwj Jul 2, 2023
e4b07f7
migrate ksp compiler code
vincentlauvlwj Jul 2, 2023
d6f98aa
fix compile error
vincentlauvlwj Jul 2, 2023
2048c93
fix compile error
vincentlauvlwj Jul 2, 2023
c30604d
fix
vincentlauvlwj Jul 2, 2023
38d2911
fix compile error
vincentlauvlwj Jul 2, 2023
d1fe23d
migrate ksp compiler test code
vincentlauvlwj Jul 2, 2023
d99bb98
fix ksp test
vincentlauvlwj Jul 2, 2023
0716ffe
refactor
vincentlauvlwj Jul 3, 2023
74baae8
refactor
vincentlauvlwj Jul 3, 2023
4914d57
refactor
vincentlauvlwj Jul 3, 2023
3777883
fix long method
vincentlauvlwj Jul 3, 2023
60fa150
fix code style
vincentlauvlwj Jul 3, 2023
80999ca
fix code style
vincentlauvlwj Jul 3, 2023
c3d825c
fix code style
vincentlauvlwj Jul 3, 2023
6a8d997
fix code style
vincentlauvlwj Jul 3, 2023
214aed8
fix code style
vincentlauvlwj Jul 3, 2023
88fb1f2
refactor
vincentlauvlwj Jul 3, 2023
45155f4
fix unit tests
vincentlauvlwj Jul 8, 2023
2b9636f
test generic
vincentlauvlwj Jul 8, 2023
9db1251
add sqltype check test
vincentlauvlwj Jul 8, 2023
8f5b6cf
format generated code by ktlint
vincentlauvlwj Jul 9, 2023
4acae28
fix ext code generator test
vincentlauvlwj Jul 9, 2023
d5a0b24
fix detekt issue
vincentlauvlwj Jul 10, 2023
4d67dfd
fix getGeneratedKey
vincentlauvlwj Jul 15, 2023
cb48aab
generate refs class
vincentlauvlwj Jul 15, 2023
bf2acff
property name for refs
vincentlauvlwj Jul 16, 2023
6321d11
generate ref table property
vincentlauvlwj Jul 16, 2023
c2968e8
rename
vincentlauvlwj Jul 16, 2023
a783546
generate refs class
vincentlauvlwj Jul 16, 2023
efd6711
fix code style
vincentlauvlwj Jul 16, 2023
8934336
fix code style
vincentlauvlwj Jul 16, 2023
3bf7c08
test refs
vincentlauvlwj Jul 16, 2023
4a122ff
fix detekt issues
vincentlauvlwj Jul 16, 2023
a9fdcf6
add log
vincentlauvlwj Aug 6, 2023
2f27c68
load ktlint standard rule set manually
vincentlauvlwj Aug 6, 2023
9ae41cb
fix service loader class loader in ksp envrionment
vincentlauvlwj Aug 6, 2023
bae463d
fix log
vincentlauvlwj Aug 6, 2023
7e430e0
init maven plugin module
vincentlauvlwj Aug 13, 2023
ef8838e
use ksp cmdline
vincentlauvlwj Aug 13, 2023
eeb62b7
download ktlint programatically
vincentlauvlwj Aug 13, 2023
ea6b7b2
parse user optionns
vincentlauvlwj Aug 14, 2023
bed7421
build ksp options
vincentlauvlwj Aug 20, 2023
aa22bb3
upgrade to kotlin 1.9.0
vincentlauvlwj Aug 20, 2023
35f5082
configure java compatibility
vincentlauvlwj Aug 20, 2023
24c03d0
use ktlint_official code style
vincentlauvlwj Aug 20, 2023
f609d95
fix detekt rules
vincentlauvlwj Aug 22, 2023
9d17939
fix code style
vincentlauvlwj Aug 22, 2023
55fef79
fix compile error for jdk 20
vincentlauvlwj Aug 23, 2023
9d6b8f3
add test jvm args
vincentlauvlwj Aug 26, 2023
5c3416f
fix failed tests
vincentlauvlwj Aug 26, 2023
b194c68
code formatter interface
vincentlauvlwj Aug 27, 2023
6f6f633
fix code style
vincentlauvlwj Aug 28, 2023
5a51dc9
implement ksp maven plugin extensionn
vincentlauvlwj Sep 1, 2023
3bddef4
resolve ktlint executable jar
vincentlauvlwj Sep 2, 2023
751a094
standalone ktlint formatter
vincentlauvlwj Sep 2, 2023
be2e63d
fix detekt issue
vincentlauvlwj Sep 2, 2023
71b51fe
fix failed tests
vincentlauvlwj Sep 2, 2023
b8dd64f
ignore ktlint violations
vincentlauvlwj Sep 4, 2023
fa0965e
long array sql type
vincentlauvlwj Sep 9, 2023
78aa56a
int array sql type
vincentlauvlwj Sep 9, 2023
66ed312
short array sql type
vincentlauvlwj Sep 9, 2023
2b5c3d2
double array sql type
vincentlauvlwj Sep 9, 2023
cb41236
float array sql type
vincentlauvlwj Sep 9, 2023
04d66be
boolean array sql type
vincentlauvlwj Sep 9, 2023
fe78c99
test arrays
vincentlauvlwj Sep 9, 2023
79411c7
Merge pull request #479 from svenallers/psql/array_position_cast
vincentlauvlwj Sep 9, 2023
b6a9911
array_position for text
vincentlauvlwj Sep 9, 2023
27951f8
array_position for short
vincentlauvlwj Sep 9, 2023
1c45b0c
array_position for int
vincentlauvlwj Sep 9, 2023
687af3d
array_position for long
vincentlauvlwj Sep 9, 2023
0ce6d32
array_position for boolean
vincentlauvlwj Sep 9, 2023
f288408
array_position impl
vincentlauvlwj Sep 9, 2023
0a35211
test array position
vincentlauvlwj Sep 9, 2023
61ccfd2
update copyright year
vincentlauvlwj Apr 20, 2024
5ff986f
fix detekt issue
vincentlauvlwj Apr 20, 2024
8c95e85
fix jdk version
vincentlauvlwj Apr 20, 2024
034b6f3
upgrade testcontainers for Apple Silicon
vincentlauvlwj Apr 21, 2024
eba9ffe
test reuse
vincentlauvlwj Apr 21, 2024
d9aa91a
fix failed tests
vincentlauvlwj Apr 21, 2024
bf83999
rm unused suppressing
vincentlauvlwj Apr 27, 2024
34765fd
fix suppressing
vincentlauvlwj Apr 27, 2024
fbe4ed1
fix codestyle
vincentlauvlwj Apr 27, 2024
7bbc06f
refactor add function
vincentlauvlwj May 2, 2024
47aeefc
refactor update function
vincentlauvlwj May 3, 2024
e35ff78
fix typo
vincentlauvlwj May 5, 2024
b63332b
check abstract class
vincentlauvlwj May 5, 2024
f0b0868
update error notice
vincentlauvlwj May 5, 2024
24f4324
fix naming
vincentlauvlwj May 5, 2024
9f3efe6
fix naming
vincentlauvlwj May 5, 2024
7f8ad54
fix jvmName --> qualifiedName
vincentlauvlwj May 5, 2024
a394bb5
update comment
vincentlauvlwj May 12, 2024
3cf3f44
update comment
vincentlauvlwj May 12, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: true
matrix:
java: [8, 11, 17, 19]
java: [8, 11, 17, 20]
steps:
- name: Checkout Code
uses: actions/checkout@v3
Expand Down
6 changes: 3 additions & 3 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.4.1"
`kotlin-dsl`
}

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

dependencies {
api("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.22")
api("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0")
api("org.moditect:moditect-gradle-plugin:1.0.0-rc3")
api("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.20.0")
api("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.23.1")
}
54 changes: 54 additions & 0 deletions buildSrc/src/main/kotlin/ktorm.base.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@

group = rootProject.group
version = rootProject.version

plugins {
id("kotlin")
id("org.gradle.jacoco")
id("io.gitlab.arturbosch.detekt")
}

repositories {
mavenCentral()
}

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

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

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

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

compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}

jacocoTestReport {
reports {
csv.required.set(true)
xml.required.set(true)
html.required.set(true)
}
}
}
30 changes: 30 additions & 0 deletions buildSrc/src/main/kotlin/ktorm.modularity.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

plugins {
id("kotlin")
id("org.moditect.gradleplugin")
}

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)
}
}
78 changes: 0 additions & 78 deletions buildSrc/src/main/kotlin/ktorm.module.gradle.kts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {

val licenseHeaderText = """
/*
* Copyright 2018-2023 the original author or authors.
* Copyright 2018-2024 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
4 changes: 2 additions & 2 deletions buildSrc/src/main/kotlin/ktorm.tuples-codegen.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
id("kotlin")
}

val generatedSourceDir = "${project.buildDir.absolutePath}/generated/source/main/kotlin"
val generatedSourceDir = "${project.layout.buildDirectory.asFile.get()}/generated/source/main/kotlin"
val maxTupleNumber = 9

fun generateTuple(writer: java.io.Writer, tupleNumber: Int) {
Expand Down Expand Up @@ -282,7 +282,7 @@ val generateTuples by tasks.registering {
outputFile.bufferedWriter().use { writer ->
writer.write("""
/*
* Copyright 2018-2023 the original author or authors.
* Copyright 2018-2024 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
42 changes: 20 additions & 22 deletions detekt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ complexity:
active: true
threshold: 12
includeStaticDeclarations: false
ComplexMethod:
CyclomaticComplexMethod:
active: true
threshold: 20
ignoreSingleWhenExpression: true
ignoreSimpleWhenEntries: true
LabeledExpression:
active: true
ignoredLabels: ""
ignoredLabels: []
LargeClass:
active: true
threshold: 600
Expand All @@ -72,7 +72,7 @@ complexity:
constructorThreshold: 6
ignoreDefaultParameters: true
MethodOverloading:
active: true
active: false
threshold: 7
NestedBlockDepth:
active: true
Expand Down Expand Up @@ -131,7 +131,7 @@ exceptions:
active: true
ExceptionRaisedInUnexpectedLocation:
active: true
methodNames: 'toString,hashCode,equals,finalize'
methodNames: ['toString', 'hashCode', 'equals', 'finalize']
InstanceOfCheckForException:
active: true
NotImplementedDeclaration:
Expand All @@ -144,14 +144,14 @@ exceptions:
active: true
SwallowedException:
active: true
ignoredExceptionTypes: 'InterruptedException,NumberFormatException,ParseException,MalformedURLException'
ignoredExceptionTypes: ['InterruptedException', 'NumberFormatException', 'ParseException', 'MalformedURLException']
ThrowingExceptionFromFinally:
active: true
ThrowingExceptionInMain:
active: true
ThrowingExceptionsWithoutMessageOrCause:
active: true
exceptions: 'IllegalArgumentException,IllegalStateException,IOException'
exceptions: ['IllegalArgumentException', 'IllegalStateException', 'IOException']
ThrowingNewInstanceOfSameException:
active: true
TooGenericExceptionCaught:
Expand Down Expand Up @@ -195,7 +195,6 @@ formatting:
active: true
autoCorrect: false
indentSize: 4
continuationIndentSize: 4
MaximumLineLength:
active: false
maxLineLength: 120
Expand Down Expand Up @@ -284,7 +283,7 @@ naming:
enumEntryPattern: '^[A-Z][_a-zA-Z0-9]*'
ForbiddenClassName:
active: false
forbiddenName: ''
forbiddenName: []
FunctionMaxLength:
active: true
maximumFunctionNameLength: 64
Expand All @@ -295,12 +294,10 @@ naming:
active: true
functionPattern: '^([a-z$][a-zA-Z$0-9]*)|(`.*`)$'
excludeClassPattern: '$^'
ignoreOverridden: true
FunctionParameterNaming:
active: true
parameterPattern: '[a-z][A-Za-z0-9]*'
excludeClassPattern: '$^'
ignoreOverridden: true
MatchingDeclarationName:
active: true
MemberNameEqualsClassName:
Expand Down Expand Up @@ -330,7 +327,6 @@ naming:
variablePattern: '[a-z][A-Za-z0-9]*'
privateVariablePattern: '(_)?[a-z][A-Za-z0-9]*'
excludeClassPattern: '$^'
ignoreOverridden: true

performance:
active: true
Expand All @@ -345,8 +341,6 @@ performance:

potential-bugs:
active: true
DuplicateCaseInWhenExpression:
active: true
EqualsAlwaysReturnsTrueOrFalse:
active: true
EqualsWithHashCodeExist:
Expand Down Expand Up @@ -382,7 +376,7 @@ style:
active: true
DataClassContainsFunctions:
active: false
conversionFunctionPrefix: 'as'
conversionFunctionPrefix: ['as']
EqualsNullCall:
active: true
EqualsOnSignatureLine:
Expand All @@ -394,31 +388,33 @@ style:
includeLineWrapping: false
ForbiddenComment:
active: true
values: 'TODO:,FIXME:,STOPSHIP:'
comments: ['FIXME:', 'STOPSHIP:', 'TODO:']
ForbiddenImport:
active: false
imports: ''
imports: []
ForbiddenVoid:
active: true
FunctionOnlyReturningConstant:
active: true
ignoreOverridableFunction: true
excludedFunctions: 'describeContents'
excludedFunctions: ['describeContents']
LoopWithTooManyJumpStatements:
active: true
maxJumpCount: 2
MagicNumber:
active: true
ignoreNumbers: '-1,0,1,2,3,60'
ignoreNumbers: ['-1', '0', '1', '2', '3', '60']
ignoreHashCodeFunction: true
ignorePropertyDeclaration: false
ignoreConstantDeclaration: true
ignoreCompanionObjectPropertyDeclaration: true
ignoreAnnotation: false
ignoreNamedArgument: true
ignoreEnums: false
MandatoryBracesIfStatements:
BracesOnIfStatements:
active: true
singleLine: 'never'
multiLine: 'always'
MaxLineLength:
active: true
maxLineLength: 120
Expand All @@ -439,8 +435,10 @@ style:
active: true
OptionalUnit:
active: true
OptionalWhenBraces:
BracesOnWhenStatements:
active: false
singleLine: 'never'
multiLine: 'necessary'
PreferToOverPairSyntax:
active: false
ProtectedMemberInFinalClass:
Expand All @@ -450,7 +448,7 @@ style:
ReturnCount:
active: false
max: 2
excludedFunctions: "equals"
excludedFunctions: ["equals"]
excludeLabeled: false
excludeReturnFromLambda: true
SafeCast:
Expand Down Expand Up @@ -496,4 +494,4 @@ style:
active: true
WildcardImport:
active: false
excludeImports: 'java.util.*,kotlinx.android.synthetic.*'
excludeImports: ['java.util.*', 'kotlinx.android.synthetic.*']
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.6-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading
Loading