java somewhat harder

This commit is contained in:
jade 2024-03-22 20:09:22 -07:00
parent 87e29f0ce0
commit 015de8232d
3 changed files with 19 additions and 1 deletions

View file

@ -26,6 +26,24 @@
]); ]);
runScript = "zsh"; runScript = "zsh";
}).env; }).env;
packages.default = pkgs.maven.buildMavenPackage {
pname = "keycloak-lists-plugin";
version = "1.0";
src = ./plugin;
mvnHash = "sha256-UaVCt6KIjR8i3vHVp5YWqu8zzM7mftXyrv5J2jxtw6Q=";
buildPhase = ''
mvn --offline package;
'';
installPhase = ''
mkdir -p $out/share/java
install -Dm644 target/*.jar $out/share/java
'';
};
}; };
in in
flake-utils.lib.eachDefaultSystem out // { flake-utils.lib.eachDefaultSystem out // {

View file

@ -103,6 +103,7 @@
</plugin> </plugin>
</plugins> </plugins>
</pluginManagement> </pluginManagement>
<finalName>${project.groupId}-${project.artifactId}</finalName>
</build> </build>
</project> </project>

View file

@ -7,7 +7,6 @@ import java.io.BufferedReader;
import java.io.FileNotFoundException; import java.io.FileNotFoundException;
import java.io.FileReader; import java.io.FileReader;
import java.nio.file.Path; import java.nio.file.Path;
import java.util.List;
import java.util.Set; import java.util.Set;
import java.util.stream.Collectors; import java.util.stream.Collectors;