在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):palantir/gradle-conjure开源软件地址(OpenSource Url):https://github.com/palantir/gradle-conjure开源编程语言(OpenSource Language):Java 64.0%开源软件介绍(OpenSource Introduction):Gradle ConjureGradle Conjure is a build tool which allows defining and generating code for Conjure APIs in Java projects. Overviewgradle-conjure is a set of Gradle plugins which allow you to define and consume Conjure-defined APIs easily.
com.palantir.conjureTo see how to add gradle-conjure to an existing project, please see our getting started guide. Tasks
Extension
The supported closures are:
The following is example usage of the extension. conjure {
typescript {
version = "0.0.0"
}
java {
retrofitCompletableFutures = true
}
} Service dependenciesTo help consumers correlate generated Conjure API artifacts with a real server that implements this API, the This information can be defined using the apply plugin: 'com.palantir.conjure'
serviceDependencies {
serviceDependency {
productGroup = 'com.palantir.group'
productName = 'foo'
minimumVersion = "${project.version}"
maximumVersion = "${project.version.tokenize('.')[0]}.x.x"
recommendedVersion = "${project.version}"
}
} For conjure-typescript, this information is passed as an extra flag, For conjure-java, this information is directly embedded into the Jar for the com.palantir.conjure-publishTo enable publishing of your API definition for external consumption, add the com.palantir.conjure-localTasks
Configurations
Using the dependencies {
conjure 'com.company.product:some-api:1.0.0'
conjure 'com.company.other.product:other-api:1.0.0'
} Using the dependencies {
conjure 'com.company.product:some-api:1.0.0'
conjure 'com.company.other.product:other-api:1.0.0'
+ conjureGenerators 'com.palantir.conjure.postman:conjure-postman:0.1.0'
} For each generator specified referenced by the configuration you must also add a project with the corresponding name include 'conjure-api'
+include 'conjure-api:postman' com.palantir.conjure-java-local
apply plugin: 'com.palantir.conjure-java-local'
conjure {
java {
addFlag 'objects'
addFlag 'strictObjects'
// addFlag 'undertow' as an implementer
// addFlag 'dialogue' as a consumer
}
}
dependencies {
conjure 'com.company.product:[email protected]'
}
subprojects {
dependencies {
// api 'com.palantir.conjure.java:conjure-undertow-lib' as an implementer
// implementation 'com.palantir.dialogue:dialogue-target' as a consumer
}
} ContributingSee the CONTRIBUTING.md document. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论