-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix profile names, split make targets into core, extensions, and comm…
…unity, and add purge target
- Loading branch information
Showing
1 changed file
with
74 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,88 @@ | ||
EXTENSIONS="app-schema,authkey,charts,css,csw,db2,dxf,excel,feature-pregeneralized,gdal,geopkg-output,grib,gwc-s3,importer,inspire,jp2k,libjpeg-turbo,mapml,mbstyle,mongodb,mysql,netcdf,netcdf-out,ogr,oracle,params-extractor,printing,querylayer,rat,sldService,sqlserver,vectortiles,wcs2_0-eo,web-resource,wmts-multi-dimensional,wps,wps-download,wps-jdbc,ysld" | ||
EXTENSIONS="app-schema,authkey,charts,css,csw,db2,dxf,h2,excel,feature-pregeneralized,gdal,geopkg-output,grib,gwc-s3,importer,inspire,jp2k,libjpeg-turbo,mapml,mbstyle,mongodb,mysql,netcdf,netcdf-out,oracle,params-extractor,printing,querylayer,rat,sldService,sqlserver,vectortiles,wcs2_0-eo,web-resource,wmts-multi-dimensional,wps,wps-download,wps-jdbc,ysld" | ||
|
||
COMMUNITY_MODULES="backup-restore,cog,colormap,datadir-catalog-loader,dds,dyndimension,features-autopopulate,features-templating,flatgeobuf,gdal,geopkg,gpxppio,graticule,gwc-azure-blob,gwc-sqlite,importer-jdbc,jdbcconfig,jdbcstore,jwt-headers,mbtiles,mbtiles-store,ncwms,netcdf-ghrsst,ogcapi,pgraster,security,spatialjson,stac-datastore,vsi,web-ogr,webp,wfs-freemarker,wps-longitudinal-profile" | ||
COMMUNITY_MODULES="backup-restore,cog,colormap,datadir-catalog-loader,dds,dyndimension,features-autopopulate,features-templating,flatgeobuf,gdal,geopkg,gpx,graticule,gwc-azure-blob,gwc-sqlite,importer-jdbc,jdbcconfig,jdbcstore,jwt-headers,mbtiles,mbtiles-store,ncwms,ghrsst,ogcapi,pgraster,security,spatialjson,vsi,webp,wfs-freemarker,wps-longitudinal-profile" | ||
|
||
VERSION=`./mvnw help:evaluate -f geoserver/src/pom.xml -Dexpression=project.version -q -DforceStdout` | ||
|
||
.PHONY: install | ||
install: | ||
install: install-core install-extensions install-community | ||
|
||
.PHONY: install-core | ||
install-core: | ||
./mvnw install -f geoserver/src/pom.xml --batch-mode -DskipTests -ntp -fae \ | ||
-Dsort.skip=true -Dspotless.apply.skip=true | ||
|
||
.PHONY: install-extensions | ||
install-extensions: | ||
./mvnw install -f geoserver/src/extension/pom.xml --batch-mode -DskipTests -ntp -fae \ | ||
-Dsort.skip=true -Dspotless.apply.skip=true \ | ||
-P$(EXTENSIONS),$(COMMUNITY_MODULES) | ||
-P$(EXTENSIONS) | ||
|
||
.PHONY: install-community | ||
install-community: | ||
./mvnw install -f geoserver/src/community/pom.xml --batch-mode -DskipTests -ntp -fae \ | ||
-Dsort.skip=true -Dspotless.apply.skip=true \ | ||
-P$(COMMUNITY_MODULES) | ||
|
||
.PHONY: deploy | ||
deploy: | ||
deploy: deploy-core deploy-extensions deploy-community | ||
|
||
.PHONY: deploy-core | ||
deploy-core: | ||
./mvnw deploy -f geoserver/src/pom.xml --batch-mode -DskipTests -ntp -fae \ | ||
-Dsort.skip=true -Dspotless.apply.skip=true \ | ||
-DretryFailedDeploymentCount=10 \ | ||
-DallowIncompleteProjects=true \ | ||
-DaltDeploymentRepository='github::https://maven.pkg.github.com/camptocamp/geoserver-cloud-geoserver' \ | ||
-Dmaven.resolver.transport=wagon | ||
|
||
.PHONY: deploy-extensions | ||
deploy-extensions: | ||
./mvnw deploy -f geoserver/src/extension/pom.xml --batch-mode -DskipTests -ntp -fae \ | ||
-Dsort.skip=true -Dspotless.apply.skip=true \ | ||
-DretryFailedDeploymentCount=10 \ | ||
-DallowIncompleteProjects=true \ | ||
-DaltDeploymentRepository='github::https://maven.pkg.github.com/camptocamp/geoserver-cloud-geoserver' \ | ||
-Dmaven.resolver.transport=wagon \ | ||
-P$(EXTENSIONS) | ||
|
||
.PHONY: deploy-community | ||
deploy-community: | ||
./mvnw deploy -f geoserver/src/community/pom.xml --batch-mode -DskipTests -ntp -fae \ | ||
-Dsort.skip=true -Dspotless.apply.skip=true \ | ||
-DretryFailedDeploymentCount=10 \ | ||
-DallowIncompleteProjects=true \ | ||
-DaltDeploymentRepository='github::https://maven.pkg.github.com/camptocamp/geoserver-cloud-geoserver' \ | ||
-Dmaven.resolver.transport=wagon \ | ||
-P$(EXTENSIONS),$(COMMUNITY_MODULES) | ||
-P$(COMMUNITY_MODULES) | ||
|
||
|
||
.PHONY: purge-dependencies | ||
purge-dependencies: purge-dependencies-core purge-dependencies-extensions purge-dependencies-community | ||
|
||
.PHONY: purge-dependencies-core | ||
purge-dependencies-core: | ||
./mvnw dependency:purge-local-repository -f geoserver/src/pom.xml \ | ||
-DactTransitively=true -DreResolve=false -Dverbose \ | ||
-Dsort.skip=true -Dspotless.apply.skip=true | ||
|
||
.PHONY: purge-dependencies-extensions | ||
purge-dependencies-extensions: | ||
./mvnw dependency:purge-local-repository -f geoserver/src/extension/pom.xml \ | ||
-DactTransitively=true -DreResolve=false -Dverbose \ | ||
-Dsort.skip=true -Dspotless.apply.skip=true \ | ||
-P$(EXTENSIONS) | ||
|
||
.PHONY: purge-dependencies-community | ||
purge-dependencies-community: | ||
./mvnw dependency:purge-local-repository -f geoserver/src/community/pom.xml \ | ||
-DactTransitively=true -DreResolve=false -Dverbose \ | ||
-Dsort.skip=true -Dspotless.apply.skip=true \ | ||
-P$(COMMUNITY_MODULES) | ||
|
||
.PHONY: uninstall | ||
uninstall: | ||
echo version=$(VERSION) && \ | ||
find $$HOME/.m2/repository/org/geoserver -type d -name $(VERSION) | xargs rm -rf {} | ||
|
||
|