Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate javadoc for group extension #641

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion symphony-bdk-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ dependencies {
}

// OpenAPI code generation
def apiBaseUrl = "https://raw.githubusercontent.com/symphonyoss/symphony-api-spec/1217b03323c9fb13ea1c72ba89c99f7540b9b5fc"
def apiBaseUrl = "https://raw.githubusercontent.com/finos/symphony-api-spec/1217b03323c9fb13ea1c72ba89c99f7540b9b5fc"
def generatedFolder = "$buildDir/generated/openapi"
def apisToGenerate = [
Agent: 'agent/agent-api-public.yaml',
Expand All @@ -88,6 +88,7 @@ apisToGenerate.each { api, path ->
src "$apiBaseUrl/$path"
dest "$buildDir/openapi/$api/${path.split("/")[1]}"
overwrite false
useETag "all"
}

def generateTask = tasks.create(name: "generate$api",
Expand Down
10 changes: 8 additions & 2 deletions symphony-bdk-extensions/symphony-group-extension/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ plugins {

description = 'Symphony Java BDK - Groups Extension'

javadoc {
options.group 'Extension - Group', 'com.symphony.bdk.ext*'
}

dependencies {
implementation project(':symphony-bdk-core')
implementation project(':symphony-bdk-extension-api')
Expand All @@ -22,7 +26,7 @@ dependencies {
testImplementation 'com.tngtech.archunit:archunit-junit5'
}

def baseSpecsUrl = 'https://raw.githubusercontent.com/finos/symphony-api-spec/master/profile-manager'
def baseSpecsUrl = 'https://raw.githubusercontent.com/finos/symphony-api-spec/af73762a33357436edacca0b198cc18192e96606/profile-manager'

task downloadFile(type: Download) {
src([
Expand All @@ -31,7 +35,7 @@ task downloadFile(type: Download) {
])
dest buildDir
onlyIfModified true
useETag true
useETag "all"
}

openApiGenerate {
Expand All @@ -41,6 +45,8 @@ openApiGenerate {
}

tasks.openApiGenerate.dependsOn tasks.downloadFile
tasks.sourcesJar.dependsOn tasks.downloadFile
tasks.sourcesJar.dependsOn tasks.openApiGenerate

jacocoTestCoverageVerification {
violationRules {
Expand Down