diff --git a/gradle.properties b/gradle.properties index 4e1cfdb70..6b27a189b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -22,3 +22,5 @@ POM_SCM_DEV_CONNECTION=scm:git:ssh://git@gitlab.com:fdroid/fdroidclient.git POM_DEVELOPER_ID=grote POM_DEVELOPER_NAME=Torsten Grote POM_DEVELOPER_URL=https://github.com/grote/ + +SONATYPE_AUTOMATIC_RELEASE=true diff --git a/libs/README.md b/libs/README.md index e9759399e..c2ba57112 100644 --- a/libs/README.md +++ b/libs/README.md @@ -7,7 +7,7 @@ Note that all libraries are still in alpha stage. While they work, their public APIs are still subject to change. * [download](libs/download) library for handling (multi-platform) HTTP download - of repository indexes and APKs + of repository indexes, APKs and image assets * [index](libs/index) library for parsing/verifying/creating repository indexes * [database](libs/database) library to store and query F-Droid related information in a Room-based database on Android @@ -71,7 +71,7 @@ and replace `[version]` with the [latest version](libs/database/gradle.propertie You can list available gradle tasks by running the following command in the project root. - ./gradlew :download:tasks + ./gradlew :libs:download:tasks Replace `download` with the name of the library you want to view tasks for. @@ -80,8 +80,8 @@ Replace `download` with the name of the library you want to view tasks for. Bump version number in the library's [`gradle.properties`](gradle.properties), ensure you didn't break a public API and run: - ./gradlew :download:check :index:connectedCheck - ./gradlew :download:publish + ./gradlew :libs:download:check :libs:download:connectedCheck + ./gradlew :libs:download:publish ./gradlew closeAndReleaseRepository Replace `download` with the name of the library you want to publish. diff --git a/libs/database/build.gradle b/libs/database/build.gradle index baf55aefd..4cf451b04 100644 --- a/libs/database/build.gradle +++ b/libs/database/build.gradle @@ -4,6 +4,7 @@ plugins { id 'kotlin-kapt' id 'org.jetbrains.dokka' id "org.jlleitschuh.gradle.ktlint" version "10.2.1" + id 'com.vanniktech.maven.publish' } android { @@ -95,6 +96,10 @@ dependencies { androidTestImplementation 'commons-io:commons-io:2.6' } +signing { + useGpgCmd() +} + import org.jetbrains.dokka.gradle.DokkaTask tasks.withType(DokkaTask).configureEach { pluginsMapConfiguration.set( diff --git a/libs/database/gradle.properties b/libs/database/gradle.properties new file mode 100644 index 000000000..1863bb57e --- /dev/null +++ b/libs/database/gradle.properties @@ -0,0 +1,7 @@ +POM_ARTIFACT_ID=database +VERSION_NAME=0.1.0 + +POM_NAME=F-Droid database library +POM_DESCRIPTION=An Android library to store F-Droid related info in Room such as repositories, apps and their versions. +POM_INCEPTION_YEAR=2023 +POM_URL=https://gitlab.com/fdroid/fdroidclient/-/tree/master/libs/database diff --git a/libs/download/build.gradle b/libs/download/build.gradle index 894774deb..eff5d52fd 100644 --- a/libs/download/build.gradle +++ b/libs/download/build.gradle @@ -6,9 +6,6 @@ plugins { id 'com.vanniktech.maven.publish' } -group = 'org.fdroid' -version = '0.1' - kotlin { android { compilations.all { diff --git a/libs/download/gradle.properties b/libs/download/gradle.properties index e0f0103f8..9784f28a8 100644 --- a/libs/download/gradle.properties +++ b/libs/download/gradle.properties @@ -1,7 +1,7 @@ POM_ARTIFACT_ID=download -VERSION_NAME=0.1.0 +VERSION_NAME=0.1.1 POM_NAME=F-Droid download library POM_DESCRIPTION=A Kotlin multi-platform library to download F-Droid related files via HTTP. POM_INCEPTION_YEAR=2022 -POM_URL=https://gitlab.com/fdroid/fdroidclient/-/tree/master/download +POM_URL=https://gitlab.com/fdroid/fdroidclient/-/tree/master/libs/download diff --git a/libs/index/build.gradle b/libs/index/build.gradle index 649d8e06d..6a5c39dd8 100644 --- a/libs/index/build.gradle +++ b/libs/index/build.gradle @@ -7,9 +7,6 @@ plugins { id 'com.vanniktech.maven.publish' } -group = 'org.fdroid' -version = '0.1' - kotlin { android { compilations.all { diff --git a/libs/index/gradle.properties b/libs/index/gradle.properties index e30413737..704e98b76 100644 --- a/libs/index/gradle.properties +++ b/libs/index/gradle.properties @@ -1,7 +1,7 @@ POM_ARTIFACT_ID=index -VERSION_NAME=0.1.0 +VERSION_NAME=0.1.1 POM_NAME=F-Droid index library POM_DESCRIPTION=A Kotlin multi-platform library to parse version 1 and 2 of the F-Droid index format. POM_INCEPTION_YEAR=2022 -POM_URL=https://gitlab.com/fdroid/fdroidclient/-/tree/master/index +POM_URL=https://gitlab.com/fdroid/fdroidclient/-/tree/master/libs/index