Skip to content

Commit

Permalink
add jakarta implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Fyro-Ing committed Dec 26, 2022
1 parent 0bc7a1e commit 47fa493
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/main/resources/handlebars/scala/client/api.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ import {{invokerPackage}}.{ApiInvoker, ApiException}
import com.sun.jersey.multipart.FormDataMultiPart
import com.sun.jersey.multipart.file.FileDataBodyPart

{{#jakarta}}
import jakarta.ws.rs.core.MediaType
{{/jakarta}}
{{^jakarta}}
import javax.ws.rs.core.MediaType
{{/jakarta}}

import java.io.File
import java.util.Date
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ import com.sun.jersey.multipart.file.FileDataBodyPart
import java.io.File
import java.net.URLEncoder
import java.util.UUID
{{#jakarta}}
import jakarta.ws.rs.core.MediaType
{{/jakarta}}
{{^jakarta}}
import javax.ws.rs.core.MediaType
{{/jakarta}}

import scala.collection.JavaConverters._
import scala.collection.mutable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ if(hasProperty('target') && target == 'android') {
}

dependencies {
provided 'javax.annotation:jsr250-api:1.0'
provided 'jakarta.annotation:jakarta.annotation-api:{{#jakarta}}2.1.1{{/jakarta}}{{^jakarta}}1.3.5{{/jakarta}}'
}
}

Expand Down

0 comments on commit 47fa493

Please sign in to comment.