英文:
How to install Aspose.Words for Java using Gradle
问题
我正在使用Springboot创建一个应用程序,该应用程序将合并字段并将doc/docx转换为pdf。然而,在使用Gradle安装Aspose.Words for Java时,我遇到了一个依赖错误。这是我将其添加到我的build.gradle文件中的正确方法吗?
compile('com.aspose:aspose-words:20.5:jdk17')
这是我遇到的错误:
> 无法解析:com.aspose:aspose-words:20.5
英文:
I am creating an application with Springboot that would merge fields and convert doc/docx to pdf. However, I am having an error in dependency when installing Aspose.Words for Java using Gradle. Is this the correct way on how to install it to my project? Here's what I added to my build.gradle file:
compile('com.aspose:aspose-words:20.5:jdk17')
Here's the error I got:
> Could not resolve: com.aspose:aspose-words:20.5
答案1
得分: 2
你应该指定 Aspose.Words 仓库
maven { url 'http://repository.aspose.com/repo/' }
英文:
You should specify Aspose.Words repository
maven { url 'http://repository.aspose.com/repo/' }
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论