如何使用Gradle安装Aspose.Words for Java:

huangapple go评论91阅读模式
英文:

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/' }

请参阅
https://repository.aspose.com/webapp/#/artifacts/browse/tree/General/repo/com/aspose/aspose-words/20.5

英文:

You should specify Aspose.Words repository

 maven { url 'http://repository.aspose.com/repo/' }

Please see
https://repository.aspose.com/webapp/#/artifacts/browse/tree/General/repo/com/aspose/aspose-words/20.5

huangapple
  • 本文由 发表于 2020年5月19日 19:41:30
  • 转载请务必保留本文链接:https://go.coder-hub.com/61890174.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定