Skip to content

Commit bc072b5

Browse files
committed
publish snapshot to Maven Central
1 parent f6bda28 commit bc072b5

2 files changed

Lines changed: 33 additions & 2 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish package to the Maven Central Repository
2+
on:
3+
push:
4+
branches:
5+
- 'master'
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Set up Java
12+
uses: actions/setup-java@v4
13+
with:
14+
java-version: '17'
15+
distribution: 'temurin'
16+
17+
- name: Publish package
18+
run: ./gradlew publish
19+
env:
20+
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
21+
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}

lib/build.gradle

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,23 @@ dependencies {
8484
publishing {
8585
publications {
8686
release(MavenPublication) {
87-
groupId = 'com.github.dalgarins'
87+
groupId = 'io.github.ev-map'
8888
artifactId = 'android-spatialite'
89-
version = '2.1.2-alpha'
89+
90+
version = '2.1.2-alpha-SNAPSHOT'
9091

9192
afterEvaluate {
9293
from components.release
9394
}
9495
}
9596
}
97+
repositories {
98+
maven {
99+
url = "https://central.sonatype.com/repository/maven-snapshots/"
100+
credentials {
101+
username = System.getenv("MAVEN_USERNAME")
102+
password = System.getenv("MAVEN_PASSWORD")
103+
}
104+
}
105+
}
96106
}

0 commit comments

Comments
 (0)