TencentBlueKing / bk-ci

蓝鲸持续集成平台(蓝盾)
https://bk.tencent.com
Other
2.38k stars 500 forks source link

gradle clean build fail #6135

Open mikeeastin opened 2 years ago

mikeeastin commented 2 years ago
mikeeastin commented 2 years ago

[root@jszx-test backend]# pwd /data/bk-ci/src/backend [root@jszx-test backend]# gradle clean build

FAILURE: Build failed with an exception.

BUILD FAILED in 0s [root@jszx-test backend]# gradle clean build --stacktrace

FAILURE: Build failed with an exception.

BUILD FAILED in 0s

hingbong commented 2 years ago

you should go into directory ci or other gradle projects' directory.

mikeeastin commented 2 years ago

[root@jszx-test backend]# pwd /data/bk-ci/src/backend [root@jszx-test backend]# cd ci/ [root@jszx-test ci]# ls boot-assembly build.gradle.kts buildSrc core gradle gradle.properties gradle.properties-bak gradlew gradlew.bat README.md settings.gradle.kts [root@jszx-test ci]# [root@jszx-test ci]# [root@jszx-test ci]# [root@jszx-test ci]# [root@jszx-test ci]# [root@jszx-test ci]# gradle clean build Starting a Gradle Daemon, 3 incompatible Daemons could not be reused, use --status for details The kotlin-dsl plugin applied to project ':buildSrc' enables experimental Kotlin compiler features. For more information see https://docs.gradle.org/5.0/userguide/kotlin_dsl.html#sec:kotlin-dsl_plugin e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (37, 5): Unresolved reference: archiveClassifier e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (44, 5): Unresolved reference: archiveClassifier e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (64, 1): Expression 'publishing' cannot be invoked as a function. The function 'invoke()' is not found e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (64, 1): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: public val PluginDependenciesSpec.publishing: PluginDependencySpec defined in org.gradle.kotlin.dsl e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (65, 5): Unresolved reference: publications e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (66, 9): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: public inline fun <U : TypeVariable(T), T : Any> PolymorphicDomainObjectContainer<TypeVariable(T)>.create(name: String, type: KClass<TypeVariable(U)>): TypeVariable(U) defined in org.gradle.kotlin.dsl public inline fun <U : TypeVariable(T), T : Any> PolymorphicDomainObjectContainer<TypeVariable(T)>.create(name: String, type: KClass<TypeVariable(U)>, configuration: Action<in TypeVariable(U)>): TypeVariable(U) defined in org.gradle.kotlin.dsl public inline fun PolymorphicDomainObjectContainer<in TypeVariable(U)>.create(name: String): TypeVariable(U) defined in org.gradle.kotlin.dsl public inline fun PolymorphicDomainObjectContainer<in TypeVariable(U)>.create(name: String, noinline configuration: TypeVariable(U).() -> Unit): TypeVariable(U) defined in org.gradle.kotlin.dsl public fun DependencyHandler.create(group: String, name: String, version: String? = ..., configuration: String? = ..., classifier: String? = ..., ext: String? = ...): ExternalModuleDependency defined in org.gradle.kotlin.dsl @Incubating public inline fun ExtensionContainer.create(name: String, vararg constructionArguments: Any): TypeVariable(T) defined in org.gradle.kotlin.dsl public inline fun ExtensionContainer.create(name: String, type: KClass<TypeVariable(T)>, vararg constructionArguments: Any): TypeVariable(T) defined in org.gradle.kotlin.dsl public inline fun ExtensionContainer.create(publicType: KClass<TypeVariable(T)>, name: String, instanceType: KClass<out TypeVariable(T)>, vararg constructionArguments: Any): TypeVariable(T) defined in org.gradle.kotlin.dsl public inline fun ExtensionContainer.create(publicType: TypeOf<TypeVariable(T)>, name: String, instanceType: KClass<out TypeVariable(T)>, vararg constructionArguments: Any): TypeVariable(T) defined in org.gradle.kotlin.dsl public inline fun TaskContainer.create(vararg options: Pair<String, Any?>): Task defined in org.gradle.kotlin.dsl public inline fun TaskContainer.create(name: String, vararg arguments: Any): TypeVariable(T) defined in org.gradle.kotlin.dsl public inline fun TaskContainer.create(name: String, type: KClass<TypeVariable(T)>): TypeVariable(T) defined in org.gradle.kotlin.dsl @Incubating public inline fun TaskContainer.create(name: String, type: KClass<TypeVariable(T)>, vararg constructorArgs: Any): TypeVariable(T) defined in org.gradle.kotlin.dsl public inline fun TaskContainer.create(name: String, type: KClass<TypeVariable(T)>, configuration: Action<in TypeVariable(T)>): TypeVariable(T) defined in org.gradle.kotlin.dsl @Incubating public inline fun <S : TypeVariable(T), T : Any> ModelMap<TypeVariable(T)>.create(name: String, type: KClass<TypeVariable(S)>): Unit defined in org.gradle.kotlin.dsl @Incubating public inline fun <S : TypeVariable(T), T : Any> ModelMap<TypeVariable(T)>.create(name: String, type: KClass<TypeVariable(S)>, configAction: Action<in TypeVariable(S)>): Unit defined in org.gradle.kotlin.dsl @Incubating public inline fun BinaryTasksCollection.create(name: String, type: KClass<TypeVariable(T)>, config: Action<in TypeVariable(T)>): Unit defined in org.gradle.kotlin.dsl e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (67, 13): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: public inline fun VcsMapping.from(noinline configureAction: TypeVariable(T).() -> Unit): Unit defined in org.gradle.kotlin.dsl @Incubating public inline fun VcsMapping.from(type: KClass<TypeVariable(T)>, configureAction: Action<in TypeVariable(T)>): Unit defined in org.gradle.kotlin.dsl e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (69, 13): Unresolved reference: artifact e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (70, 13): Unresolved reference: artifact e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (72, 13): Unresolved reference: pom e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (73, 22): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: @InlineOnly public inline operator fun kotlin.text.StringBuilder / = java.lang.StringBuilder /.set(index: Int, value: Char): Unit defined in kotlin.text e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (74, 29): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: @InlineOnly public inline operator fun kotlin.text.StringBuilder / = java.lang.StringBuilder /.set(index: Int, value: Char): Unit defined in kotlin.text e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (75, 17): Unresolved reference: url e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (76, 17): Unresolved reference: licenses e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (77, 21): Unresolved reference: license e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (78, 30): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: @InlineOnly public inline operator fun kotlin.text.StringBuilder / = java.lang.StringBuilder /.set(index: Int, value: Char): Unit defined in kotlin.text e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (79, 25): Unresolved reference: url e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (80, 25): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: public val PluginDependenciesSpec.distribution: PluginDependencySpec defined in org.gradle.kotlin.dsl e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (81, 25): Unresolved reference: comments e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (85, 17): Unresolved reference: developers e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (86, 21): Unresolved reference: developer e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (87, 30): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: @InlineOnly public inline operator fun kotlin.text.StringBuilder / = java.lang.StringBuilder /.set(index: Int, value: Char): Unit defined in kotlin.text e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (88, 25): Unresolved reference: email e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (89, 25): Unresolved reference: roles e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (90, 25): Unresolved reference: url e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (94, 17): Unresolved reference: scm e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (95, 21): Unresolved reference: url e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (96, 21): Unresolved reference: connection e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (97, 21): Unresolved reference: developerConnection e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (175, 1): Expression 'signing' cannot be invoked as a function. The function 'invoke()' is not found e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (175, 1): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: public val PluginDependenciesSpec.signing: PluginDependencySpec defined in org.gradle.kotlin.dsl e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (176, 5): Unresolved reference: sign e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (176, 10): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: public val PluginDependenciesSpec.publishing: PluginDependencySpec defined in org.gradle.kotlin.dsl e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (57, 1): Unresolved reference: jooq e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (75, 17): Unresolved reference: jooqConfiguration e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (76, 21): Unresolved reference: jdbc e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (102, 25): Unresolved reference: driver e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (103, 25): Unresolved reference: url e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (104, 25): Unresolved reference: user e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (105, 25): Unresolved reference: password e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (107, 21): Unresolved reference: generator e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (108, 25): Val cannot be reassigned e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (109, 25): Unresolved reference: database e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (111, 29): Unresolved reference: inputSchema e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (112, 29): Unresolved reference: withIncludeRoutines e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (115, 25): Unresolved reference: strategy e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (117, 25): Unresolved reference: generate e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (118, 29): Unresolved reference: isRelations e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (119, 29): Unresolved reference: isDeprecated e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (120, 29): Unresolved reference: isFluentSetters e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (121, 29): Unresolved reference: isGeneratedAnnotation e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (122, 29): Unresolved reference: isJavaTimeTypes e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (125, 25): Unresolved reference: target e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (126, 29): Unresolved reference: packageName e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-shadow-jar.gradle.kts: (47, 9): Unresolved reference: destinationDirectory e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-shadow-jar.gradle.kts: (48, 9): Unresolved reference: archiveClassifier e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-shadow-jar.gradle.kts: (49, 9): Unresolved reference: archiveVersion

