- Generate curl/mvn-deploy script by local gradle/maven cache.
- Parse package-lock.json, download packages and generate curl script.
You need to add .env file with this data:
- filterGroup=comma separated prefix to filter, empty for all (example 'org.junit,com.auth0')
- sfMavenUrl=url to maven repo
- sfNpmUrl=url to npm repo
- sfLogin=login
- sfPass=pass
- nexusLogin=login
- nexusPass=pass
- outputFile=name of result file (like deploy.cmd)
- useCurl=true/false (curl or mvn)
- useGradleCache=true/false (gradle or maven cache structure)
- mvnRepoId=repo id from maven settings.xml
sf-loader requires Go v1.22 to build.
Run command line in project directory with command:
go build -o sf_loader.exe -ldflags "-s -w"or
GOARCH=amd64 GOOS=linux go build -ldflags="-extldflags=-static"Then you need to build all gradle services, go to gradle cache dir if useGradleCache=true (usually c:\Users\USER\.gradle\caches\modules-2\files-2.1). Or maven cache dir if useGradleCache=false (usually c:\Users\USER\.m2). Put .env file and sf_loader.exe and run.
For npm packages put package-lock.json near the executable file, optionally in separated folder and run.
MIT
Enjoy!