Skip to content

Commit ff197c2

Browse files
authored
Prepare project for publishing to maven central (#169)
* Update to Gradle 7.5.1 * Prepare project for publishing to maven central * Publish snapshots on main branch
1 parent 3d6dc8f commit ff197c2

File tree

9 files changed

+252
-193
lines changed

9 files changed

+252
-193
lines changed

.github/workflows/ci.yml

+7
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,10 @@ jobs:
3838
with:
3939
name: instrumentation-test-results ${{ matrix.api-level }}
4040
path: ./**/build/reports/androidTests/connected/**
41+
42+
- name: Upload snapshot (master only)
43+
env:
44+
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SonatypeUsername }}
45+
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SonatypePassword }}
46+
run: ./gradlew publish
47+
if: github.ref == 'refs/heads/master' && github.event_name == 'push'

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
plugins {
2-
id 'com.android.library' version '7.2.1' apply false
2+
id 'com.android.library' version '7.3.1' apply false
33
id 'de.undercouch.download' version '5.1.0' apply false
44
}

gradle.properties

+25-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,25 @@
1-
android.useAndroidX=true
1+
android.useAndroidX=true
2+
android.disableAutomaticComponentCreation=true
3+
4+
# Disabling unused build features
5+
android.defaults.buildfeatures.aidl=false
6+
android.defaults.buildfeatures.buildconfig=false
7+
android.defaults.buildfeatures.databinding=false
8+
android.defaults.buildfeatures.renderscript=false
9+
android.defaults.buildfeatures.resvalues=false
10+
android.defaults.buildfeatures.shaders=false
11+
android.defaults.buildfeatures.viewbinding=false
12+
android.library.defaults.buildfeatures.androidresources=false
13+
14+
# Publishing bits
15+
GROUP=io.requery
16+
POM_URL=https://github.com/requery/sqlite-android/
17+
POM_SCM_URL=https://github.com/requery/sqlite-android/
18+
POM_SCM_CONNECTION=scm:git:git://github.com/requery/sqlite-android.git
19+
POM_SCM_DEV_CONNECTION=scm:git:ssh://[email protected]/requery/sqlite-android.git
20+
POM_LICENCE_DIST=repo
21+
POM_DEVELOPER_ID=TODO
22+
POM_DEVELOPER_NAME=TODO
23+
POM_DEVELOPER_URL=TODO
24+
POM_INCEPTION_YEAR=TODO
25+
VERSION_NAME=3.40.0-SNAPSHOT

gradle/wrapper/gradle-wrapper.jar

4.47 KB
Binary file not shown.
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)