Task :buildSrc:compileKotlin FAILED

FAILURE: Build failed with an exception.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/5.0/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 17s

mikeeastin commented 2 years ago

[root@jszx-test backend]# pwd /data/bk-ci/src/backend [root@jszx-test backend]# cd ci/ [root@jszx-test ci]# ls boot-assembly build.gradle.kts buildSrc core gradle gradle.properties gradle.properties-bak gradlew gradlew.bat README.md settings.gradle.kts [root@jszx-test ci]# [root@jszx-test ci]# [root@jszx-test ci]# [root@jszx-test ci]# [root@jszx-test ci]# [root@jszx-test ci]# gradle clean build Starting a Gradle Daemon, 3 incompatible Daemons could not be reused, use --status for details The kotlin-dsl plugin applied to project ':buildSrc' enables experimental Kotlin compiler features. For more information see https://docs.gradle.org/5.0/userguide/kotlin_dsl.html#sec:kotlin-dsl_plugin e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (37, 5): Unresolved reference: archiveClassifier e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (44, 5): Unresolved reference: archiveClassifier e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (64, 1): Expression 'publishing' cannot be invoked as a function. The function 'invoke()' is not found e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (64, 1): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: public val PluginDependenciesSpec.publishing: PluginDependencySpec defined in org.gradle.kotlin.dsl e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (65, 5): Unresolved reference: publications e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (66, 9): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: public inline fun <U : TypeVariable(T), T : Any> PolymorphicDomainObjectContainer<TypeVariable(T)>.create(name: String, type: KClass<TypeVariable(U)>): TypeVariable(U) defined in org.gradle.kotlin.dsl public inline fun <U : TypeVariable(T), T : Any> PolymorphicDomainObjectContainer<TypeVariable(T)>.create(name: String, type: KClass<TypeVariable(U)>, configuration: Action<in TypeVariable(U)>): TypeVariable(U) defined in org.gradle.kotlin.dsl public inline fun PolymorphicDomainObjectContainer<in TypeVariable(U)>.create(name: String): TypeVariable(U) defined in org.gradle.kotlin.dsl public inline fun PolymorphicDomainObjectContainer<in TypeVariable(U)>.create(name: String, noinline configuration: TypeVariable(U).() -> Unit): TypeVariable(U) defined in org.gradle.kotlin.dsl public fun DependencyHandler.create(group: String, name: String, version: String? = ..., configuration: String? = ..., classifier: String? = ..., ext: String? = ...): ExternalModuleDependency defined in org.gradle.kotlin.dsl @Incubating public inline fun ExtensionContainer.create(name: String, vararg constructionArguments: Any): TypeVariable(T) defined in org.gradle.kotlin.dsl public inline fun ExtensionContainer.create(name: String, type: KClass<TypeVariable(T)>, vararg constructionArguments: Any): TypeVariable(T) defined in org.gradle.kotlin.dsl public inline fun ExtensionContainer.create(publicType: KClass<TypeVariable(T)>, name: String, instanceType: KClass<out TypeVariable(T)>, vararg constructionArguments: Any): TypeVariable(T) defined in org.gradle.kotlin.dsl public inline fun ExtensionContainer.create(publicType: TypeOf<TypeVariable(T)>, name: String, instanceType: KClass<out TypeVariable(T)>, vararg constructionArguments: Any): TypeVariable(T) defined in org.gradle.kotlin.dsl public inline fun TaskContainer.create(vararg options: Pair<String, Any?>): Task defined in org.gradle.kotlin.dsl public inline fun TaskContainer.create(name: String, vararg arguments: Any): TypeVariable(T) defined in org.gradle.kotlin.dsl public inline fun TaskContainer.create(name: String, type: KClass<TypeVariable(T)>): TypeVariable(T) defined in org.gradle.kotlin.dsl @Incubating public inline fun TaskContainer.create(name: String, type: KClass<TypeVariable(T)>, vararg constructorArgs: Any): TypeVariable(T) defined in org.gradle.kotlin.dsl public inline fun TaskContainer.create(name: String, type: KClass<TypeVariable(T)>, configuration: Action<in TypeVariable(T)>): TypeVariable(T) defined in org.gradle.kotlin.dsl @Incubating public inline fun <S : TypeVariable(T), T : Any> ModelMap<TypeVariable(T)>.create(name: String, type: KClass<TypeVariable(S)>): Unit defined in org.gradle.kotlin.dsl @Incubating public inline fun <S : TypeVariable(T), T : Any> ModelMap<TypeVariable(T)>.create(name: String, type: KClass<TypeVariable(S)>, configAction: Action<in TypeVariable(S)>): Unit defined in org.gradle.kotlin.dsl @Incubating public inline fun BinaryTasksCollection.create(name: String, type: KClass<TypeVariable(T)>, config: Action<in TypeVariable(T)>): Unit defined in org.gradle.kotlin.dsl e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (67, 13): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: public inline fun VcsMapping.from(noinline configureAction: TypeVariable(T).() -> Unit): Unit defined in org.gradle.kotlin.dsl @Incubating public inline fun VcsMapping.from(type: KClass<TypeVariable(T)>, configureAction: Action<in TypeVariable(T)>): Unit defined in org.gradle.kotlin.dsl e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (69, 13): Unresolved reference: artifact e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (70, 13): Unresolved reference: artifact e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (72, 13): Unresolved reference: pom e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (73, 22): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: @InlineOnly public inline operator fun kotlin.text.StringBuilder / = java.lang.StringBuilder /.set(index: Int, value: Char): Unit defined in kotlin.text e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (74, 29): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: @InlineOnly public inline operator fun kotlin.text.StringBuilder / = java.lang.StringBuilder /.set(index: Int, value: Char): Unit defined in kotlin.text e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (75, 17): Unresolved reference: url e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (76, 17): Unresolved reference: licenses e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (77, 21): Unresolved reference: license e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (78, 30): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: @InlineOnly public inline operator fun kotlin.text.StringBuilder / = java.lang.StringBuilder /.set(index: Int, value: Char): Unit defined in kotlin.text e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (79, 25): Unresolved reference: url e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (80, 25): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: public val PluginDependenciesSpec.distribution: PluginDependencySpec defined in org.gradle.kotlin.dsl e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (81, 25): Unresolved reference: comments e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (85, 17): Unresolved reference: developers e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (86, 21): Unresolved reference: developer e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (87, 30): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: @InlineOnly public inline operator fun kotlin.text.StringBuilder / = java.lang.StringBuilder /.set(index: Int, value: Char): Unit defined in kotlin.text e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (88, 25): Unresolved reference: email e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (89, 25): Unresolved reference: roles e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (90, 25): Unresolved reference: url e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (94, 17): Unresolved reference: scm e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (95, 21): Unresolved reference: url e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (96, 21): Unresolved reference: connection e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (97, 21): Unresolved reference: developerConnection e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (175, 1): Expression 'signing' cannot be invoked as a function. The function 'invoke()' is not found e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (175, 1): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: public val PluginDependenciesSpec.signing: PluginDependencySpec defined in org.gradle.kotlin.dsl e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (176, 5): Unresolved reference: sign e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (176, 10): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: public val PluginDependenciesSpec.publishing: PluginDependencySpec defined in org.gradle.kotlin.dsl e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (57, 1): Unresolved reference: jooq e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (75, 17): Unresolved reference: jooqConfiguration e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (76, 21): Unresolved reference: jdbc e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (102, 25): Unresolved reference: driver e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (103, 25): Unresolved reference: url e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (104, 25): Unresolved reference: user e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (105, 25): Unresolved reference: password e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (107, 21): Unresolved reference: generator e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (108, 25): Val cannot be reassigned e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (109, 25): Unresolved reference: database e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (111, 29): Unresolved reference: inputSchema e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (112, 29): Unresolved reference: withIncludeRoutines e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (115, 25): Unresolved reference: strategy e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (117, 25): Unresolved reference: generate e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (118, 29): Unresolved reference: isRelations e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (119, 29): Unresolved reference: isDeprecated e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (120, 29): Unresolved reference: isFluentSetters e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (121, 29): Unresolved reference: isGeneratedAnnotation e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (122, 29): Unresolved reference: isJavaTimeTypes e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (125, 25): Unresolved reference: target e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-gen-jooq.gradle.kts: (126, 29): Unresolved reference: packageName e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-shadow-jar.gradle.kts: (47, 9): Unresolved reference: destinationDirectory e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-shadow-jar.gradle.kts: (48, 9): Unresolved reference: archiveClassifier e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-shadow-jar.gradle.kts: (49, 9): Unresolved reference: archiveVersion

