-
-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Build spoon manually so jbang finds an artifact in local repos…
…itory
- Loading branch information
1 parent
f9dd782
commit ddfb82c
Showing
3 changed files
with
20 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -168,6 +168,22 @@ | |
reproducibleBuilds = pkgs.writeScriptBin "reproducible-builds" '' | ||
chore/check-reproducible-builds.sh | ||
''; | ||
ciJavadocQuality = pkgs.writeScriptBin "ci-javadoc-quality" '' | ||
# Help jbang. Build locally and update the version. Otherwise it fails to resolve sometimes. | ||
pushd spoon-pom || exit 1 | ||
mvn clean install -Dmaven.test.skip=true -DskipDepClean &>/dev/null | ||
popd || exit 2 | ||
# Use concrete version | ||
sed -i "s/:RELEASE/:$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)/" chore/CheckJavadoc.java | ||
git add chore/CheckJavadoc.java | ||
git config user.email "[email protected]" | ||
git config user.name "Jbang fixup" | ||
git commit -m "Fixup version" | ||
# Delegate | ||
javadoc-quality | ||
''; | ||
javadocQuality = pkgs.writeScriptBin "javadoc-quality" '' | ||
./chore/check-javadoc-regressions.py COMPARE_WITH_MASTER | ||
''; | ||
|
@@ -180,7 +196,7 @@ | |
]) | ||
else [ ]; | ||
packages = with pkgs; | ||
[ jdk maven test codegen coverage mavenPomQuality javadocQuality reproducibleBuilds ] | ||
[ jdk maven test codegen coverage mavenPomQuality javadocQuality ciJavadocQuality reproducibleBuilds ] | ||
++ (if extraChecks then [ gradle pythonEnv extra extraRemote jbang ] else [ ]) | ||
++ (if release then [ semver jreleaser ] else [ ]); | ||
}; | ||
|