1
0
mirror of https://github.com/google/nomulus synced 2026-01-07 14:05:44 +00:00

Refactor to be more in line with a standard Gradle project structure

This commit is contained in:
Gus Brodman
2019-05-21 14:12:47 -04:00
parent 8fa45e8c76
commit a7a983bfed
3141 changed files with 99 additions and 100 deletions

View File

@@ -31,29 +31,25 @@ if [ "${environment}" == tool ]
then
mkdir -p "${dest}"
cd gradle
./gradlew clean :core:nomulus \
-PmavenUrl=https://"${gcs_prefix}"/maven \
-PpluginsUrl=https://"${gcs_prefix}"/plugins
cd -
mv gradle/core/build/libs/nomulus.jar "${dest}"
mv core/build/libs/nomulus.jar "${dest}"
else
dest="${dest}/$1"
mkdir -p "${dest}"
cd gradle
./gradlew clean stage -Penvironment="${environment}" \
-PmavenUrl=https://"${gcs_prefix}"/maven \
-PpluginsUrl=https://"${gcs_prefix}"/plugins
cd -
for service in default pubapi backend tools
do
mv gradle/services/"${service}"/build/staged-app "${dest}/${service}"
mv services/"${service}"/build/staged-app "${dest}/${service}"
done
mv gradle/core/build/resources/main/google/registry/env/common/META-INF \
mv core/build/resources/main/google/registry/env/common/META-INF \
"${dest}/META-INF"
cd "${dest}"