1.1.0编译报错
环境:
- centos7;
- gradle 4.6;
报错信息:
Task :core/common:compileJava
Task ':core/common:compileJava' is not up-to-date because:
No history is available.
All input files are considered out-of-date for incremental task ':core/common:compileJava'.
Compiling with JDK Java compiler API.
/home/tzp/Qualitis-release-1.1.0/core/common/src/main/java/com/webank/wedatasphere/qualitis/constants/QualitisConstants.java:3: 错误: 程序包com.webank.wedatasphere.qualitis.constant不存在
import com.webank.wedatasphere.qualitis.constant.SpecCharEnum;
^
1 个错误
:core/common:compileJava (Thread[Task worker for ':' Thread 12,5,main]) completed. Took 1 mins 19.964 secs.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':core/common:compileJava'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
See https://docs.gradle.org/4.6/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 1m 48s
31 actionable tasks: 5 executed, 26 up-to-date
VCS Checkout Cache (/home/tzp/Qualitis-release-1.1.0/.gradle/vcsWorkingDirs) has not been cleaned up in 0 days
是要升级gradle版本吗?
1.1.0编译是同样的错误: Starting a Gradle Daemon (subsequent builds will be faster)
Task :core/alarm:compileJava 注: /home/hadoop/Qualitis-release-1.1.0/core/alarm/src/main/java/com/webank/wedatasphere/qualitis/client/impl/ImsAlarmClient.java使用了未经检查或不安全的操作。 注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
Task :core/common:compileJava FAILED /home/hadoop/Qualitis-release-1.1.0/core/common/src/main/java/com/webank/wedatasphere/qualitis/constants/QualitisConstants.java:3: 错误: 程序包com.webank.wedatasphere.qualitis.constant不存在 import com.webank.wedatasphere.qualitis.constant.SpecCharEnum; ^ 1 个错误
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':core/common:compileJava'.
Compilation failed; see the compiler error output for details.
-
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
-
Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. See https://docs.gradle.org/4.6/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 57s 31 actionable tasks: 5 executed, 26 up-to-date
这个问题在profile.gradle 中下面增加:compile project(':util')
project(':core/common') { archivesBaseName = 'core_common'
dependencies{ compile libs.springBootStarterJersey compile libs.commonsLang compile libs.jgit compile project(':util')
如果编译报错找不到ScheduledOperateHistory,RuleUdfDao等,从1.2.0上拷贝过来即可。