Task :buildSrc:compileKotlin FAILED

FAILURE: Build failed with an exception.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/5.0/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 17s

mikeeastin commented 2 years ago

[root@jszx-test ci]# kotlinc -version info: kotlinc-jvm 1.2.20-eap-11 (JRE 1.8.0_322-b06)

hingbong commented 2 years ago

it looks like the gradle version is too lower, try using the gradle wrapper ./gradlew clean build in ci directory

mikeeastin commented 2 years ago

thanks ,i update the gradle version to 6.7 ,then solve the issue,but i got this error

Task :core:project:biz-project:compileKotlin FAILED e: /data/bk-ci/src/backend/ci/core/project/biz-project/src/main/kotlin/com/tencent/devops/project/dao/ProjectTagDao.kt: (59, 41): Unresolved reference: OTHER_ROUTER_TAGS e: /data/bk-ci/src/backend/ci/core/project/biz-project/src/main/kotlin/com/tencent/devops/project/service/ProjectTagService.kt: (187, 38): Unresolved reference: otherRouterTags e: /data/bk-ci/src/backend/ci/core/project/biz-project/src/main/kotlin/com/tencent/devops/project/service/ProjectTagService.kt: (188, 54): Unresolved reference: otherRouterTags e: /data/bk-ci/src/backend/ci/core/project/biz-project/src/main/kotlin/com/tencent/devops/project/service/ProjectTagService.kt: (194, 46): Overload resolution ambiguity: public inline fun ObjectMapper.readValue(jp: JsonParser): TypeVariable(T) defined in com.fasterxml.jackson.module.kotlin public inline fun ObjectMapper.readValue(src: File): TypeVariable(T) defined in com.fasterxml.jackson.module.kotlin

