Init
This commit is contained in:
44
build-and-deploy.sh
Normal file
44
build-and-deploy.sh
Normal file
@@ -0,0 +1,44 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Build and Deploy Script for Erato Rate Limit Starter
|
||||
|
||||
echo "🚀 Building Erato Rate Limit Spring Boot Starter..."
|
||||
|
||||
# Clean and build
|
||||
mvn clean install
|
||||
|
||||
# Run tests
|
||||
echo "🧪 Running tests..."
|
||||
mvn test
|
||||
|
||||
# Package
|
||||
echo "📦 Packaging..."
|
||||
mvn package
|
||||
|
||||
# Install to local repository
|
||||
echo "💾 Installing to local Maven repository..."
|
||||
mvn install
|
||||
|
||||
# Deploy to private repository (adjust URL)
|
||||
echo "🌐 Deploying to repository..."
|
||||
mvn deploy -DaltDeploymentRepository=erato-repo::default::https://nexus.erato.com.tr/repository/maven-releases/
|
||||
|
||||
# Generate documentation
|
||||
echo "📚 Generating documentation..."
|
||||
mvn javadoc:javadoc
|
||||
|
||||
echo "✅ Build and deploy completed!"
|
||||
|
||||
# Optional: Create release package
|
||||
echo "📦 Creating release package..."
|
||||
mkdir -p release
|
||||
cp target/erato-rate-limit-spring-boot-starter-*.jar release/
|
||||
cp README.md release/
|
||||
cp -r target/site/apidocs release/javadoc
|
||||
|
||||
# Create zip
|
||||
cd release
|
||||
zip -r erato-rate-limit-starter-1.0.0.zip *
|
||||
cd ..
|
||||
|
||||
echo "🎉 Release package created: release/erato-rate-limit-starter-1.0.0.zip"
|
||||
Reference in New Issue
Block a user