This commit is contained in:
tursom 2021-08-19 15:43:52 +08:00
parent d8696e30fb
commit fce060ed22
3 changed files with 10 additions and 10 deletions

View File

@ -30,7 +30,7 @@ ext["publishRepositories"] = { project: Project, p: PublishingExtension ->
}
}
} catch (e: Exception) {
System.err.println("cannot push to repository tursom")
println("cannot push to repository tursom")
}
try {
maven {
@ -44,7 +44,7 @@ ext["publishRepositories"] = { project: Project, p: PublishingExtension ->
}
}
} catch (e: Exception) {
System.err.println("cannot push to repository github")
println("cannot push to repository github")
}
val repositoriesRegex = "repositories\\.[a-zA-z]*".toRegex()
@ -71,7 +71,7 @@ ext["publishRepositories"] = { project: Project, p: PublishingExtension ->
}
}
} catch (e: Exception) {
System.err.println("cannot push to repository $repositoryName")
println("cannot push to repository $repositoryName")
}
}
}

0
gradlew vendored Normal file → Executable file
View File

View File

@ -214,29 +214,29 @@ inline fun <reified T, Children : Wrapper<T>> Func<Children, String>.notInSql(
): Children = notInSql(column.directTableField, value)
val groupBy: Func<*, String>.(Array<out String>) -> Any = Func<*, String>::groupBy
// val groupBy: Func<*, String>.(Array<out String>) -> Any = Func<*, String>::groupBy
inline fun <reified T, Children : Wrapper<T>> Func<Children, String>.groupBy(column: KProperty1<T, *>): Children =
groupBy(column.directTableField)
@Suppress("UNCHECKED_CAST")
inline fun <reified T, Children : Wrapper<T>> Func<Children, String>.groupBy(vararg column: KProperty1<T, *>): Children =
groupBy(column.directTableField) as Children
groupBy(column.directTableField.asList()) as Children
val orderByAsc: Func<*, String>.(Array<out String>) -> Any = Func<*, String>::orderByAsc
// val orderByAsc: Func<*, String>.(Array<out String>) -> Any = Func<*, String>::orderByAsc
inline fun <reified T, Children : Wrapper<T>> Func<Children, String>.orderByAsc(column: KProperty1<T, *>): Children =
orderByAsc(column.directTableField)
@Suppress("UNCHECKED_CAST")
inline fun <reified T, Children : Wrapper<T>> Func<Children, String>.orderByAsc(vararg column: KProperty1<T, *>): Children =
orderByAsc(column.directTableField) as Children
orderByAsc(column.directTableField.asList()) as Children
val orderByDesc: Func<*, String>.(Array<out String>) -> Any = Func<*, String>::orderByDesc
// val orderByDesc: Func<*, String>.(Array<out String>) -> Any = Func<*, String>::orderByDesc
inline fun <reified T, Children : Wrapper<T>> Func<Children, String>.orderByDesc(column: KProperty1<T, *>): Children =
orderByDesc(column.directTableField)
@Suppress("UNCHECKED_CAST")
inline fun <reified T, Children : Wrapper<T>> Func<Children, String>.orderByDesc(vararg column: KProperty1<T, *>): Children =
orderByDesc(column.directTableField) as Children
orderByDesc(column.directTableField.asList()) as Children
/**
@ -314,7 +314,7 @@ object WrapperEnhance : AbstractWrapper<Any, String, WrapperEnhance>() {
wrapper.expression.add(ISqlSegment { columnToString(column) }, Regexp, ISqlSegment {
val genParamName = Constants.WRAPPER_PARAM + (paramNameSeqField.get(wrapper) as AtomicInteger).incrementAndGet()
wrapper.paramNameValuePairs[genParamName] = value
String.format(Constants.WRAPPER_PARAM_FORMAT, Constants.WRAPPER, genParamName)
"#{${Constants.WRAPPER}${Constants.WRAPPER_PARAM_MIDDLE}$genParamName}"
})
return wrapper
}