Skip to content

Commit

Permalink
fix(BuildScript): 修复 JDK8 环境下启动异常的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
hylexus committed Dec 11, 2024
1 parent 5accbe7 commit 2fd2c1a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,14 @@ configure(allprojects) { project ->
group = projectGroup
version = projectVersion
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
tasks.withType(JavaCompile).configureEach {
// options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
options.compilerArgs.addAll([
"-Xlint:unchecked",
"-Xlint:deprecation",
// 保留参数名(否则JDK8环境下可能会启动异常)
"-parameters"
])
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
org.gradle.jvmargs=-Dio.netty.allocator.type=unpooled
projectGroup=io.github.hylexus.jt
projectVersion=2.3.0-rc.2
projectVersion=2.3.0-rc.3
# scm
projectScmUrl=https://github.com/hylexus/jt-framework
projectScmConnection=scm:git:[email protected]:hylexus/jt-framework.git
Expand Down

0 comments on commit 2fd2c1a

Please sign in to comment.