Skip to content

Commit

Permalink
Fix profile names, split make targets into core, extensions, and comm…
Browse files Browse the repository at this point in the history
…unity, and add purge target
  • Loading branch information
groldan committed Aug 5, 2024
1 parent fb31f72 commit f72daa3
Showing 1 changed file with 66 additions and 6 deletions.
72 changes: 66 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,80 @@
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"

.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)

.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$(EXTENSIONS),$(COMMUNITY_MODULES)
-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),$(COMMUNITY_MODULES)
-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$(COMMUNITY_MODULES)


.PHONY: purge
purge: purge-core purge-extensions purge-community

.PHONY: purge-core
purge-core:
./mvnw dependency:purge-local-repository -f geoserver/src/pom.xml \
-DactTransitively=false -DreResolve=false -Dverbose \
-Dsort.skip=true -Dspotless.apply.skip=true

.PHONY: purge-extensions
purge-extensions:
./mvnw dependency:purge-local-repository -f geoserver/src/extension/pom.xml \
-DactTransitively=false -DreResolve=false -Dverbose \
-Dsort.skip=true -Dspotless.apply.skip=true \
-P$(EXTENSIONS)

.PHONY: purge-community
purge-community:
./mvnw dependency:purge-local-repository -f geoserver/src/community/pom.xml \
-DactTransitively=false -DreResolve=false -Dverbose \
-Dsort.skip=true -Dspotless.apply.skip=true \
-P$(COMMUNITY_MODULES)

0 comments on commit f72daa3

Please sign in to comment.