Skip to content

Commit 84ca515

Browse files
committed
Revert to commit 352521f
1 parent c6ae178 commit 84ca515

File tree

2 files changed

+4
-64
lines changed

2 files changed

+4
-64
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -252,21 +252,12 @@ jobs:
252252
fi
253253
done
254254
255-
- uses: actions/setup-java@v4
256-
with:
257-
distribution: 'temurin'
258-
java-version: '17'
259-
260255
- name: release android aar to maven central
261-
if: steps.tag.outputs.version != ''
262-
run: |
263-
echo "Maven Central Username length: ${#MAVEN_CENTRAL_USERNAME}"
264-
echo "Maven Central Token length: ${#MAVEN_CENTRAL_TOKEN}"
265-
echo "Signing key length: ${#SIGNING_KEY}"
266-
cd packages/android && ./gradlew publishToCentralPortal -PVERSION=${{ steps.tag.outputs.version }}
256+
if: false # maven central namespace needs to be verified first steps.tag.outputs.version != ''
257+
run: cd packages/android && gradle publishReleasePublicationToOSSRHRepository -PVERSION=${{ steps.tag.outputs.version }}
267258
env:
268-
MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
269-
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
259+
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
260+
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
270261
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
271262
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
272263

packages/android/build.gradle

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,11 @@ buildscript {
55
}
66
dependencies {
77
classpath 'com.android.tools.build:gradle:8.5.2'
8-
classpath 'com.gradleup.central:central-publishing:0.4.0'
98
}
109
}
1110

1211
apply plugin: 'com.android.library'
1312
apply plugin: 'maven-publish'
14-
apply plugin: 'signing'
15-
apply plugin: 'com.gradleup.central.publish'
1613

1714
android {
1815
namespace 'ai.sqlite.vector'
@@ -50,44 +47,6 @@ repositories {
5047
dependencies {
5148
}
5249

53-
centralPublishing {
54-
username = project.findProperty("MAVEN_CENTRAL_USERNAME") ?: ""
55-
password = project.findProperty("MAVEN_CENTRAL_TOKEN") ?: ""
56-
57-
pom {
58-
groupId = 'ai.sqlite'
59-
artifactId = 'vector'
60-
version = project.hasProperty('VERSION') ? project.VERSION : ['make', 'version'].execute(null, file('../..')).text.trim()
61-
62-
name = 'SQLite Vector'
63-
description = 'A cross-platform, ultra-efficient SQLite extension that brings vector search capabilities to your embedded database. Works seamlessly on iOS, Android, Windows, Linux, and macOS, using just 30MB of memory by default.'
64-
url = 'https://github.com/sqliteai/sqlite-vector'
65-
66-
licenses {
67-
license {
68-
name = 'Elastic License 2.0'
69-
url = 'https://www.elastic.co/licensing/elastic-license'
70-
}
71-
}
72-
73-
developers {
74-
developer {
75-
id = 'sqliteai'
76-
name = 'SQLite Cloud, Inc.'
77-
78-
organization = 'SQLite Cloud, Inc.'
79-
organizationUrl = 'https://sqlite.ai'
80-
}
81-
}
82-
83-
scm {
84-
connection = 'scm:git:git://github.com/sqliteai/sqlite-vector.git'
85-
developerConnection = 'scm:git:ssh://github.com/sqliteai/sqlite-vector.git'
86-
url = 'https://github.com/sqliteai/sqlite-vector'
87-
}
88-
}
89-
}
90-
9150
afterEvaluate {
9251
publishing {
9352
publications {
@@ -100,14 +59,4 @@ afterEvaluate {
10059
}
10160
}
10261
}
103-
}
104-
105-
signing {
106-
def signingKey = project.findProperty("SIGNING_KEY")
107-
def signingPassword = project.findProperty("SIGNING_PASSWORD")
108-
109-
if (signingKey && signingPassword) {
110-
useInMemoryPgpKeys(signingKey, signingPassword)
111-
sign publishing.publications.release
112-
}
11362
}

0 commit comments

Comments
 (0)