... ....

Task :core:process:biz-base:compileKotlin FAILED e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildContainerDao.kt: (57, 28): Not enough information to infer type variable T5 e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildContainerDao.kt: (63, 21): Unresolved reference: MATRIX_GROUP_FLAG e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildContainerDao.kt: (64, 21): Unresolved reference: MATRIX_GROUP_ID e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildContainerDao.kt: (68, 21): Unresolved reference: CONTAINER_HASH_ID e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildContainerDao.kt: (111, 30): Unresolved reference: CONTAINER_HASH_ID e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildContainerDao.kt: (112, 30): Unresolved reference: MATRIX_GROUP_FLAG e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildContainerDao.kt: (113, 30): Unresolved reference: MATRIX_GROUP_ID e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildContainerDao.kt: (142, 30): Unresolved reference: MATRIX_GROUP_ID e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildContainerDao.kt: (142, 50): Unresolved reference: matrixGroupId e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildContainerDao.kt: (145, 30): Unresolved reference: CONTAINER_HASH_ID e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildContainerDao.kt: (145, 52): Unresolved reference: containerHashId e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildContainerDao.kt: (247, 35): Unresolved reference: MATRIX_GROUP_ID e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildContainerDao.kt: (263, 22): Unresolved reference: MATRIX_GROUP_ID e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildContainerDao.kt: (279, 22): Unresolved reference: MATRIX_GROUP_ID e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildContainerDao.kt: (299, 22): Unresolved reference: MATRIX_GROUP_ID e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildContainerDao.kt: (333, 35): Unresolved reference: containerHashId e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildContainerDao.kt: (334, 35): Unresolved reference: matrixGroupFlag e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildContainerDao.kt: (335, 33): Unresolved reference: matrixGroupId e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildTaskDao.kt: (61, 28): Not enough information to infer type variable T10 e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildTaskDao.kt: (72, 21): Unresolved reference: STEP_ID e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildTaskDao.kt: (128, 26): Unresolved reference: STEP_ID e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildTaskDao.kt: (180, 30): Unresolved reference: STEP_ID e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildTaskDao.kt: (180, 42): Unresolved reference: stepId e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildTaskDao.kt: (291, 26): Unresolved reference: stepId

