Skip to content

Commit

Permalink
Add Github Actions for building with gradle
Browse files Browse the repository at this point in the history
Comment out nexus credentials. Default to mavenCentral

Add mavenCentral before vy nexus. Used by external contributors
  • Loading branch information
asmundh committed Nov 17, 2023
1 parent a4cedc9 commit d9f901f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: build-and-deploy

on: push

jobs:
gradle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Execute Gradle build
# env:
# NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
# NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
run: |
./gradlew build
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ else
System.getenv(name)

repositories {
mavenCentral() // Enable if you do not want to use Vy nexus for dependencies, e.g. if you are an external contributor
maven {
url = uri("https://nexus.common-services.vydev.io/repository/maven-public")
credentials {
Expand Down

0 comments on commit d9f901f

Please sign in to comment.