Skip to content

Commit

Permalink
Merge pull request #641 from symphony-youri/bdk-group-extension-javadoc
Browse files Browse the repository at this point in the history
Generate javadoc for group extension
  • Loading branch information
symphony-youri authored Mar 16, 2022
2 parents 76ec110 + 4f02c8c commit 1a7790a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
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

0 comments on commit 1a7790a

Please sign in to comment.