Task :core:store:biz-store:compileKotlin FAILED e: /data/bk-ci/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/dao/atom/MarketAtomDao.kt: (496, 17): Unresolved reference: BRANCH e: /data/bk-ci/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/dao/atom/MarketAtomDao.kt: (530, 54): Unresolved reference: branch e: /data/bk-ci/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/service/atom/impl/AtomReleaseServiceImpl.kt: (975, 37): Unresolved reference: branch e: /data/bk-ci/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/service/atom/impl/OpAtomServiceImpl.kt: (280, 35): Unresolved reference: branch

FAILURE: Build completed with 3 failures.

1: Task failed with an exception.

2: Task failed with an exception.

3: Task failed with an exception.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 1m 26s 770 actionable tasks: 570 executed, 173 from cache, 27 up-to-date

mikeeastin commented 2 years ago

it seems i lost some config , i find this property "OTHER_ROUTER_TAGS" in ProjectTagDao.kt fun updateExtSystemProjectTags( dslContext: DSLContext, routerTag: String, projectCode: String ) { with(Tables.T_PROJECT) { dslContext.update(this).set(OTHER_ROUTER_TAGS, routerTag) .where(ENGLISH_NAME.eq(projectCode)).execute() } }

mikeeastin commented 2 years ago

it seems i lost some config , i find this property "OTHER_ROUTER_TAGS" in ProjectTagDao.kt fun updateExtSystemProjectTags( dslContext: DSLContext, routerTag: String, projectCode: String ) { with(Tables.T_PROJECT) { dslContext.update(this).set(OTHER_ROUTER_TAGS, routerTag) .where(ENGLISH_NAME.eq(projectCode)).execute() } }

