Open
Conversation
Contributor
|
对此一窍不通,让我来实在不合适 |
SeraphJACK
requested changes
Apr 24, 2020
| dependencies { | ||
| // Efficient Java Matrix Library (EJML) 是个专门解决线性代数相关问题的库。 | ||
| // 网站:http://ejml.org/ | ||
| compile 'org.ejml:all:0.30' |
Contributor
There was a problem hiding this comment.
在?为什么我 idea 里运行没问题,打包成 jar 传服务器启动就会报 NoClassDefFound ?有没有大佬知道怎么解决?
Member
Author
There was a problem hiding this comment.
32 章 -> 构建与发布 -> Shadow/Shade。
Contributor
There was a problem hiding this comment.
还没写,而且建议这里加个 referer 过去(
Yesterday17
requested changes
Apr 24, 2020
|
|
||
| ## 引入新的依赖项目 | ||
|
|
||
| [和普通的基于 Gradle 的 Java 项目完全一致][ref-1]。就像这样: |
Contributor
There was a problem hiding this comment.
和基于 Gradle 的普通 Java 项目完全一致
|
|
||
| ```groovy | ||
| repositories { | ||
| // 我们在这里声明阿里云的 maven 镜像站。 |
|
|
||
| Gradle 的存在让我们可以直接一行 `gradle build` 命令就能搞定编译(甚至是发布)而不用头疼别的什么。 | ||
|
|
||
| 而这一章附录则收录一些在使用 Gradle 甚至是 ForgeGradle 时会遇到的常见需求解决方案。 |
Contributor
There was a problem hiding this comment.
语境下没有 "甚至" 的递进关系,改为 "或是" 或许更恰当。
|
|
||
| ForgeGradle 是 Forge 开发团队推出的 Gradle 插件,主要用途就是简化基于 MCP+Forge 的 Minecraft Mod 开发的流程。 | ||
|
|
||
| 如果你还不知道 Gradle 是什么,[可以考虑先读一下这个](../chapter-32/index.md)。 |
Contributor
There was a problem hiding this comment.
可以考虑先读一下[这个](../chapter-32/index.md)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Synopsis / 简介
Close #17.
Description / 详细说明
收集一堆 Mod 开发时常用的 Gradle 脚本片段。
Justification / 理由
「Harbinger 写了吗?」—— @exzhawk
实际上新人遇到的 Gradle 问题真的不少。特此开一章整理。顺手 Close #17。
大部分内容可以无缝迁移到 Sputnik。
Remarks / 备注