[英]gitlab-ci multi java version
I have an question about gitlab-ci, my java project should support different java version because these is necessary and i struggle to setup gitlab-ci correctly.我有一个关于 gitlab-ci 的问题,我的 java 项目应该支持不同的 java 版本,因为这些是必要的,我很难正确设置 gitlab-ci。 My gradle builder works on my personal computer but on gitlab or jitpack it did even fail the job.
我的 gradle builder 在我的个人计算机上工作,但在 gitlab 或 jitpack 上它甚至失败了。 My Project have these structure
我的项目有这些结构
Protectionlib (ProjectName):
Core (Java8):
gradle.build
LocalLibary (Java8):
gradle.build
PlotSquaredv3 (Java8):
gradle.build
PlotSquaredv4 (Java8):
gradle.build
PlotSquaredv6 (Java17):
gradle.build
There is my gitlab repo i try to build: https://gitlab.com/Ste3et_C0st/protectionlib/-/tree/master on my computer the job is builded successful, i have defined the used java version in the gradle.build over sourceCompatibility & targetCompatibility.我尝试构建我的 gitlab 存储库: https ://gitlab.com/Ste3et_C0st/protectionlib/-/tree/master 在我的计算机上工作已成功构建,我已在 gradle.build over sourceCompatibility 中定义了使用的 java 版本& 目标兼容性。
I hope someone can help me about that problem.我希望有人可以帮助我解决这个问题。
in your .gitlab-ci.yml
the line export GRADLE_USER_HOME=pwd/.gradle
is not correct, you can just remove the line.在您的
.gitlab-ci.yml
行export GRADLE_USER_HOME=pwd/.gradle
不正确,您可以删除该行。
see https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_environment_variables见https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_environment_variables
that line is mixing system-home with local gradle project cache该行将 system-home 与本地 gradle 项目缓存混合在一起
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.