mikeeastin commented 2 years ago

although got up error log ,but release dic list springboot .jar , i dont know is it success

Task :core:process:biz-base:compileKotlin FAILED

Task :core:store:biz-store:compileKotlin FAILED e: /data/bk-ci/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/dao/atom/MarketAtomDao.kt: (496, 17): Unresolved reference: BRANCH e: /data/bk-ci/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/dao/atom/MarketAtomDao.kt: (530, 54): Unresolved reference: branch e: /data/bk-ci/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/service/atom/impl/AtomReleaseServiceImpl.kt: (975, 37): Unresolved reference: branch e: /data/bk-ci/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/service/atom/impl/OpAtomServiceImpl.kt: (280, 35): Unresolved reference: branch

FAILURE: Build completed with 3 failures.

1: Task failed with an exception.

2: Task failed with an exception.

3: Task failed with an exception.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 1m 26s 738 actionable tasks: 548 executed, 160 from cache, 30 up-to-date [root@jszx-test ci]# ls boot-assembly build build.gradle.kts buildSrc core gradle gradle.properties gradle.properties-bak gradlew gradlew.bat README.md release settings.gradle.kts [root@jszx-test ci]# cd release/ [root@jszx-test release]# ls boot-artifactory.jar boot-buildless.jar boot-dispatch.jar boot-environment.jar boot-log.jar boot-monitoring.jar boot-openapi.jar boot-repository.jar boot-auth.jar boot-dispatch-docker.jar boot-dockerhost.jar boot-image.jar boot-misc.jar boot-notify.jar boot-quality.jar boot-ticket.jar [root@jszx-test release]#

mikeeastin commented 2 years ago

[root@jszx-test boot-artifactory]# java -jar boot-artifactory.jar 2022-02-15 10:28:29.007|||EnableEncryptablePropertiesBeanFactoryPostProcessor.java|39|INFO||||||[main] Post-processing PropertySource instances 2022-02-15 10:28:29.132|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource configurationProperties [org.springframework.boot.context.properties.source.ConfigurationPropertySourcesPropertySource] to AOP Proxy 2022-02-15 10:28:29.133|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource bootstrap [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper 2022-02-15 10:28:29.134|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource systemProperties [org.springframework.core.env.PropertiesPropertySource] to EncryptableMapPropertySourceWrapper 2022-02-15 10:28:29.134|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource systemEnvironment [org.springframework.boot.env.SystemEnvironmentPropertySourceEnvironmentPostProcessor$OriginAwareSystemEnvironmentPropertySource] to EncryptableSystemEnvironmentPropertySourceWrapper 2022-02-15 10:28:29.135|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource random [org.springframework.boot.env.RandomValuePropertySource] to EncryptablePropertySourceWrapper 2022-02-15 10:28:29.135|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource cachedrandom [org.springframework.cloud.util.random.CachedRandomPropertySource] to EncryptablePropertySourceWrapper 2022-02-15 10:28:29.135|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource springCloudClientHostInfo [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper 2022-02-15 10:28:29.359|||PostProcessorRegistrationDelegate.java|376|INFO||||||[main] Bean 'org.springframework.retry.annotation.RetryConfiguration' of type [org.springframework.retry.annotation.RetryConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2022-02-15 10:28:29.413|||DefaultLazyPropertyFilter.java|31|INFO||||||[main] Property Filter custom Bean not found with name 'encryptablePropertyFilter'. Initializing Default Property Filter 2022-02-15 10:28:31.265 ERROR 17231 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :


APPLICATION FAILED TO START


Description:

A component required a bean named 'configServerRetryInterceptor' that could not be found.

Action:

Consider defining a bean named 'configServerRetryInterceptor' in your configuration.

[root@jszx-test boot-artifactory]# [root@jszx-test boot-artifactory]#

irwinsun commented 2 years ago

