@@ -175,10 +175,7 @@ static final class ParamMappingsOptions {
175175 private @ Nullable UnpickOptions unpick ;
176176
177177 static final class UnpickOptions {
178- @ CommandLine .ArgGroup (
179- heading =
180- "%n%nUnpick requires unpick definitions. When specifying unpick definitions, unpick constants are also required.%n" ,
181- multiplicity = "1" )
178+ @ CommandLine .ArgGroup (heading = "%n%nUnpick requires unpick definitions.%n" , multiplicity = "1" )
182179 private @ Nullable UnpickDefinitionsOptions unpickDefinitions ;
183180
184181 static final class UnpickDefinitionsOptions {
@@ -200,32 +197,6 @@ static final class UnpickDefinitionsOptions {
200197 description = "A download URL for the unpick definitions to use for the unpick process." )
201198 private @ Nullable URI unpickUri ;
202199 }
203-
204- @ CommandLine .ArgGroup (
205- heading =
206- "%n%nUnpick requires a constants jar. When specifying unpick constants, unpick definitions are also required.%n" ,
207- multiplicity = "1" )
208- private @ Nullable ConstantsJarOptions constantsJar ;
209-
210- static final class ConstantsJarOptions {
211- @ CommandLine .Option (
212- names = "--constants-coords" ,
213- paramLabel = "<constants-coords>" ,
214- description = "The Maven coordinates for the constants jar to use for the unpick process." )
215- private @ Nullable String constantsCoords ;
216-
217- @ CommandLine .Option (
218- names = {"--constants-file" },
219- paramLabel = "<constants-jar-file>" ,
220- description = "The constants jar to use for the unpick process." )
221- private @ Nullable Path constantsFile ;
222-
223- @ CommandLine .Option (
224- names = "--constants-uri" ,
225- paramLabel = "<constants-uri>" ,
226- description = "A download URL for the constants jar to use for the unpick process." )
227- private @ Nullable URI constantsUri ;
228- }
229200 }
230201
231202 @ CommandLine .Option (
@@ -440,7 +411,7 @@ private CodeBookContext createContext() {
440411 p -> new Coords (p .paramsCoords , null , "zip" , this .paramsMavenBaseUrl ));
441412
442413 final @ Nullable CodeBookResource unpickDefinitions = this .getResource (
443- "unpick_definitions.jar " ,
414+ "definitions.unpick " ,
444415 this .unpick != null ? this .unpick .unpickDefinitions : null ,
445416 d -> d .unpickFile ,
446417 d -> d .unpickUri ,
@@ -452,19 +423,6 @@ private CodeBookContext createContext() {
452423 return new Coords (d .unpickCoords , "constants" , null , this .unpickMavenBaseUrl );
453424 });
454425
455- final @ Nullable CodeBookResource constantJar = this .getResource (
456- "unpick_constants.jar" ,
457- this .unpick != null ? this .unpick .constantsJar : null ,
458- c -> c .constantsFile ,
459- c -> c .constantsUri ,
460- c -> {
461- if (this .unpickMavenBaseUrl == null ) {
462- throw new UserErrorException (
463- "Cannot define unpick constants Maven coordinates without also setting --unpick-maven-base-url" );
464- }
465- return new Coords (c .constantsCoords , "constants" , null , this .unpickMavenBaseUrl );
466- });
467-
468426 @ Nullable Reports reports = null ;
469427 if (this .reports != null && this .reports .reportsDir != null ) {
470428 final Set <ReportType > reportsToGenerate ;
@@ -488,7 +446,6 @@ private CodeBookContext createContext() {
488446 .mappings (mappings )
489447 .paramMappings (paramMappings )
490448 .unpickDefinitions (unpickDefinitions )
491- .constantsJar (constantJar )
492449 .outputJar (this .outputJar )
493450 .overwrite (this .forceWrite )
494451 .input (input )
0 commit comments