Skip to content

v0vc/sf-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sf-loader

Transfer your artefacts easy!

Features

  • Generate curl/mvn-deploy script by local gradle/maven cache.
  • Parse package-lock.json, download packages and generate curl script.

Prepare .env file

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

How to use

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.

License

MIT

Enjoy!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages