Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upAnnotate localizer generated Messages classes with NoExternalUse #2656
Conversation
Also update to localizer 1.24 which adds support for this.
|
|
|
Wouldn't this enforce people to copy-paste information? |
|
@KostyaSha Depends. I don't expect there to be a lot of reuse of strings, and past experience points to plugins breaking because nobody really considers |
|
Yes it makes sense. What about help files? i'm using them i.e. for slave description. |
|
@KostyaSha I wouldn't rely too much on those either, at least unless they're based on public non-Restricted databound fields with the default naming convention. In that case, I'd say you're pretty safe from changes. And FWIW the worst that happens there is that the Jenkins UI displays an error. With Messages (and implicit web methods), it's runtime exceptions and brokenness. |
|
let's try it could be reverted any time |
Remove jenkins.version 1.642.3 to use implicit version 2.138.4 corrections due to changes in jenkins core: jenkinsci/jenkins#2656 jenkinsci/jenkins#3106
daniel-beck commentedDec 6, 2016
•
edited
Also update to localizer 1.24 which adds support for this.
Using another component's
Messagesis brittle and always risky, so let's make sure anyone with a recent enough core dependency and using the access-modifier-checker gets an error during build.This will not break plugins at runtime, just make sure they don't reuse core
Messagesduring build. In time, reuse should fade as core dependencies get updated.