build-maven: Handle very long dependency lists
This commit is contained in:
parent
3862fd57fe
commit
03dbba9757
@ -13,7 +13,7 @@
|
|||||||
infoFile: let
|
infoFile: let
|
||||||
info = builtins.fromJSON (builtins.readFile infoFile);
|
info = builtins.fromJSON (builtins.readFile infoFile);
|
||||||
|
|
||||||
repo = runCommand "maven-repository" {} ''
|
script = writeText "build-maven-repository.sh" ''
|
||||||
${lib.concatStrings (map (dep: let
|
${lib.concatStrings (map (dep: let
|
||||||
inherit (dep) url sha1 groupId artifactId version;
|
inherit (dep) url sha1 groupId artifactId version;
|
||||||
|
|
||||||
@ -25,6 +25,10 @@ infoFile: let
|
|||||||
'') info.dependencies)}
|
'') info.dependencies)}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
repo = runCommand "maven-repository" {} ''
|
||||||
|
bash ${script}
|
||||||
|
'';
|
||||||
|
|
||||||
settings = writeText "settings.xml" ''
|
settings = writeText "settings.xml" ''
|
||||||
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
|
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user