-
Notifications
You must be signed in to change notification settings - Fork 3k
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
feat(upgradePlay): upgrade play dependencies #4820
Changes from all commits
cdf5cfa
5ad56f4
4f2ff36
9d69ee9
a257601
14a4532
10d5b47
c8cef5d
bf12155
62b1dd1
2efff1c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ public class TrackingController extends Controller { | |
private final Logger _logger = LoggerFactory.getLogger(TrackingController.class.getName()); | ||
|
||
private static final List<String> KAFKA_SSL_PROTOCOLS = Collections.unmodifiableList( | ||
Arrays.asList(SecurityProtocol.SSL.name(),SecurityProtocol.SASL_SSL.name(), | ||
Arrays.asList(SecurityProtocol.SSL.name(), SecurityProtocol.SASL_SSL.name(), | ||
SecurityProtocol.SASL_PLAINTEXT.name())); | ||
|
||
private final Boolean _isEnabled; | ||
|
@@ -81,7 +81,7 @@ public Result track() throws Exception { | |
_producer.send(record); | ||
_producer.flush(); | ||
return ok(); | ||
} catch(Exception e) { | ||
} catch (Exception e) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yay for checkstyle |
||
_logger.error(String.format("Failed to emit product analytics event. actor: %s, event: %s", actor, event)); | ||
return internalServerError(e.getMessage()); | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,4 +46,21 @@ graphqlCodegen { | |
|
||
tasks.withType(Checkstyle) { | ||
exclude "**/generated/**" | ||
} | ||
|
||
checkstyleMain.source = "app/" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yayyyyyy |
||
|
||
|
||
/* | ||
PLAY UPGRADE NOTE | ||
Generates the distribution jars under the expected names. The playFramework plugin only accepts certain name values | ||
for the resulting folders and files, so some changes were made to accommodate. Default distribution is main if these are excluded | ||
*/ | ||
distributions { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you mind leaving a comment just discussing what this block achieves? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is basically a replacement of the distributions block in the play.gradle which no longer works with the new plugin, but yeah I can comment what it's doing: https://docs.gradle.org/current/userguide/distribution_plugin.html#sec:distribution_contents |
||
create("datahub-frontend") { | ||
distributionBaseName = project.ext.playBinaryBaseName | ||
} | ||
playBinary { | ||
distributionBaseName = project.ext.playBinaryBaseName | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice :')
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, checkStyle apparently wasn't running on any of these files before and it started to after changing out the plugin 😆