you need import support-files/sql/*.sql into the mysql before execute gradle build

because we use the "JOOQ ORM framework" , POJO was generate by mysql db and table schema

mikeeastin commented 2 years ago

严重: Error in file: /data/bk-ci/src/backend/ci/core/environment/model-environment/build/tmp/generateGenenrateJooq/config.xml. Error : The server time zone value '�й���׼ʱ��' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the 'serverTimezone' configuration property) to use a more specific time zone value if you want to utilize time zone support. java.sql.SQLException: The server time zone value '�й���׼ʱ��' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the 'serverTimezone' configuration property) to use a more specific time zone value if you want to utilize time zone support. at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129) at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97) at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:89) at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:63) at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:73) at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:76) at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:836) at com.mysql.cj.jdbc.ConnectionImpl.(ConnectionImpl.java:456) at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:246) at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:198) at org.jooq.codegen.GenerationTool.run0(GenerationTool.java:359) at org.jooq.codegen.GenerationTool.run(GenerationTool.java:233) at org.jooq.codegen.GenerationTool.generate(GenerationTool.java:228) at org.jooq.codegen.GenerationTool.main(GenerationTool.java:200) Caused by: com.mysql.cj.exceptions.InvalidConnectionAttributeException: The server time zone value '�й���׼ʱ��' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the 'serverTimezone' configuration property) to use a more specific time zone value if you want to utilize time zone support. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:61) at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:85) at com.mysql.cj.util.TimeUtil.getCanonicalTimezone(TimeUtil.java:134) at com.mysql.cj.protocol.a.NativeProtocol.configureTimezone(NativeProtocol.java:2186) at com.mysql.cj.protocol.a.NativeProtocol.initServerSession(NativeProtocol.java:2209) at com.mysql.cj.jdbc.ConnectionImpl.initializePropsFromServer(ConnectionImpl.java:1318) at com.mysql.cj.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:967) at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:826) ... 7 more

mikeeastin commented 2 years ago

how to config "serverTimezone"

mikeeastin commented 2 years ago

edit file gradle.properties ? add serverTimezone property ?

mikeeastin commented 2 years ago

it seems solve this error , by find the plugin file task-gen-jooq.gradle.kts , edit code "url = "jdbc:mysql://$mysqlURL/$databaseName?useSSL=false"" and ,replace to url = "jdbc:mysql://$mysqlURL/$databaseName?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC"

mikeeastin commented 2 years ago

alfter build success , i found 25 jar in release dic, should i run all 25 spring jar ?

Task :core:process:biz-process-sample:compileKotlin w: /data/bk-ci/src/backend/ci/core/process/biz-process-sample/src/main/kotlin/com/tencent/devops/process/permission/service/impl/V3PipelinePermissionService.kt: (169, 90): Unnecessary non-null assertion (!!) on a non-null receiver of type String

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 7m 16s 919 actionable tasks: 764 executed, 16 from cache, 139 up-to-date [root@jszx-test ci]# ls boot-assembly build build.gradle.kts buildSrc core gradle gradle.properties gradle.properties-bak gradlew gradlew.bat README.md release settings.gradle.kts [root@jszx-test ci]# cd release/ [root@jszx-test release]# ls boot-artifactory.jar boot-buildless.jar boot-dockerhost.jar boot-image.jar boot-monitoring.jar boot-plugin.jar boot-quality.jar boot-store.jar worker-agent.jar boot-assembly.jar boot-dispatch-docker.jar boot-engine.jar boot-log.jar boot-notify.jar boot-process.jar boot-repository.jar boot-ticket.jar boot-auth.jar boot-dispatch.jar boot-environment.jar boot-misc.jar boot-openapi.jar boot-project.jar boot-sign.jar boot-websocket.jar

mikeeastin commented 2 years ago

i edit /data/bkee/ci/gateway/lua/init.lua add service_name = "bk-ci", then run "java -jar boot-assembly.jar " fail

[root@jszx-test gateway]# cd /data/bk-ci/src/backend/ci/release/ [root@jszx-test release]# java -jar boot-assembly.jar 2022-02-15 14:52:23.264|||EnableEncryptablePropertiesBeanFactoryPostProcessor.java|39|INFO||||||[main] Post-processing PropertySource instances 2022-02-15 14:52:23.382|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource configurationProperties [org.springframework.boot.context.properties.source.ConfigurationPropertySourcesPropertySource] to AOP Proxy 2022-02-15 14:52:23.383|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource bootstrap [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper 2022-02-15 14:52:23.383|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource systemProperties [org.springframework.core.env.PropertiesPropertySource] to EncryptableMapPropertySourceWrapper 2022-02-15 14:52:23.383|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource systemEnvironment [org.springframework.boot.env.SystemEnvironmentPropertySourceEnvironmentPostProcessor$OriginAwareSystemEnvironmentPropertySource] to EncryptableSystemEnvironmentPropertySourceWrapper 2022-02-15 14:52:23.384|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource random [org.springframework.boot.env.RandomValuePropertySource] to EncryptablePropertySourceWrapper 2022-02-15 14:52:23.384|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource cachedrandom [org.springframework.cloud.util.random.CachedRandomPropertySource] to EncryptablePropertySourceWrapper 2022-02-15 14:52:23.384|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource springCloudClientHostInfo [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper 2022-02-15 14:52:23.599|||PostProcessorRegistrationDelegate.java|376|INFO||||||[main] Bean 'org.springframework.retry.annotation.RetryConfiguration' of type [org.springframework.retry.annotation.RetryConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2022-02-15 14:52:23.659|||DefaultLazyPropertyFilter.java|31|INFO||||||[main] Property Filter custom Bean not found with name 'encryptablePropertyFilter'. Initializing Default Property Filter 2022-02-15 14:52:25.528 INFO 8356 --- [ main] b.c.PropertySourceBootstrapConfiguration : Located property source: [BootstrapPropertySource {name='bootstrapProperties-config/application/'}] 2022-02-15 14:52:25.649 ERROR 8356 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :


APPLICATION FAILED TO START


Description:

A component required a bean named 'configServerRetryInterceptor' that could not be found.

Action:

Consider defining a bean named 'configServerRetryInterceptor' in your configuration.

mikeeastin commented 2 years ago

image

mikeeastin commented 2 years ago

i add -Dspring.cloud.config.fail-fast=true not work
java -jar boot-assembly.jar -Dspring.cloud.config.fail-fast=true

[root@jszx-test release]# java -jar boot-assembly.jar -Dspring.cloud.config.fail-fast=true 2022-02-15 15:23:52.137|||EnableEncryptablePropertiesBeanFactoryPostProcessor.java|39|INFO||||||[main] Post-processing PropertySource instances 2022-02-15 15:23:52.260|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource configurationProperties [org.springframework.boot.context.properties.source.ConfigurationPropertySourcesPropertySource] to AOP Proxy 2022-02-15 15:23:52.261|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource bootstrap [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper 2022-02-15 15:23:52.262|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource commandLineArgs [org.springframework.core.env.SimpleCommandLinePropertySource] to EncryptableEnumerablePropertySourceWrapper 2022-02-15 15:23:52.262|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource systemProperties [org.springframework.core.env.PropertiesPropertySource] to EncryptableMapPropertySourceWrapper 2022-02-15 15:23:52.262|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource systemEnvironment [org.springframework.boot.env.SystemEnvironmentPropertySourceEnvironmentPostProcessor$OriginAwareSystemEnvironmentPropertySource] to EncryptableSystemEnvironmentPropertySourceWrapper 2022-02-15 15:23:52.263|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource random [org.springframework.boot.env.RandomValuePropertySource] to EncryptablePropertySourceWrapper 2022-02-15 15:23:52.263|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource cachedrandom [org.springframework.cloud.util.random.CachedRandomPropertySource] to EncryptablePropertySourceWrapper 2022-02-15 15:23:52.263|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource springCloudClientHostInfo [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper 2022-02-15 15:23:52.518|||PostProcessorRegistrationDelegate.java|376|INFO||||||[main] Bean 'org.springframework.retry.annotation.RetryConfiguration' of type [org.springframework.retry.annotation.RetryConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2022-02-15 15:23:52.583|||DefaultLazyPropertyFilter.java|31|INFO||||||[main] Property Filter custom Bean not found with name 'encryptablePropertyFilter'. Initializing Default Property Filter 2022-02-15 15:23:54.952 INFO 4584 --- [ main] b.c.PropertySourceBootstrapConfiguration : Located property source: [BootstrapPropertySource {name='bootstrapProperties-config/application/'}] 2022-02-15 15:23:55.060 ERROR 4584 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :


APPLICATION FAILED TO START


Description:

A component required a bean named 'configServerRetryInterceptor' that could not be found.

Action:

Consider defining a bean named 'configServerRetryInterceptor' in your configuration.

irwinsun commented 2 years ago

it seems solve this error , by find the plugin file task-gen-jooq.gradle.kts , edit code "url = "jdbc:mysql://$mysqlURL/$databaseName?useSSL=false"" and ,replace to url = "jdbc:mysql://$mysqlURL/$databaseName?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC"

we never need setup serverTimezone, we build JOOQ in mysql 5.7

It's there any special config in your mysql server ? your mysql server version?

mikeeastin commented 2 years ago

my mysql version is 5.7