-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set export REWRITE_OFFLINE=true to disable fetching external projects
Obviously, you need to have a previous build complete so that you have all pieces around. Also you might miss the latest adjustments to OpenRewrite so make sure you do a full build from time to time.
- Loading branch information
Showing
2 changed files
with
40 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,36 +13,38 @@ if [ ! -f dco.txt ]; then | |
exit 1 | ||
fi | ||
|
||
# Prepare OpenRewrite - we temporarily build a local version as we need a patch | ||
rm -rf target/rewrite | ||
git clone [email protected]:gsmet/rewrite.git target/rewrite | ||
pushd target/rewrite | ||
git checkout jakarta | ||
./gradlew -x test -x javadoc publishToMavenLocal | ||
popd | ||
|
||
rm -rf target/rewrite-maven-plugin | ||
git clone [email protected]:gsmet/rewrite-maven-plugin.git target/rewrite-maven-plugin | ||
pushd target/rewrite-maven-plugin | ||
git checkout jakarta | ||
./mvnw clean install -DskipTests -DskipITs | ||
popd | ||
|
||
# Build SmallRye Config (temporary) | ||
rm -rf target/smallrye-config | ||
git clone [email protected]:smallrye/smallrye-config.git target/smallrye-config | ||
pushd target/smallrye-config | ||
git checkout jakarta | ||
mvn clean install -DskipTests -DskipITs | ||
popd | ||
|
||
# Build Kotlin Maven Plugin to allow skipping main compilation | ||
# (skipping test compilation is supported but not main) | ||
rm -rf target/kotlin | ||
git clone -b v1.6.10-jakarta --depth 1 [email protected]:gsmet/kotlin.git target/kotlin | ||
pushd target/kotlin/libraries/tools/kotlin-maven-plugin | ||
mvn clean install -DskipTests -DskipITs | ||
popd | ||
if [ "${REWRITE_OFFLINE-false}" != "true" ]; then | ||
# Prepare OpenRewrite - we temporarily build a local version as we need a patch | ||
rm -rf target/rewrite | ||
git clone [email protected]:gsmet/rewrite.git target/rewrite | ||
pushd target/rewrite | ||
git checkout jakarta | ||
./gradlew -x test -x javadoc publishToMavenLocal | ||
popd | ||
|
||
rm -rf target/rewrite-maven-plugin | ||
git clone [email protected]:gsmet/rewrite-maven-plugin.git target/rewrite-maven-plugin | ||
pushd target/rewrite-maven-plugin | ||
git checkout jakarta | ||
./mvnw clean install -DskipTests -DskipITs | ||
popd | ||
|
||
# Build SmallRye Config (temporary) | ||
rm -rf target/smallrye-config | ||
git clone [email protected]:smallrye/smallrye-config.git target/smallrye-config | ||
pushd target/smallrye-config | ||
git checkout jakarta | ||
mvn clean install -DskipTests -DskipITs | ||
popd | ||
|
||
# Build Kotlin Maven Plugin to allow skipping main compilation | ||
# (skipping test compilation is supported but not main) | ||
rm -rf target/kotlin | ||
git clone -b v1.6.10-jakarta --depth 1 [email protected]:gsmet/kotlin.git target/kotlin | ||
pushd target/kotlin/libraries/tools/kotlin-maven-plugin | ||
mvn clean install -DskipTests -DskipITs | ||
popd | ||
fi | ||
|
||
# Set up jbang alias, we are using latest released transformer version | ||
jbang alias add --name transform org.eclipse.transformer:org.eclipse.transformer.cli:0.2.0 | ||
|