Skip to content

Commit

Permalink
Merge pull request #21 from Adyen/fix-serializer-file-cp
Browse files Browse the repository at this point in the history
Fix copying of the JSON.java file for java library
  • Loading branch information
DjoykeAbyah authored May 7, 2024
2 parents c9f7b69 + 072b0bb commit ac1c0db
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,15 @@ services.each { Service svc ->
}

// serializer
def servicePath = "src/main/java/com/adyen/service"
def serviceSource = "services/$svc.id/${servicePath}"
from(layout.buildDirectory.file("${serviceSource}/JSON.java")) {
def serializerPath = "src/main/java/com/adyen"
def serializerSource = "services/$svc.id/${serializerPath}"
from(layout.buildDirectory.file("${serializerSource}/JSON.java")) {
into "${modelsPath}/${svc.id}"
}

// service
def servicePath = "src/main/java/com/adyen/service"
def serviceSource = "services/$svc.id/${servicePath}"
from(layout.buildDirectory.dir("${serviceSource}/$svc.id")) {
include "*.java"
into "${servicePath}/${svc.id}"
Expand Down

0 comments on commit ac1c0db

Please sign in to comment.