From f72daa3d7b77289c522edb3d14ee2dbda09d12a9 Mon Sep 17 00:00:00 2001 From: Gabriel Roldan Date: Mon, 5 Aug 2024 11:13:11 -0300 Subject: [PATCH] Fix profile names, split make targets into core, extensions, and community, and add purge target --- Makefile | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 66 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 2fd7378..d0f28b2 100644 --- a/Makefile +++ b/Makefile @@ -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)